Text-to-video or image-to-video model. Generates short video clips with configurable duration and resolution.
Key strengths
- Text + image input
- Multiple resolutions
- Duration control
- Motion coherence
Use cases
- Ads and trailers
- Concept videos
- Storyboards
- Social media content
Alibaba's alibaba/kling-v3-omni is a state-of-the-art text-to-image generation model. It produces highly detailed, photorealistic and stylized imagery from natural-language prompts, with strong instruction following and accurate text rendering inside generated images.
Compatible with the OpenAI `/images/generations` endpoint shape, supporting prompt, size, seed, negative prompt, and resolution controls. Excellent for creative workflows, marketing assets, product visualization, and concept art at scale.
alibaba/kling-v3-omni is fully OpenAI-compatible — drop in your existing OpenAI Python or Node SDK and switch `baseURL` to `https://api.tokenlx.ai`. TokenLX transparently routes your requests to the optimal provider endpoint while preserving streaming, function-calling, and structured-output semantics.
Performance
Compare different providers across TokenLX · All locations.
Effective Pricing
Pricing is shown by the model billing method, using per-call or per-second prices and resolution tiers.
Recent activity
Total usage per day on TokenLX (last 30 days).
Sample code & API
TokenLX normalizes requests and responses across providers. Use any OpenAI SDK or our native SDK.
# ─── 文生图示例 ───
import requests
response = requests.post(
"https://api.tokenlx.ai/v1/aigc/image/generations",
headers={"Authorization": "Bearer sk-tokenlx-..."},
json={
"model": "kling-v3-omni",
"prompt": "一只柴犬在樱花树下奔跑",
"aspectRatio": "16:9",
"resolution": "2k",
"n": 1,
},
)
data = response.json()
print(data["data"][0])
# ─── 图像编辑示例 ───
edit_response = requests.post(
"https://api.tokenlx.ai/v1/aigc/image/generations",
headers={"Authorization": "Bearer sk-tokenlx-..."},
json={
"model": "kling-v3-omni",
"prompt": "把背景替换为星空",
"images": [
{"file_uri": "https://example.com/photo.jpg", "mime_type": "image/jpeg"},
],
"aspectRatio": "1:1",
"resolution": "2k",
},
)
print(edit_response.json()["data"][0])Replace sk-aihubrouter-… with your key from the dashboard.
Parameter Reference
Kling is an async API. It returns a task_id instead of image URLs. Poll results via GET /v1/aigc/video/tasks/{taskId}?model=kling-v3-omni.
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | Yes | Model name |
| prompt | string | Yes | Generation prompt |
| aspectRatio | string | No | Aspect ratio 16:99:161:1 |
| resolution | string | No | Resolution (default 1k, 4k omni only) 1k2k4k |
| n | int | No | Number of images to generate (output): 1~9 |
| images | array | Editing | Input images for editing (required when editing). Each item has file_uri and optional mime_type. Reference + subject images combined max 10 |
| images[].file_uri | string | Editing | Image URL or base64 data URI |
| images[].mime_type | string | No | MIME type, defaults to image/png |
modelstringYespromptstringYesaspectRatiostringNo16:99:161:1resolutionstringNo1k2k4knintNoimagesarrayEditingimages[].file_uristringEditingimages[].mime_typestringNo