POST
/
api
/
v1
/
common
/
download-url
Get Download URL for Generated Files
curl --request POST \
  --url https://api.kie.ai/api/v1/common/download-url \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "url": "https://tempfile.1f6cxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxbd98"
}'
{
  "code": 200,
  "msg": "success",
  "data": "https://tempfile.1f6cxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxbd98"
}
Convert generated file URLs to downloadable temporary URLs. Only supports files generated by kie.ai services.

Features

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

Important Notes

Only generated file URLs from kie.ai services are supported. External file URLs will result in a 422 validation error.
The downloadable URLs expire after 20 minutes. Make sure to download or cache the content within this timeframe.

Authorizations

Authorization
string
header
required

All APIs require authentication via Bearer Token.

Get API Key:

  1. Visit API Key Management Page to get your API Key

Usage: Add to request header: Authorization: Bearer YOUR_API_KEY

Body

application/json

Response

200
application/json

Request successful

The response is of type object.