KIE.AI
Chinese
  • English
  • Chinese
Chinese
  • English
  • Chinese
Support
Chinese
  • 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 快速开始
  • 4o 图片生成回调
  • 生成4o图像
    POST
  • 获取4o图像详情
    GET
  • 获取直接下载URL
    POST
Chinese
  • English
  • Chinese
Support
Chinese
  • 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图像

POST
/api/v1/gpt4o-image/generate
创建一个新的4o图像生成任务。生成的图片保存14天,14天后过期。

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
请求成功
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/image1.png",
        "https://example.com/image2.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 图片生成回调
Next
获取4o图像详情
Built with