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

获取直接下载URL

POST
/api/v1/gpt4o-image/download-url
将图片URL转换为可直接下载的URL,主要解决直接下载时的跨域问题。返回的URL有效期为20分钟。

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/download-url' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "taskId": "task12345",
    "url": "https://tempfile.aiquickdraw.com/v/xxxxxxx.png"
}'
Response Response Example
200 - 成功示例
{
    "code": 200,
    "msg": "success",
    "data": "https://xxxxxx.xxxxxxxx.r2.cloudflarestorage.com/v/xxxxxxx.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20250415T101007Z&X-Amz-SignedHeaders=host&X-Amz-Expires=1200&X-Amz-Credential=2464206aa3e576aa7c035d889be3a84e%2F20250415%2Fapac%2Fs3%2Faws4_request&X-Amz-Signature=122ae8bef09110e620841ab2ef8061c1818e754fc201408a9d1c6847b36fd3df"
}
Previous
获取4o图像详情
Built with