Media Conversion API
Image, video and 3D-model conversion are live. They follow the same 3-step shape as Document Conversion: submit → poll → download.
Auth is the same bearer token as everywhere else, and an API key needs the convert
scope. Anonymous callers are served within the
free quota.
Submit
| Media | Endpoint |
|---|---|
| Image | POST /api/v1/convert/image/convert/ |
| Video | POST /api/v1/convert/video/convert/ |
| 3D model | POST /api/v1/convert/model/convert/ |
Send multipart/form-data with a file part, or reference a remote source with
file_url / s3_key, exactly one of the two. target_formats selects the output.
curl -sS https://indox.org/api/v1/convert/image/convert/ \
-H "Authorization: Bearer $INDOX_API_KEY" \
-F [email protected] \
-F target_formats=jpeg{ "id": "5b6a5a66-…", "status": "pending", "service": "image" }In Python: client.images.convert("photo.png", target_format="jpeg"), and the same on
client.videos and client.models.
The request no longer accepts user_id; the Python client raises ValueError if you pass it.
With a redirect_url, the 202 body also carries callback_signing_key; verify the callback as
described in Verifying the callback.
| Status | Cause |
|---|---|
400 | file_content_mismatch: the bytes do not match the extension. |
404 | The s3_key names an object that is not yours. |
422 | detection.source_unreadable: the input could not be read. |
503 | detection.unavailable or subscription.price_unavailable; retry later. |
Poll
| Media | Endpoint |
|---|---|
| Image | GET /api/v1/convert/image/conversion/{conversion_id}/ |
| 3D model | GET /api/v1/convert/model/conversion/{conversion_id}/ |
| Any media | GET /api/v1/media_core/conversion/{conversion_id}/ |
GET /api/v1/media_core/conversion/wait/{conversion_id}/ long-polls to a terminal state
instead of returning immediately. The server clamps its timeout query parameter to 1 to 120
seconds, and the wait route is throttled like every other route (429).
GET /api/v1/conversion/{conversion_id}/ works for any converter.
Download
GET /api/v1/media_core/files/{conversion_id}/download/
Batch: POST /api/v1/media_core/batch/collect/ then
GET /api/v1/media_core/batch/{batch_id}/download/.
A download or batch you do not own answers 404; one whose files have expired answers 410.
Capabilities
GET /api/v1/convert/{image,video,model}/formats/ lists what converts to what, and
GET /api/v1/convert/{image,model}/operations/ lists the per-media operations. Check
these before spending credits, an unsupported pair is rejected at submit with a 400. The 3D
model formats no longer include the USD family.
Legacy aliases
/api/v1/image_converter/, /api/v1/video_converter/ and /api/v1/model/ remain
mounted and route to the same views. Prefer the canonical convert/ paths above;
the aliases are kept for existing integrations.
The official SDKs wrap all of this, in Python, client.images,
client.videos and client.models.