Kling Image O1 API
activeKling Image O1 — text+image guided image generation and AI multi-shot character consistency. Supports 1K/2K resolution and up to 9 output images.
Quick Start
Send a request to the Kling Image O1 API:
| 1 | curl -X POST https://apiin.one/api/v1/images/generations \ |
| 2 | -H "Authorization: Bearer YOUR_API_KEY" \ |
| 3 | -H "Content-Type: application/json" \ |
| 4 | -d '{ |
| 5 | "model": "kling-image-o1", |
| 6 | "prompt": "A cyberpunk cityscape at night with neon signs, inspired by the reference image", |
| 7 | "images": [ |
| 8 | "https://example.com/reference.jpg" |
| 9 | ], |
| 10 | "aspect_ratio": "16:9", |
| 11 | "resolution": "1k" |
| 12 | }' |
API Endpoint
/api/v1/images/generationsSend a POST request with your API key to generate content using Kling Image O1.
Headers
Bearer YOUR_API_KEY
application/json
Body Parameters
Model identifier: kling-image-o1
Text description for image generation
Task type: image-to-image (6cr) or ai-multi-shot (16cr) Defaults to image-to-image.
Array of reference image URLs (max 10)
Aspect ratio: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 21:9, auto Defaults to 1:1.
Output resolution: 1k or 2k Defaults to 1k.
Number of images to generate (1–9) Defaults to 1.
Example Request
| 1 | { |
| 2 | "model": "kling-image-o1", |
| 3 | "prompt": "A cyberpunk cityscape at night with neon signs, inspired by the reference image", |
| 4 | "images": [ |
| 5 | "https://example.com/reference.jpg" |
| 6 | ], |
| 7 | "aspect_ratio": "16:9", |
| 8 | "resolution": "1k" |
| 9 | } |
Example Response
Successful task creation response.
| 1 | { |
| 2 | "code": 200, |
| 3 | "message": "success", |
| 4 | "data": { |
| 5 | "task_id": "n49xxxx_kio1", |
| 6 | "status": "IN_PROGRESS" |
| 7 | } |
| 8 | } |
Check Task Status
For asynchronous tasks, poll the status endpoint to check when your task is complete:
/api/v1/tasks/{task_id}Returns the current status of a generation task. Poll until status is 'completed' or 'failed'.
| 1 | curl https://apiin.one/api/v1/tasks/task_abc123 \ |
| 2 | -H "Authorization: Bearer aio_your_key" |
Use Cases
- ✓Generate image variations from reference images
- ✓Create character-consistent image sets for storytelling
- ✓Build AI image editing tools
- ✓Produce multiple image outputs per request
API Tester
Test the Kling Image O1 API directly from your browser:
Error Codes
| 1 | { |
| 2 | "error": { |
| 3 | "code": 400, |
| 4 | "message": "Invalid parameters", |
| 5 | "type": "invalid_request" |
| 6 | } |
| 7 | } |
Frequently Asked Questions
How much does Kling Image O1 cost?
Image-to-image mode costs 6 credits per request. AI multi-shot mode costs 16 credits per request.
What is multi-shot mode?
Multi-shot generates character-consistent images from a single reference image, ideal for consistent character design across scenes.
What resolutions are supported?
Kling Image O1 supports 1K and 2K resolution output.
Why Use Kling Image O1 Through API in One?
Ready to use Kling Image O1?
Get Your API Key →