Xpersona
A

AI Image

CLAWHUB · Unverified

Build and execute skills.video image generation REST requests from OpenAPI specs. Use when user needs to create, debug, or document image generation calls on...

62
Rank
84
Safety
988
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 988 downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s1794jxnsph7h4dfc4rt0wtmbn83hba0:ai-image
  1. Install using `clawhub skill install s1794jxnsph7h4dfc4rt0wtmbn83hba0:ai-image` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/skills-video/ai-image before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-skills-video-ai-image/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

51,402 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: ai-image
description: Build and execute skills.video image generation REST requests from OpenAPI specs. Use when user needs to create, debug, or document image generation calls on open.skills.video.
license: MIT
metadata:
  openclaw:
    author: skills-video
    os:
      - linux
      - darwin
    requires:
      env:
        - SKILLS_VIDEO_API_KEY
      bins:
        - python3
        - curl
    primaryEnv: SKILLS_VIDEO_API_KEY
    cliHelp: |
      Configure API key:
      export SKILLS_VIDEO_API_KEY="your_api_key_here"
      Verify:
      python scripts/ensure_api_key.py
    config:
      stateDirs:
        - ~/.openclaw
      example: "Required env vars: SKILLS_VIDEO_API_KEY. Store the key in OpenClaw skill env or shell env and do not hardcode it in files."
    links:
      repository: https://github.com/skills-video/skills
      homepage: https://skills.video
---

# ai-image

## Overview
Use this skill to turn OpenAPI definitions into working image-generation API calls for `skills.video`.
Prefer deterministic extraction from `openapi.json` instead of guessing fields.

## Prerequisites
1. Obtain an API key at: `https://skills.video/dashboard/developer`
2. Configure `SKILLS_VIDEO_API_KEY` before using the skill.

Preferred OpenClaw setup:

- Open the skill settings for `ai-image`
- Add an environment variable named `SKILLS_VIDEO_API_KEY`
- Paste the API key as its value

Equivalent config shape:

```json
{
  "skills": {
    "entries": {
      "ai-image": {
        "enabled": true,
        "env": {
          "SKILLS_VIDEO_API_KEY": "your_api_key_here"
        }
      }
    }
  }
}
```

Other valid ways to provide the key:

- **Shell**: `export SKILLS_VIDEO_API_KEY="your_api_key_here"`
- **Tool-specific env config**: any runtime that injects `SKILLS_VIDEO_API_KEY`

## Workflow
1. Check API key and bootstrap environment on first use.
2. Identify the active spec.
3. Select the SSE endpoint pair for an image model.
4. Extract request schema and generate a payload template.
5. Execute `POST /generation/sse/...` as default and keep the stream open.
6. If SSE does not reach terminal completion, poll `GET /generation/{id}` to terminal status.
7. Return only terminal result (`COMPLETED`/`SUCCEEDED`/`FAILED`/`CANCELED`), never `IN_PROGRESS`.
8. Apply retry and failure handling.

## 0) Check API key (first run)
Run this check before any API call.

```bash
python scripts/ensure_api_key.py
```

If `ok` is `false`, tell the user to:

- Follow the setup in `Prerequisites`

Example:

```bash
export SKILLS_VIDEO_API_KEY="<YOUR_API_KEY>"
```

## 1) Identify the spec
Load the most specific OpenAPI first.

- Prefer model-specific OpenAPI when available (for example `/v1/openapi.json` under a model namespace).
- Fall back to platform-level `openapi.json`.
- Use `references/open-platform-api.md` for base URL, auth, and async lifecycle.

## 2) Select an image endpoint
If `docs.json` exists, derive image endpoints from the `Images` navigation group.
Use `def

_meta.json

{
  "ownerId": "kn74k79ct27q20b1bzh3gqsva58385zs",
  "slug": "ai-image",
  "version": "1.0.3",
  "publishedAt": 1774407816502
}

references/image-model-endpoints.md

# Image Model Endpoints (Snapshot)

Snapshot source: `docs.json` group `APIs -> Images`
Snapshot date: 2026-03-20

Default mode: SSE-first.
- Primary call path: replace `/generation/` with `/generation/sse/` for each endpoint below.
- Fallback call path: use the listed endpoint below with polling result fetch.

## Endpoints
- `POST /generation/google/nano-banana-2`
- `POST /generation/google/nano-banana-pro`
- `POST /generation/google/nano-banana`
- `POST /generation/openai/gpt-image-1.5`
- `POST /generation/openai/gpt-image-1`
- `POST /generation/kling-ai/v3/image`
- `POST /generation/kling-ai/o3-image`
- `POST /generation/kling-ai/o1-image`
- `POST /generation/xai/grok-imagine-image`
- `POST /generation/bytedance/seedream-5-lite`
- `POST /generation/bytedance/seedream-4.5`
- `POST /generation/bytedance/seedream-4.0`
- `POST /generation/qwen/qwen-image-2-pro`
- `POST /generation/qwen/qwen-image-2`
- `POST /generation/qwen/qwen-image`
- `POST /generation/vidu/q2/text-to-image`
- `POST /generation/runwayml/gen4-image`
- `POST /generation/runwayml/gen4-image-turbo`
- `POST /generation/black-forest-labs/flux-2-pro`
- `POST /generation/black-forest-labs/kontext`
- `POST /generation/ideogram/ideogram`
- `POST /generation/z-image/z-image`
- `POST /generation/topaz/upscale/image`

## Refresh command
```bash
python scripts/inspect_openapi.py \
  --openapi /abs/path/to/openapi.json \
  --docs /abs/path/to/docs.json \
  --list-endpoints
```

references/open-platform-api.md

# skills.video Open Platform API Contract

## Scope
Use this reference for generation flows that create videos or images through `open.skills.video`.

## Base URL and endpoint shape
- Platform base URL: `https://open.skills.video/api/v1`
- Default generation endpoint pattern: `POST /generation/sse/{provider}/{model}`
- Polling create endpoint pattern (fallback): `POST /generation/{provider}/{model}`
- Task query endpoint pattern (fallback): `GET /generation/{id}`

Some model-scoped OpenAPI files use:
- `servers[0].url = /api`
- paths prefixed with `/v1/...`

Treat these as equivalent path representations under the same host.

## Authentication
Use bearer auth on every API call:

```http
Authorization: Bearer <API_KEY>
```

Security scheme in OpenAPI: `bearerAuth` (`type: http`, `scheme: bearer`).

## First-time API key setup
If `SKILLS_VIDEO_API_KEY` is not configured:

1. Open `https://skills.video/dashboard/developer` and sign in.
2. Click `Create API Key`.
3. Export the key in your shell:

```bash
export SKILLS_VIDEO_API_KEY="<YOUR_API_KEY>"
```

## Async generation lifecycle
1. Submit generation with SSE endpoint `POST /generation/sse/{provider}/{model}`.
2. Read stream events (`text/event-stream`) until terminal event.
3. Fall back to polling only if SSE cannot connect, disconnects early, or does not reach terminal state.
4. Poll fallback result with `GET /generation/{id}` (or model-scoped equivalent path).
5. Stop polling at terminal status.

Important:
- `IN_QUEUE` / `IN_PROGRESS` are non-terminal. Do not return as final result.
- Return to caller only after terminal status (`COMPLETED`, `SUCCEEDED`, `FAILED`, `CANCELED`).

## Status values from OpenAPI
### PredictionStatus
- `starting`
- `processing`
- `succeeded`
- `failed`
- `canceled`

### QueueState
- `IN_QUEUE`
- `IN_PROGRESS`
- `COMPLETED`
- `FAILED`
- `CANCELED`

## Error response shape
`ErrorResponse` defines:
- `message` (`string`)

Common documented HTTP errors on generation endpoints:
- `400`
- `401`
- `404`
- `422`

Runtime note:
- Credit exhaustion can appear as `402` and/or error text indicating insufficient credits.

## Insufficient credits handling
When runtime error indicates insufficient credits:

1. Stop automatic retries for this request.
2. Tell the user to recharge credits in `https://skills.video/dashboard` (Billing/Credits).
3. Retry only after recharge.

Use `GET /credits` to check remaining balance:

```bash
curl -X GET "https://open.skills.video/api/v1/credits" \
  -H "Authorization: Bearer $SKILLS_VIDEO_API_KEY"
```

## Retry baseline
- Retry only transient failures (`429`, `5xx`, transport timeouts, connection resets).
- Do not retry unchanged payloads on validation/auth errors (`400`, `401`, `404`, `422`).
- Use bounded exponential backoff when retrying.
- Preserve SSE-first behavior on retries; use polling only as fallback.

## Unknowns
OpenAPI in this workspace does not declare concrete rate-limit windows or global timeout budgets.
Mark both as unknown unle

skill-card.md

## Description:

Build and execute skills.video image generation REST requests from OpenAPI specs.

This skill is ready for commercial/non-commercial use.

## Publisher:

[skills-video](https://clawhub.ai/user/skills-video)

### License/Terms of Use:

MIT

## Use Case:

Developers and agents use this skill to create, debug, or document image generation requests against the skills.video Open Platform API. It helps inspect OpenAPI schemas, produce endpoint-ready payloads, execute SSE-first generation calls, and wait for terminal results.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill can send the user's API key to an unintended network destination if endpoint options are misused.

Mitigation: Use it only with the intended https://open.skills.video API, avoid full custom URLs or untrusted base URLs, and review endpoint arguments before execution.

Risk: API keys may be exposed if users hardcode SKILLS_VIDEO_API_KEY in files or shell profile snippets.

Mitigation: Store SKILLS_VIDEO_API_KEY in managed skill environment settings and avoid committing credentials to files.

Risk: The security verdict is suspicious, so installation may carry higher review requirements.

Mitigation: Review the skill before installing and scan changes before deployment.

## Reference(s):

- [skills.video homepage](https://skills.video)
- [skills-video repository](https://github.com/skills-video/skills)
- [Open Platform API Contract](references/open-platform-api.md)
- [Image Model Endpoints](references/image-model-endpoints.md)
- [AI Image ClawHub listing](https://clawhub.ai/skills-video/skills/ai-image)

## Skill Output:

**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]

**Output Format:** [Markdown guidance with JSON payloads, shell commands, and JSON event output from helper scripts]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires SKILLS_VIDEO_API_KEY for live API calls; helpers use SSE first and polling only as fallback until terminal generation status.]

## Skill Version(s):

1.0.3 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to AI Image and adjacent AI workflows.