Uploads and assets
Upload one file per request. The purpose selects the native format checks and size limit. Director uploads also require a project ID.
Upload a file#
curl -X POST 'https://platform.tongai.io/v1/assets?purpose=image' \ -H "Authorization: Bearer $TONG_API_KEY" \ -H "Idempotency-Key: 45be69f1-c266-4a09-a82c-bf3c6303eb03" \ -F '[email protected]'Configuration
curl --versionValidate an existing owned asset for this workflow. Use the upload endpoint when starting with a local file.
Upload limits#
purpose | MiB |
|---|---|
image | 10 |
reference | 100 |
video | 100 |
audio_reference | 20 |
director_document | 10 |
director_reference | 64 |
lora_media | 50 |
motion_video | 10 |
motion_image | 10 |
video_edit | 100 |
Owned assets#
GET /v1/assets/{asset_id}GET /v1/assets/{asset_id}/downloadGET /v1/resources?uri={encoded_tong_media_uri}Named referencesReference labels bind to owned asset IDs. Read the selected model’s reference capabilities and preserve the same labels, order and configuration when quoting and submitting.List assetsRead the selected owned resource or current workflow state without starting a new generation.Get assetRead the selected owned resource or current workflow state without starting a new generation.Download assetRead the selected owned resource or current workflow state without starting a new generation.