Download Assets
GET /v1/tasks/{id}/assets/{index}
Downloads the asset at position index (zero-based) using the Task API key directly, without relying on the signed URL in the task response.
curl https://api.llmapi.site/v1/tasks/8b17fd33b0e947a08cb417e81e9ea9da/assets/0 \
-H 'Authorization: Bearer YOUR_TASK_API_KEY' \
--output result.pngImages and transferred video assets use this download endpoint; future audio and 3D assets use the same shape. Read kind, content_type, and size_bytes from assets[index] before choosing a filename or decoder. Video adapters use the same stored-asset download contract as image adapters.
Response
The endpoint either returns the raw binary asset directly or redirects to a signed asset URL.
| Status | Meaning |
|---|---|
200 OK | Binary asset response. Content-Type matches the asset type, such as image/png, video/mp4, or model/gltf-binary. |
302 Found | Redirect to a signed asset URL. HTTP clients should follow redirects. |
Errors
| Status | Cause |
|---|---|
401 | Missing or invalid API key. |
403 | API key is not enabled for Task API. |
404 | Task or asset index not found. |
503 | Asset storage is unavailable. |
Asset metadata is not encoded in download response headers and only contains sparse fields from the server's public allowlist. The current video transfer path does not guarantee dimensions, duration, frame rate, or audio metadata; use content_type and size_bytes as the stable download facts.