Download image
/v1/images/{image_id}/contentDownload generated image content for a completed image record.
Use GET /v1/images to find the image_id. The default response is a redirect to a fresh image URL. You can also request a JSON URL response or stream the image binary through the API.
Authentication
Authorization Bearer
API key as bearer token in Authorization header.
Path and Query Parameters
image_idstringrequiredThe image record ID.
formatenum<string>default:redirectResponse format. Use redirect for a 302 redirect, url for JSON, or binary to stream the image file through the API.
Available options: redirect url binary
Response
redirect302Default mode. Redirects to an image URL.
urlobjectReturned when format=url.
url.urlstringImage URL.
url.image_idstringImage record ID.
url.expires_inintegerURL lifetime hint in seconds.
binaryimage/*Returned when format=binary. Response includes Content-Disposition attachment filename.
If the image record is not completed or has no available URL, the API returns an error object.
Previous
List images
Next
Delete image