KIE.AI
language
language
  • 🇺🇸 English
  • 🇨🇳 Chinese
language
language
  • 🇺🇸 English
  • 🇨🇳 Chinese
Support
MarketFile Upload APICommon API
MarketFile Upload APICommon API
  1. Common API
  • Common API Quickstart
  • Webhook Security Verification
  • Get Remaining Credits
    GET
  • Get Download URL for Generated Files
    POST
  1. Common API

Get Download URL for Generated Files

POST
/api/v1/common/download-url

Get Download Link for Generated Files#

Convert generated file URLs into downloadable temporary links. Only supports files generated by kie.ai services.

Features#

Convert kie.ai generated file URLs into downloadable links
Supports all file types generated by the kie.ai platform (images, videos, audio, etc.)
Temporary download links are valid for 20 minutes
Secure access to generated content
Protected by API Key authentication

Important Notes#

Only supports file URLs generated by kie.ai services. External file URLs will return a 422 validation error.
Downloadable links expire after 20 minutes. Please ensure you download or cache content within this timeframe.

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/common/download-url' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
  "url": "https://tempfile.aiquickdraw.com/path/to/image.jpg" // 图片url(必填)
}'
Response Response Example
200 - Successful Example
{
    "code": 200,
    "msg": "success",
    "data": "https://tempfile.1f6cxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxbd98"
}
Previous
Get Remaining Credits
Built with