KIE.AI
English
  • English
  • Chinese
English
  • English
  • Chinese
Support
English
  • English
  • Chinese
MarketVeo3.1 APISuno API4o Image API
Flux Kontext APIRunway APILuma APIFile Upload APICommon API
MarketVeo3.1 APISuno API4o Image API
Flux Kontext APIRunway APILuma APIFile Upload APICommon API
  1. 4o Image API
  • 4o Image API Quickstart
  • 4o Image Generation Callbacks
  • Generate 4o Image
    POST
  • Get 4o Image Details
    GET
  • Get Direct Download URL
    POST
English
  • English
  • Chinese
Support
English
  • English
  • Chinese
MarketVeo3.1 APISuno API4o Image API
Flux Kontext APIRunway APILuma APIFile Upload APICommon API
MarketVeo3.1 APISuno API4o Image API
Flux Kontext APIRunway APILuma APIFile Upload APICommon API
  1. 4o Image API

Generate 4o Image

POST
/api/v1/gpt4o-image/generate
Create a new 4o Image generation task. Generated images are stored for 14 days, after which they expire.

Callbacks

on4oImageGenerated

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Body Params application/jsonRequired

Examples

Responses

🟢200
application/json
Request successful
Body

🔴500Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.kie.ai/api/v1/gpt4o-image/generate' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "filesUrl": [
        "https://example.com/image.png"
    ],
    "prompt": "A beautiful sunset over the mountains",
    "size": "1:1",
    "callBackUrl": "https://your-callback-url.com/callback",
    "isEnhance": false,
    "uploadCn": false,
    "enableFallback": false,
    "fallbackModel": "FLUX_MAX"
}'
Response Response Example
200 - 成功示例
{
    "code": 200,
    "msg": "success",
    "data": {
        "taskId": "task12345"
    }
}
Previous
4o Image Generation Callbacks
Next
Get 4o Image Details
Built with