Base URL:
https://platform.runblob.ioPOST /v1/kling/o1-photo/generate
Creates an image generation task from text description using Kling O1 Photo model.Text description of the image (1-2500 characters)
Array of up to 5 image URLs for reference-based generation
Array of up to 5 base64-encoded images for reference-based generation
Image resolution:
"1k" or "2k"Image aspect ratio. Available options:
"9:16"- Vertical portrait"2:3"- Vertical"3:4"- Vertical"1:1"- Square (default)"4:3"- Horizontal"3:2"- Horizontal"16:9"- Widescreen"21:9"- Ultra-wide
Webhook URL for completion notifications
Response
UUID of the generation task for status checking
Initial status, always
"pending"Amount charged in USD ($0.029 per image)
Image generation typically takes 1-2 minutes. Use the
generation_id to check status or set up webhooks for notifications.Check status: GET /v1/kling/o1-photo/generations/{generation_id}Generation Features
Reference Images
Reference Images
Use up to 5 input images (total from both sources):
images_url: Provide URLs of reference images (HTTPS)images_base64: Provide base64-encoded images- Supports JPEG, PNG, WEBP formats
- AI will use them as visual reference for generation
- Maximum 10 MB per image
Resolution Options
Resolution Options
Choose image quality:
- 1K: Faster generation, standard quality
- 2K: Higher detail, recommended for most use cases
Aspect Ratios
Aspect Ratios
8 aspect ratio options:
- Portrait formats: 9:16, 2:3, 3:4
- Square: 1:1
- Landscape formats: 4:3, 3:2, 16:9, 21:9