{ "model_id": "klingai/kling-v3-image", "provider_id": "klingai", "name": "Kling v3 Image", "description": "Kling V3 Image is Kling AI's text-to-image model for photorealistic image generation.", "task": "Text-to-Image", "tags": [ "Image Generation", "Photorealistic" ], "context_length": null, "max_output_tokens": null, "schema_version": "1.0.0", "pricing": { "Per image": 0.027 }, "examples": [ { "name": "Simple Generation", "description": "Basic text-to-image with default settings", "input": { "aspect_ratio": "16:9", "prompt": "A photorealistic portrait of a fox in an autumn forest, golden hour lighting", "resolution": "1k" }, "output": { "image": "https://examples.aig.cloudflare.com/klingai/kling-v3-image/simple-generation.png" }, "raw_response": { "state": "Completed", "result": { "image": "https://examples.aig.cloudflare.com/klingai/kling-v3-image/simple-generation.png" } }, "code_snippets": [ { "label": "typescript", "code": "const response = await env.AI.run(\n 'klingai/kling-v3-image',\n {\n prompt:\n 'A photorealistic portrait of a fox in an autumn forest, golden hour lighting',\n resolution: '1k',\n aspect_ratio: '16:9',\n },\n {\n gateway: { id: 'default' },\n }\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"klingai/kling-v3-image\",\n \"input\": {\n \"aspect_ratio\": \"16:9\",\n \"prompt\": \"A photorealistic portrait of a fox in an autumn forest, golden hour lighting\",\n \"resolution\": \"1k\"\n }\n}'" } ] } ], "default_example": null, "code_snippets": [], "supports_async": false, "zdr": false, "zdr_comment": null, "external_info": "https://klingai.com/", "terms": "https://klingai.com/terms", "cover_image_url": "https://pub-26f1392c1b674324be6786695bd72257.r2.dev/klingai/kling-v3-image.png", "metadata": { "Resolutions": "1K, 2K" }, "request_formats": null, "providers": null, "provider_details": [ { "id": "klingai", "pricing": { "output_image_count": 0.027 } } ], "banner": null, "created_at": "2026-10-26 15:29:19", "schema": { "input": { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "prompt": { "type": "string", "description": "Text prompt describing the image to generate" }, "negative_prompt": { "description": "Negative text prompt", "type": "string" }, "image": { "description": "Reference image (Base64 encoding or URL) for image-to-image", "type": "string" }, "resolution": { "default": "1k", "description": "Image generation resolution (1k: standard, 2k: high-res)", "type": "string", "enum": [ "1k", "2k" ] }, "aspect_ratio": { "default": "16:9", "description": "Aspect ratio of generated images", "type": "string", "enum": [ "16:9", "9:16", "1:1", "4:3", "3:4", "3:2", "2:3", "21:9" ] } }, "required": [ "prompt", "resolution", "aspect_ratio" ], "additionalProperties": false }, "output": { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "image": { "type": "string", "description": "URL to the generated image" } }, "required": [ "image" ], "additionalProperties": false } } }