Skip to content

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.

bash
curl https://api.llmapi.site/v1/tasks/8b17fd33b0e947a08cb417e81e9ea9da/assets/0 \
  -H 'Authorization: Bearer YOUR_TASK_API_KEY' \
  --output result.png

Images 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.

StatusMeaning
200 OKBinary asset response. Content-Type matches the asset type, such as image/png, video/mp4, or model/gltf-binary.
302 FoundRedirect to a signed asset URL. HTTP clients should follow redirects.

Errors

StatusCause
401Missing or invalid API key.
403API key is not enabled for Task API.
404Task or asset index not found.
503Asset 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.