Get Download URL for Generated Files
Get Download URL for Generated Files
POST
Get Download URL for Generated Files
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
Authorizations
All APIs require authentication via Bearer Token.
Get API Key:
- Visit API Key Management Page to get your API Key
Usage: Add to request header: Authorization: Bearer YOUR_API_KEY
Body
application/json
Generated file URL from kie.ai services. External file URLs are not supported.
Example:
"https://tempfile.1f6cxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxbd98"
Response
Request successful
Response Status Code
| Code | Description |
|---|---|
| 200 | Success - Request has been processed successfully |
| 401 | Unauthorized - Authentication credentials are missing or invalid |
| 402 | Insufficient Credits - Account does not have enough credits to perform the operation |
| 404 | Not Found - The requested resource or endpoint does not exist |
| 422 | Validation Error - Invalid URL (External file URLs are not supported) |
| 429 | Rate Limited - Request limit has been exceeded for this resource |
| 455 | Service Unavailable - System is currently undergoing maintenance |
| 500 | Server Error - An unexpected error occurred while processing the request |
| 505 | Feature Disabled - The requested feature is currently disabled |
Available options:
200, 401, 402, 404, 422, 429, 455, 500, 505 Error message when code != 200
Example:
"success"
Downloadable URL for the file. Valid for 20 minutes.
Example:
"https://tempfile.1f6cxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxbd98"
