Download generated file
GET/v1/visual/:request-id/file/:file-id
Download a specific file generated by a completed visual request.
Important Notes:
- The complete download URL is provided in the
generated_filesarray from the status endpoint - you don't need to construct it manually - Authentication headers are required to download the file content
- Files should be downloaded and hosted elsewhere for display purposes - do not use these URLs directly for displaying visuals in your application
- Both status and file URLs expire after 30 minutes from generation
Files are only available for requests with status "completed". The response will include appropriate Content-Type headers based on the file format.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 410
- 500
File downloaded successfully
Response Headers
Content-Type
MIME type of the file
Example:
image/svg+xmlContent-Length
Size of the file in bytes
Example:
245760Invalid request ID or file ID format
Authentication required or invalid token
Access denied - request belongs to another user
Request or file not found
Request has expired and is no longer available
Internal server error