> ## 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

> Kling 3.0 Omni v2 Omni generation, editing, and task query API through AnyFast.

Kling 3.0 Omni uses the v2 Omni Video endpoint. The model is selected in the path; put prompts and references in `contents`.

> [tab] Omni generation or editing
>
> ## Create task
>
> `POST /kling/v2/omni-video/kling-3.0-omni`
>
> ```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 traveler walks through a rain-soaked city street"}],
>     "settings": {"resolution": "720p", "aspect_ratio": "16:9", "duration": 3}
>   }'
> ```
>
> ## Request body
>
> **contents** `object[]` *required*
>
> Include one `prompt` item and optional `refer_image`, `feature_video`, `first_frame`, `last_frame`, or `base_video` items.
>
> **contents\[].type** `string` *required*
>
> Content role. Use `@id` in the prompt to reference an item with an ID.
>
> **contents\[].text** `string`
>
> Prompt text for the `prompt` item.
>
> **contents\[].url** `string`
>
> Public image or video URL.
>
> **settings** `object`
>
> Output resolution, duration, and aspect ratio.
>
> **settings.resolution** `string`
>
> `720p`, `1080p`, or `4k`.
>
> ## Create response
>
> ```json 200 theme={null}
> {
>   "code": 0,
>   "message": "",
>   "request_id": "REQUEST_ID",
>   "data": {"id": "TASK_ID", "status": "submitted"}
> }
> ```
>
> **data.id** `string`
>
> System task ID.
>
> **data.status** `string`
>
> Initial task status.

> [tab] Query task
>
> ## Query tasks
>
> `GET /kling/v2/tasks?task_ids=TASK_ID`
>
> ```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'
> ```
>
> **task\_ids** `string` *required*
>
> System task ID or comma-separated IDs.
>
> ```json 200 theme={null}
> {
>   "code": 0,
>   "message": "",
>   "data": [{
>     "id": "TASK_ID",
>     "status": "succeeded",
>     "outputs": [{"type": "video", "url": "https://example.com/video.mp4", "duration": "5.041"}]
>   }]
> }
> ```
>
> **data\[].id** `string`
>
> System task ID.
>
> **data\[].status** `string`
>
> `submitted`, `processing`, `succeeded`, or `failed`.
>
> **data\[].create\_time** `integer`
>
> Task creation time in Unix milliseconds.
>
> **data\[].update\_time** `integer`
>
> Task update time in Unix milliseconds.
>
> **data\[].outputs** `object[]`
>
> Generated outputs.
>
> **data\[].outputs\[].type** `string`
>
> Output type.
>
> **data\[].outputs\[].url** `string`
>
> Temporary generated media URL.
>
> **data\[].outputs\[].duration** `string`
>
> Generated media duration in seconds.

## Extended content parameters

**contents\[].type** `string`

Use `prompt`, `refer_image`, `first_frame`, `middle_frame`, `last_frame`, `feature_video`, or `base_video`.

**contents\[].id** `string`

Unique content ID. Mention it as `@id` in the prompt so the model can bind the reference.

**contents\[].text** `string`

Prompt text. Keep one prompt item in the request.

**contents\[].url** `string`

Public image or video URL, or supported raw Base64 image content.

**contents\[].keep\_original\_sound** `string`

For a video reference, use `yes` to preserve source audio or `no` to discard it.

**contents\[].refer\_type** `string`

For a video reference, `base` edits the source video and `feature` uses its content, motion, style, or camera characteristics.

**settings.multi\_shot** `boolean`

Enable one-to-six-shot generation when no `base_video` is supplied.

**settings.shot\_type** `string`

`customize` uses shot entries; `intelligence` plans shots from the main prompt.

**settings.multi\_prompt** `object[]`

Custom shot entries with `index`, `prompt`, and `duration`; each shot is at least one second and the total equals `settings.duration`.

**settings.sound** `string`

Audio setting. New sound generation is unavailable when a reference video is supplied.

**settings.watermark\_info.enabled** `boolean`

Request a watermarked result in addition to the standard output.

### Media and combination rules

Images accept JPG, JPEG, and PNG, with public URLs or supported raw Base64, both sides at least 300 px, and an aspect ratio from 1:2.5 to 2.5:1. Submit at most one source video. A `base_video` edit follows the source duration when `settings.duration` is omitted and cannot use multi-shot or first/end-frame controls. A `feature_video` can guide content, action, style, camera movement, or shot continuation.


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