> ## Documentation Index
> Fetch the complete documentation index at: https://docs.geekai.co/llms.txt
> Use this file to discover all available pages before exploring further.

# WinClaw

Use these templates to create a WinClaw skill for each model you want to call. Set the `GEEKAI_API_KEY` environment variable to your own key (replace `sk-xxxxxxxxxx`). The requests below are templates: substitute the user's prompt, media, and task ID for the corresponding placeholders before sending them.

### HappyHorse-1.0

For all four video skills, allow up to 10 minutes. When `task_status` is `succeed`, return `video_result[0].url`. If generation fails, report the error from the response.

**happyhorse-t2v: text to video**

Generate a video from a text prompt:

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/videos/generations' \
  --header 'Content-Type: application/json' \
  --header "Authorization: Bearer $GEEKAI_API_KEY" \
  --data '{
 "model":"happyhorse-1.0-t2v",
 "prompt":"A kitten and a puppy play in the grass.",
 "duration": 10
}'
```

**happyhorse-r2v: reference images to video**

Pass the reference images in the `images` array, each encoded as `data:{MIME_type};base64,{base64_data}`:

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/videos/generations' \
  --header 'Content-Type: application/json' \
  --header "Authorization: Bearer $GEEKAI_API_KEY" \
  --data '{
 "model":"happyhorse-1.0-r2v",
 "prompt":"Create a video based on this image and its caption.",
 "images": ["image1_base64_data","image2_base64_data"],
 "duration": 10
}'
```

**happyhorse-1.0-i2v: animate a first frame**

Pass the first frame in `image` using the same base64 data URL format:

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/videos/generations' \
  --header 'Content-Type: application/json' \
  --header "Authorization: Bearer $GEEKAI_API_KEY" \
  --data '{
 "model":"happyhorse-1.0-i2v",
 "prompt":"Create a video based on this image and its caption.",
 "image": "image1_base64_data",
 "duration": 10
}'
```

**happyhorse-1.0-video-edit: edit an existing video**

Pass a publicly accessible video URL in `video`. If the source video is local, upload it first. Pass the reference images as base64 data URLs in the `images` array:

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/videos/generations' \
  --header 'Content-Type: application/json' \
  --header "Authorization: Bearer $GEEKAI_API_KEY" \
  --data '{
    "model":"happyhorse-1.0-video-edit",
    "prompt": "Replace the outfit in the video with the outfit from the reference image.",
    "video": "$video_url",
    "images": ["image1_base64_data","image2_base64_data"],
    "duration": 10
}'
```

![HappyHorse skill example](https://static.geekai.co/storage/image-20260601114000286.png)

### kling-video-v3-omni

Choose one of three modes based on the input:

1. **Text to video:** Send the prompt without an image.
2. **Image to video:** If there is an image but no sequence of shots, send it in `image`.
3. **Multiple shots:** If the user supplies images and several shot descriptions, populate `extra_body.multi_prompt` and `extra_body.image_list`.

```bash theme={null}
# Mode 1: Text to video
curl --location --request POST 'https://geekai.co/api/v1/videos/generations' \
--header 'Content-Type: application/json' \
--header "Authorization: Bearer $GEEKAI_API_KEY" \
--data '{
    "model":"kling-video-v3-omni",
    "prompt":"Wide tracking shot: a celadon coupe drives along a desert highway. Heat shimmers under the blazing sun.",
    "quality": "std",
    "aspect_ratio": "16:9",
    "with_audio": true
}'

# Mode 2: Image to video
curl --location --request POST 'https://geekai.co/api/v1/videos/generations' \
--header 'Content-Type: application/json' \
--header "Authorization: Bearer $GEEKAI_API_KEY" \
--data '{
    "model":"kling-video-v3-omni",
    "prompt":"She turns, smiles, and slowly walks out of frame.",
    "image":"$image_url",
    "quality": "std",
    "aspect_ratio": "16:9",
    "with_audio": true
}'

# Mode 3: Multiple shots
curl --location --request POST 'https://geekai.co/api/v1/videos/generations' \
--header 'Content-Type: application/json' \
--header "Authorization: Bearer $GEEKAI_API_KEY" \
--data '{
    "model":"kling-video-v3-omni",
    "prompt":"She turns, smiles, and slowly walks out of frame.",
    "quality": "std",
    "aspect_ratio": "16:9",
    "with_audio": true,
    "duration": 8,
    "extra_body": {
        "multi_shot": true,
        "shot_type": "customize",
        "multi_prompt": [
            {
                "index": 1,
                "prompt": "<<<image_1>>>Shot one: she turns and smiles.",
                "duration": "3"
            },
            {
                "index": 2,
                "prompt": "Shot two: she slowly walks out of frame.",
                "duration": "5"
            }
        ],
        "image_list": [
            {
                "type": "first_frame",
                "image_url": "$image_url"
            }
        ]
    }
}'
```

In multi-shot mode:

* Add the images to `extra_body.image_list` in order. Each entry has an `image_url` and a `type`: use `first_frame` for the first image and `end_frame` for the end frame.
* Add one `extra_body.multi_prompt` entry per shot, preserving the user's order. Start `index` at 1. Include the shot description in `prompt` and its length in seconds in `duration`.
* To reference an image in a shot prompt, use `<<<image_1>>>`, `<<<image_2>>>`, and so on, matching the order of `image_list`.
* Set the total `duration` to the sum of the shot durations. Calculate it from the shots if the user did not specify a total.

For both `image` and `image_url`, pass public URLs directly. If an image is local, upload it to obtain a public URL first (for example, with `litterbox.catbox.moe`). Allow 10 minutes and use `GEEKAI_API_KEY` for authentication. On success, return `video_result[0].url`; otherwise report the generation error.

![Kling video skill example](https://static.geekai.co/storage/image-20260601165403345.png)

### kling-video-v3

Use text-to-video for a prompt alone, image-to-video for an image and one prompt, or multi-shot mode for an image with several shot descriptions:

```bash theme={null}
# Mode 1: Text to video
curl --location --request POST 'https://geekai.co/api/v1/videos/generations' \
--header 'Content-Type: application/json' \
--header "Authorization: Bearer $GEEKAI_API_KEY" \
--data '{
    "model":"kling-video-v3",
    "prompt":"Wide tracking shot: a celadon coupe drives along a desert highway. Heat shimmers under the blazing sun.",
    "quality": "std",
    "aspect_ratio": "16:9",
    "with_audio": true
}'

# Mode 2: Image to video
curl --location --request POST 'https://geekai.co/api/v1/videos/generations' \
--header 'Content-Type: application/json' \
--header "Authorization: Bearer $GEEKAI_API_KEY" \
--data '{
    "model":"kling-video-v3",
    "prompt":"She turns, smiles, and slowly walks out of frame.",
    "image":"$image_url",
    "quality": "std",
    "aspect_ratio": "16:9",
    "with_audio": true
}'

# Mode 3: Multiple shots
curl --location --request POST 'https://geekai.co/api/v1/videos/generations' \
--header 'Content-Type: application/json' \
--header "Authorization: Bearer $GEEKAI_API_KEY" \
--data '{
    "model":"kling-video-v3",
    "prompt":"She turns, smiles, and slowly walks out of frame.",
    "image":"$image_url",
    "with_audio": true,
    "duration": 8,
    "extra_body": {
        "multi_shot": true,
        "shot_type": "customize",
        "multi_prompt": [
            {
                "index": 1,
                "prompt": "Shot one: she turns and smiles.",
                "duration": "3"
            },
            {
                "index": 2,
                "prompt": "Shot two: she slowly walks out of frame.",
                "duration": "5"
            }
        ]
    }
}'
```

For multiple shots, add one entry per shot to `extra_body.multi_prompt` in order. Give each an `index` starting at 1, a descriptive `prompt`, and a `duration` in seconds. Set the top-level `duration` to the sum of the shot durations. Pass a public URL in `image`; upload local images first. Use `GEEKAI_API_KEY`, allow 10 minutes, and return `video_result[0].url` when `task_status` is `succeed`. If the request fails, return the error message.

> [!NOTE]
>
> Both Kling models require publicly accessible image URLs. If `litterbox.catbox.moe` is unavailable, you can obtain a URL with the [GeekAI file upload API](https://docs.geekai.co/en/api/file/upload.md).

### Doubao-Seedance-2.0

Create a `doubao-seedance-2.0` skill that generates videos asynchronously and queries the result. Choose the mode based on how the user wants to use the media:

* **Text only:** Send the prompt without media.
* **First or first/last frame:** Pass the first frame in `image` and the optional last frame in `image_tail`.
* **Reference media:** Use `images` for reference images, even for a single image. Send reference clips in `video` and reference audio in `audio`. Keep the `images` array in the order used by the prompt's `@图1`, `@图2`, and `@图3` references.

```bash theme={null}
# Mode 1: Text to video
curl --location --request POST 'https://geekai.co/api/v1/videos/generations' \
--header 'Content-Type: application/json' \
--header "Authorization: Bearer $GEEKAI_API_KEY" \
--data '{
    "model":"doubao-seedance-2.0",
    "prompt":"A kitten yawns at the camera.",
    "aspect_ratio": "16:9",
    "async": true
}'

# Mode 2: Image to video
curl --location --request POST 'https://geekai.co/api/v1/videos/generations' \
--header 'Content-Type: application/json' \
--header "Authorization: Bearer $GEEKAI_API_KEY" \
--data '{
    "model":"doubao-seedance-2.0",
    "prompt":"An immersive drone flight at high speed through obstacles and natural wonders.",
    "image":"$image_url",
    "image_tail": "$image_tail",
    "aspect_ratio": "16:9",
    "extra_body": {
        "real_person_mode": true
    },
    "async": true
}'

# Mode 3: Generate from reference media
curl --location --request POST 'https://geekai.co/api/v1/videos/generations' \
--header 'Content-Type: application/json' \
--header "Authorization: Bearer $GEEKAI_API_KEY" \
--data '{
    "model": "doubao-seedance-2.0",
    "prompt": "The boy in glasses and a blue T-shirt from @图1 sits with the corgi from @图2 on the lawn from @图3, in a 3D cartoon style.",
    "images": ["$image1_url","$image2_url"],
    "video": ["$video_url","$video2_url"],
    "audio": ["$audio_url","$audio2_url"],
    "with_audio":true,
    "extra_body": {
        "real_person_mode": true
    },
    "async": true
}'

# Query the task status
curl --location --request GET 'https://geekai.co/api/v1/videos/{task_id}' \
--header 'Content-Type: application/json' \
--header "Authorization: Bearer $GEEKAI_API_KEY"
```

Pass publicly accessible URLs for all media. Upload local files first, for example with `litterbox.catbox.moe`.

**Poll for the result:**

1. A `pending` response to the creation request means the task was submitted. Extract `task_id` and use it in the query URL. Authenticate both requests with the same `GEEKAI_API_KEY`.
2. Continue polling while `task_status` is `pending` or `running`.
3. On `succeed`, return `video_result[0].url`. On `failed`, report that video generation failed and return the error message.
4. Stop polling after 10 minutes. If the task is still processing, say so and return the `task_id` so the user can check again later.

![Seedance video generation example](https://static.geekai.co/storage/image-20260601202317296.png)

![Checking a Seedance task](https://static.geekai.co/storage/image-20260601200254052.png)

> [!NOTE]
>
> For `doubao-seedance-2.0-fast`, use the same endpoint and parameters and change the model name. The `images`, `image_tail`, `image`, `video`, and `audio` fields require full public URLs. If necessary, obtain one with the [GeekAI file upload API](https://docs.geekai.co/en/api/file/upload.md).

### Veo 3.1-Lite-Generate-Preview

Create a video generation skill for `veo-3.1-lite-generate-preview`:

```bash theme={null}
curl --location 'https://geekai.co/api/v1/videos/generations' \
--header 'Content-Type: application/json' \
--header "Authorization: Bearer $GEEKAI_API_KEY" \
--data '{
  "model": "veo-3.1-lite-generate-preview",
  "prompt": "$text",
  "resolution": "720p",
  "aspect_ratio": "9:16",
  "image": "$image_url",
  "image_tail": "$image_tail_url"
}'
```

For text-to-video, omit `image` and `image_tail`. For image-to-video, put the first image in `image` and the optional second image in `image_tail`. Each can be an HTTP URL or raw base64 data **without** a `data:{MIME_type};base64,` prefix. Use `GEEKAI_API_KEY` and allow 10 minutes. When `task_status` is `succeed`, return `video_result[0].url`; otherwise report the error.

### Nano Banana 2

Create a `nano-banana-2` skill using the `gemini-3.1-flash-image-preview` model:

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/chat/completions' \
--header "Authorization: Bearer $GEEKAI_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "gemini-3.1-flash-image-preview",
    "messages": [
      {
        "role": "user",
        "content": [
          {
            "type": "text",
            "text": "$text"
          },
          {
            "type": "image_url",
            "image_url": {
              "url": "$image_url"
            }
          }
        ],
        "image": {
            "aspect_ratio": "5:4"
        }
      }
    ]
}'
```

For text-to-image, send only a `text` entry. For image-to-image, add an `image_url` entry to `content`. Its `url` can be an HTTP link or a data URL, for example `data:image/png;base64,${base64_data}`. For multiple inputs, append one entry per text or image to the `content` array. Allow five minutes and authenticate with `GEEKAI_API_KEY`. On success, return the first image URL (`data[0].url`); otherwise return the error.

### GPT-Image-2

Create an image generation skill using `gpt-image-2`:

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/images/generations' \
--header "Authorization: Bearer $GEEKAI_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
    "model":"gpt-image-2",
    "prompt": "$text",
    "image": "$image_url",
    "images": ["$image1_url","$image2_url"],
    "response_format": "url",
    "quality": "low"
}'
```

For text-to-image, omit `image` and `images`. For a single reference image, use `image`; for multiple images, use the `images` array instead. Each reference can be an HTTP URL or a base64 data URL of the form `data:{MIME_type};base64,{base64_data}`. Authenticate with `GEEKAI_API_KEY`, allow five minutes, and return `data[0].url` on success or the error message on failure.

> [!NOTE]
>
> To use `gpt-image-1.5`, change only the model name.

### Doubao-Seedream-5.0-Lite

Create a `doubao-seedream-5.0-lite` image generation skill:

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/images/generations' \
--header "Authorization: Bearer $GEEKAI_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
    "model":"doubao-seedream-5.0-lite",
    "prompt": "$text",
    "image":  ["$image1_url","$image2_url"],
    "size": "2K"
}'
```

For text-to-image, omit `image`. For image-to-image, pass one or more images in `image`, using an array for multiple references. Use HTTP URLs or data URLs in the form `data:{MIME_type};base64,{base64_data}`. Authenticate with `GEEKAI_API_KEY`, allow five minutes, and return `data[0].url` on success or the error message on failure.

### Doubao-Transcribe

Create a `doubao-transcribe` skill to transcribe an audio URL or base64 audio:

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v2/audio/transcriptions' \
  --header "Authorization: Bearer $GEEKAI_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "model":"doubao-transcribe",
    "audio": {
        "url": "$audio_url",
        "format": "$audio_format"
    }
}'
```

* For a public HTTP or HTTPS URL, pass it directly in `audio.url`. For a local file or other audio data, encode the content as raw base64; do **not** include a `data:{MIME_type};base64,` prefix.
* Set `audio.format` to the actual format, such as `mp3` or `wav`. If the user omits the format, infer it from the extension, then the MIME type or file content.
* On success, return the transcript in `text`. Optionally include `id` and `duration` (seconds). On failure, report that transcription failed and include the error. Use `GEEKAI_API_KEY` and a five-minute timeout.

### GPT-4o-Transcribe

Create a `gpt-4o-transcribe` skill that uploads the audio file as `multipart/form-data`:

```bash theme={null}
curl --location 'https://geekai.co/api/v1/audio/transcriptions' \
    --header "Authorization: Bearer $GEEKAI_API_KEY" \
    --form 'file=@/path/to/file.mp3' \
    --form 'model="gpt-4o-transcribe"' \
    --form 'response_format="json"'
```

Pass the audio file in `file`, set `model` to `gpt-4o-transcribe`, and set `response_format` to `json`. Upload local files directly. Download a public audio URL first, or decode base64 input into a file before uploading. Preserve the original file format and extension, such as `.mp3` or `.wav`.

On success, extract `id`, `text`, and `duration` (seconds). If `text` is a JSON-encoded string, parse it and extract the nested `text` field. Return the final transcript by default and include the ID and duration if requested. On failure, report the transcription error. Use `GEEKAI_API_KEY` and a five-minute timeout.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.