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

# Kling 3.0 Omni

> Use Kling 3.0 Omni through AnyFast's upgraded v2 Omni Video API.

Kling 3.0 Omni uses the model-specific v2 Omni Video endpoint. Put the prompt and references in `contents`; do not send `model_name` or the Legacy `image_list` and `video_list` fields.
Output resolution supports `720p`, `1080p`, and `4k` through `settings.resolution`.

## Capabilities

* Text-to-video with a prompt.
* Image, video, and element references.
* Video editing with a `base_video` content item.
* Multi-shot prompting and optional synchronized sound where supported by the model.

| Capability | Endpoint |
| - | - |
| Omni generation or editing | `POST /kling/v2/omni-video/kling-3.0-omni` |
| Query task | `GET /kling/v2/tasks?task_ids=TASK_ID` |

## Create a task

```bash cURL theme={null}
curl --request POST \
  --url https://www.anyfast.ai/kling/v2/omni-video/kling-3.0-omni \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
    "contents": [
      {"type": "prompt", "text": "A cat walks through a sunlit garden"}
    ],
    "settings": {"resolution": "720p", "aspect_ratio": "16:9", "duration": 3}
  }'
```

Add `refer_image`, `feature_video`, `first_frame`, `last_frame`, or `base_video` items to `contents` when the workflow needs media. Give referenced items an `id` and mention them as `@id` in the prompt.

## Query the task

```bash cURL theme={null}
curl --request GET \
  --url 'https://www.anyfast.ai/kling/v2/tasks?task_ids=TASK_ID' \
  --header 'Authorization: Bearer YOUR_API_KEY'
```

The create response stores the system ID in `data.id`; a successful query returns the generated media in `data[].outputs[]`.

## Reference and combination rules

* `refer_image` supplies appearance, scene, or style references; `first_frame`, `middle_frame`, and `last_frame` constrain keyframes.
* `feature_video` supplies motion, style, or camera references. `base_video` edits a source video and may appear at most once.
* Give each media item a unique `id` and reference it as `@id` in the prompt. Keep the prompt item in `contents`.
* Image inputs use JPG, JPEG, or PNG, with public URLs or supported Base64. Videos use accessible MP4 or MOV URLs.
* `settings.aspect_ratio` is required when no first frame or source video determines the composition. Source-video editing follows the source duration when `settings.duration` is omitted.
* Multi-shot prompts use one to six shot segments whose durations add up to the requested duration. A base-video edit does not use multi-shot generation.

> [card] [Kling 3.0 Omni API reference](https://docs.anyfast.ai/api-reference/model-api/kling/kling-3.0-omni.md)
>
> View the v2 contents and task fields.


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