Base URL:
https://platform.runblob.ioPOST /v1/kling/o3-photo/generate
Creates an image generation task from text description using Kling O3 Photo model.Text description of the image (1-2500 characters)
Array of image URLs for reference-based generation (max 10 images, cannot mix with
images_base64)Array of base64-encoded images for reference-based generation (max 10 images, cannot mix with
images_url)Image resolution:
"1k", "2k", or "4k"Image aspect ratio. Available options:
"1:1"- Square (default)"auto"- Automatic detection"9:16"- Vertical portrait"2:3"- Vertical"3:4"- Vertical"4:3"- Horizontal"3:2"- Horizontal"16:9"- Widescreen"21:9"- Ultra-wide
Generate multiple variations in a single image (experimental feature)
Webhook URL for completion notifications
Response
UUID of the generation task for status checking
Initial status, always
"pending"Amount charged in USD (varies by resolution)
Image generation typically takes 1-3 minutes. Use the
generation_id to check status or set up webhooks for notifications.Check status: GET /v1/kling/o3-photo/generations/{generation_id}Generation Features
Reference Images
Reference Images
Use input images for reference-based generation:
images_url: Provide URLs of reference images (HTTPS)images_base64: Provide base64-encoded images- Maximum 10 images total (URLs + base64 combined)
- Cannot mix
images_urlandimages_base64in one request - Supports JPEG, PNG, WEBP formats
- Maximum 10 MB per image
- AI will use them as visual reference for generation
Resolution Options
Resolution Options
Choose image quality:
- 1K: Faster generation, standard quality
- 2K: Higher detail, recommended for most use cases
- 4K: Ultra high-definition, best for professional work (default)
Aspect Ratios
Aspect Ratios
9 aspect ratio options:
- 1:1: Square (default)
- Auto: Automatically determine best ratio
- Portrait formats: 9:16, 2:3, 3:4
- Landscape formats: 4:3, 3:2, 16:9, 21:9
Multi-Shots (Experimental)
Multi-Shots (Experimental)
Generate multiple variations in one image:
- Set
prefer_multi_shots: true - Creates character sheets, design variations, or multiple angles
- Best with prompts like “character design sheet”, “product from different angles”
- Works best with 16:9 or 21:9 aspect ratios
Error Responses
- 400 Bad Request
- 402 Payment Required
- 422 Unprocessable Entity