Assistant
Assistant and Film Maker charge as work proceeds and pause when credits are insufficient. Guided mode pauses for creative review.
Start a run#
Guided runs pause for human review in Tong. Automatic runs continue. Both charge as work proceeds and pause when credits run out.
curl -X POST 'https://platform.tongai.io/v1/assistant/runs' \ -H "Authorization: Bearer $TONG_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: 45be69f1-c266-4a09-a82c-bf3c6303eb03" \ -d '{ "message": "Create a short film about a quiet city", "mode": "guided", "attachments": []}'Configuration
curl --versionFollow the run#
GET /v1/runs/{run_id}GET /v1/runs/{run_id}/events?after=0POST /v1/runs/{run_id}/pausePOST /v1/runs/{run_id}/resumeAssistant and Film Maker charge as work proceeds and pause when credits are insufficient. Guided mode pauses for creative review.
Continue in conversation#
curl -X POST 'https://platform.tongai.io/v1/conversations' \ -H "Authorization: Bearer $TONG_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: 45be69f1-c266-4a09-a82c-bf3c6303eb03" \ -d '{ "entrypoint": "assistant", "mode": "guided"}'Configuration
curl --versionPOST /v1/conversations/{conversation_id}/messagesIdempotency-Key: {new_intent_uuid}
{"text":"Continue with the next scene","attachment_asset_ids":[]}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.Credits and billingFollow quoted prices, actual usage and settled customer credits.Requests and logsAn accepted request is not a finished generation. Track the saved job until its output is ready.