Skip to documentation
Open dashboard
On this page

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 --version

Validate an existing owned asset for this workflow. Use the upload endpoint when starting with a local file.

Upload limits#

purposeMiB
image10
reference100
video100
audio_reference20
director_document10
director_reference64
lora_media50
motion_video10
motion_image10
video_edit100

Owned assets#

HTTP
GET /v1/assets/{asset_id}GET /v1/assets/{asset_id}/downloadGET /v1/resources?uri={encoded_tong_media_uri}