Generate Images with Omni
December 10, 2025 (October 20, 2026)
Table of contents
This endpoint generates images using Kling’s Omni model (O1 and v3). It supports text-to-image generation with up to 10 reference images and/or saved elements that can be referenced in your prompt.
Version Comparison
| Feature | v3 | O1 |
|---|---|---|
| Resolution | 1k, 2k, 4k (VIP) | 1k, 2k |
Default aspect_ratio | auto | 16:9 |
auto aspect ratio | ||
story_mode (Series Mode) |
https://api.useapi.net/v1/kling/images/omni
Request Headers
Authorization: Bearer {API token}
Content-Type: application/json
# Alternatively you can use multipart/form-data
# Content-Type: multipart/form-data
API tokenis required, see Setup useapi.net for details.
Request Body
{
"email": "[email protected]",
"prompt": "A woman @image_1 dancing elegantly in a ballroom",
"resolution": "2k",
"aspect_ratio": "16:9",
"imageCount": 2,
"story_mode": true,
"image_1": "https://s21-kling.klingai.com/ai-platform/xxx/xxx.jpg"
}
-
emailis optional. Leave it out and the job goes to one of your accounts that has a free job slot, picked at random. Each account runs at most itsmaxJobsjobs at once, and GET scheduler/available shows the free slots. If no account has a free slot, the response is429.
Passemailto run the job on that account (429if it is busy). Uploaded files, elements, voices, avatars and earlier tasks belong to one account, so pass theemailof the account they came from.
With more than one account, reading the task with GET tasks/task_idneeds its account’semail. The response’stask.userIdis that account’ssession.userIdin GET accounts, and GET scheduler lists each running task with itsemail. -
promptis required, the text description of the image to generate. Maximum length: 1700 characters. Use@image_1,@image_2, etc. to reference images in your prompt. Use@element_1,@element_2, etc. (or@object_1, etc.) to reference saved elements. -
omni_versionis optional, the Omni model version to use. Supported values:o1,v3(default). -
resolutionis optional, the resolution of the generated image. Supported values:1k(default),2k,4k(v3 only, VIP required). -
aspect_ratiois optional, the aspect ratio of the generated image. Supported values:auto(v3 only),16:9(default for O1),9:16,1:1,4:3,3:4,3:2,2:3,21:9. v3 defaults toauto.autois NOT available for O1. -
imageCountis optional, the number of images to generate. Range:1to9. Default:1. -
story_modeis optional, enables Series Mode for coherent multi-image generation (v3 only). Requires at least one reference image or element. When enabled, generates a coherent set of images rather than independent generations. Default:false. -
unlimitedis optional, enables unlimited generation mode for eligible Pro and above accounts (subscribed prior December 15, 2025). Default:false.
Reference Images
image_1throughimage_10are optional, URLs of reference images. You can upload images using POST /assets. Reference in prompt using@image_1,@image_2, etc.
Saved Elements
element_1throughelement_10are optional, IDs of saved elements. Create elements using POST /elements. Reference in prompt using@element_1or@object_1, etc.
Note: Images and elements share the same pool of 10 slots. Combined total cannot exceed 10.
Prompt Reference Syntax
| Input Type | Prompt Syntax | Example |
|---|---|---|
| Images | @image_1, @image_2, … | "A woman @image_1 in a ballroom" |
| Elements | @element_1 or @object_1, … | "Character @element_1 sitting..." |
Scheduler Parameters
-
maxJobsis optional, range from1to50. Specifies the maximum number of concurrent jobs. -
replyUrlis optional, a callback URL to receive generation progress and result. See GET /tasks/task_idfor response model. -
replyRefis optional, a reference identifier for the callback.
Responses
-
{ "task": { "id": 123456789, "userId": 12345, "type": "mmu_omni_image", "scene": "NORMAL_CREATION", "status": 5, "status_name": "submitted", "status_final": false, "taskInfo": { "type": "mmu_omni_image", "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": "kolors_version", "value": "3.0-omni" }, { "name": "img_resolution", "value": "2k" }, { "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": "mmu_omni_image", "remaining": 10000, "limit": 10000 }, "userPoints": { "points": [], "total": 0 }, "userTickets": { "ticket": [] }, "editProject": null } -
The parameters are invalid. When Kling refuses the submitted parameters,
errorcarries Kling’s own message.{ "error": "<error message>" } -
{ "error": "Unauthorized", "code": 401 } -
{ "error": "<error message>" } -
Kling uses a
500response to indicate moderation and other issues with the input. It may be hard to separate actual 500 errors from moderation errors, so use theerrorfield text and your best judgement to tell them apart, since themessagefield 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
-
# Using reference image curl -X POST "https://api.useapi.net/v1/kling/images/omni" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer ..." \ -d '{ "email": "[email protected]", "prompt": "A woman @image_1 dancing elegantly in a ballroom", "resolution": "2k", "aspect_ratio": "16:9", "image_1": "https://s21-kling.klingai.com/ai-platform/xxx/xxx.jpg" }' # Using story_mode (Series Mode) for coherent multi-image generation curl -X POST "https://api.useapi.net/v1/kling/images/omni" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer ..." \ -d '{ "email": "[email protected]", "prompt": "A series of @image_1 in different seasons", "resolution": "2k", "aspect_ratio": "16:9", "imageCount": 3, "story_mode": true, "image_1": "https://s21-kling.klingai.com/ai-platform/xxx/xxx.jpg" }' # Using saved element curl -X POST "https://api.useapi.net/v1/kling/images/omni" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer ..." \ -d '{ "email": "[email protected]", "prompt": "Character @element_1 in a garden setting", "resolution": "2k", "aspect_ratio": "16:9", "element_1": "u_123456789012345" }' -
const token = "API token"; const email = "Previously configured account email"; const apiUrl = "https://api.useapi.net/v1/kling/images/omni"; const response = await fetch(apiUrl, { method: "POST", headers: { "Content-Type": "application/json", "Authorization": `Bearer ${token}`, }, body: JSON.stringify({ email: email, prompt: "Character @element_1 in a garden setting", resolution: "2k", aspect_ratio: "16:9", element_1: "u_123456789012345" }) }); 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/images/omni" headers = { "Content-Type": "application/json", "Authorization" : f"Bearer {token}" } data = { "email": email, "prompt": "Character @element_1 in a garden setting", "resolution": "2k", "aspect_ratio": "16:9", "element_1": "u_123456789012345" } response = requests.post(apiUrl, headers=headers, json=data) print(response, response.json())