Generate Videos with O1 (Omni)

December 11, 2025

Table of contents

  1. Request Headers
  2. Request Body
  3. Responses
  4. Model
  5. Examples
  6. Try It

This endpoint generates videos using Kling’s O1 (Omni) model. It supports text-to-video generation and up to 7 reference images (or 1 video + 4 images) that can be referenced in your prompt using @image_1, @image_2, @video_1, etc.

https://api.useapi.net/v1/kling/videos/omni

Request Headers
Authorization: Bearer {API token}
Content-Type: application/json
# Alternatively you can use multipart/form-data
# Content-Type: multipart/form-data
Request Body
{
  "email": "[email protected]",
  "prompt": "A woman @image_1 dancing elegantly in a ballroom",
  "duration": "5",
  "aspect_ratio": "16:9",
  "count": 1,
  "image_1": "https://s21-kling.klingai.com/ai-platform/xxx/xxx.jpg"
}
  • email is optional when only one account configured. However, if you have multiple accounts configured, this parameter becomes required.

  • prompt is required, the text description of the video to generate.
    Maximum length: 1700 characters.
    Use @image_1, @image_2, etc. to reference uploaded images in your prompt.
    Use @video_1 to reference an uploaded video in your prompt.

  • omni_version is optional, the O1 model version to use.
    Supported values: o1 (default).

  • duration is optional, the duration of the generated video in seconds.
    Supported values: 3, 4, 5, 6, 7, 8, 9, 10. Default: 5.
    Note: Durations 7-10 require a VIP subscription.

  • aspect_ratio is optional, the aspect ratio of the generated video.
    Supported values: 16:9 (default), 9:16, 1:1, auto.
    Note: When video_1 is provided, aspect_ratio is automatically set to auto.

  • count is optional, the number of videos to generate.
    Range: 1 to 4. Default: 1.
    Note: Counts 2-4 require a VIP subscription.

  • image_1 through image_7 are optional, URLs of reference images.
    You can upload images using POST /assets and use the returned URL here.
    Reference these images in your prompt using @image_1, @image_2, etc.

  • video_1 is optional, URL of a reference video.
    You can upload videos using POST /assets and use the returned URL here.
    Reference the video in your prompt using @video_1.
    When provided, aspect_ratio is forced to auto.
    Maximum 4 images can be used alongside a video reference.

  • maxJobs is optional, range from 1 to 50.
    Specifies the maximum number of concurrent jobs.

  • replyUrl is optional, a callback URL to receive generation progress and result.
    See GET /tasks/task_id for response model.

  • replyRef is optional, a reference identifier for the callback.

Responses
  • 200 OK

    {
      "task": {
        "id": 123456789,
        "userId": 12345,
        "type": "m2v_omni_video",
        "scene": "NORMAL_CREATION",
        "status": 5,
        "status_name": "submitted",
        "status_final": false,
        "taskInfo": {
          "type": "m2v_omni_video",
          "inputs": [
            {
              "name": "image_1",
              "inputType": "URL",
              "token": null,
              "blobStorage": null,
              "url": "https://s21-kling.klingai.com/ai-platform/xxx/xxx.jpg",
              "cover": null,
              "fromWorkId": null
            }
          ],
          "arguments": [
            {
              "name": "prompt",
              "value": "A woman Image1 dancing elegantly in a ballroom"
            },
            {
              "name": "rich_prompt",
              "value": "A woman <<<image_1>>> dancing elegantly in a ballroom"
            },
            {
              "name": "kling_version",
              "value": "o1"
            },
            {
              "name": "model_mode",
              "value": "pro"
            },
            {
              "name": "duration",
              "value": "5"
            },
            {
              "name": "aspect_ratio",
              "value": "16:9"
            },
            {
              "name": "imageCount",
              "value": "1"
            }
          ],
          "extraArgs": {},
          "callbackPayloads": [],
          "scene": "NORMAL_CREATION"
        },
        "favored": false,
        "deleted": false,
        "viewed": false,
        "createTime": 1733836800000,
        "updateTime": 1733836800000
      },
      "works": [],
      "status": 5,
      "status_name": "submitted",
      "status_final": false,
      "message": "",
      "limitation": {
        "type": "m2v_omni_video",
        "remaining": 10000,
        "limit": 10000
      },
      "userPoints": {
        "points": [],
        "total": 0
      },
      "userTickets": {
        "ticket": []
      },
      "editProject": null
    }
    
  • 400 Bad Request

    {
      "error": "Video reference supports maximum 4 images"
    }
    
  • 401 Unauthorized

    {
      "error": "Unauthorized",
      "code": 401
    }
    
  • 404 Not Found

    Kling was unable to locate one of the referenced assets. Make sure to use POST /assets to upload assets.

    {
        "error": "Sorry, the requested resource was not found (VALID.ResourceNotFound)",
        "message": "Not Found"
    }
    
  • 500 Internal Server Error

    Kling uses a 500 response to indicate moderation and other issues with the input. It may be hard to separate actual 500 errors from moderation errors, so use the error field text and your best judgement to tell them apart, since the message field most often has very generic and perhaps misleading text.

    {
      "error": "The content you uploaded appears to violate the community guidelines. (CM_EXT.POther)",
      "message": "Service busy (CM_EXT.POther)"
    }
    

When successful, the response includes a task ID which can be used to check the status using GET /tasks/task_id.

Model
{ // TypeScript, all fields are optional
    task: {
        id: number
        userId: number
        type: string
        scene: string
        status: number
        status_name: 'submitted' | 'failed' | 'processing' | 'succeed'
        status_final: boolean
        taskInfo: {
            type: string
            inputs: Array<{
                name: string
                inputType: string
                token: string | null
                blobStorage: any | null
                url: string
                cover: string | null
                fromWorkId: number | null
            }>
            arguments: Array<{
                name: string
                value: string
            }>
            extraArgs: Record<string, any>
            callbackPayloads: any[]
            scene: string
        }
        favored: boolean
        deleted: boolean
        viewed: boolean
        createTime: number
        updateTime: number
        viewTime: number
    }
    works: Array<any>
    status: number
    status_name: 'submitted' | 'failed' | 'processing' | 'succeed'
    status_final: boolean
    message: string
    error: string
    limitation: {
        type: string
        remaining: number
        limit: number
    }
    userPoints: {
        points: Array<{
            orderId: string
            type: string
            amount: number
            balance: number
            startTime: number
            endTime: number
        }>
        total: number
    }
    userTickets: {
        ticket: Array<{
            orderId: string
            type: string
            packageType: string
            amount: number
            balance: number
            startTime: number
            endTime: number
        }>
    }
    editProject: any | null
}
Examples
  • curl -X POST "https://api.useapi.net/v1/kling/videos/omni" \
       -H "Content-Type: application/json" \
       -H "Authorization: Bearer …" \
       -d '{
         "email": "[email protected]",
         "prompt": "A woman @image_1 dancing elegantly in a ballroom",
         "duration": "5",
         "aspect_ratio": "16:9",
         "image_1": "https://s21-kling.klingai.com/ai-platform/xxx/xxx.jpg"
       }'
    
  • const token = "API token";
    const email = "Previously configured account email";
    const apiUrl = "https://api.useapi.net/v1/kling/videos/omni";
    const response = await fetch(apiUrl, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
        "Authorization": `Bearer ${token}`,
      },
      body: JSON.stringify({
        email: email,
        prompt: "A woman @image_1 dancing elegantly in a ballroom",
        duration: "5",
        aspect_ratio: "16:9",
        image_1: "https://s21-kling.klingai.com/ai-platform/xxx/xxx.jpg"
      })
    });
    const result = await response.json();
    console.log("response", {response, result});
    
  • import requests
    token = "API token"
    email = "Previously configured account email"
    apiUrl = "https://api.useapi.net/v1/kling/videos/omni"
    headers = {
        "Content-Type": "application/json",
        "Authorization" : f"Bearer {token}"
    }
    data = {
        "email": email,
        "prompt": "A woman @image_1 dancing elegantly in a ballroom",
        "duration": "5",
        "aspect_ratio": "16:9",
        "image_1": "https://s21-kling.klingai.com/ai-platform/xxx/xxx.jpg"
    }
    response = requests.post(apiUrl, headers=headers, json=data)
    print(response, response.json())
    
Try It