curl -X POST https://api.together.ai/v1/queue/submit \
-H "Authorization: Bearer $TOGETHER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "my-org/video-generator",
"payload": {"prompt": "A cat playing piano", "duration": 5},
"priority": 1,
"info": {"user_id": "user_123"}
}'{
"requestId": "019ba379-92da-71e4-ac40-d98059fd67c7",
"status": "pending"
}Submit a new job to the queue for asynchronous processing. Jobs are processed in strict priority order (higher priority first, FIFO within the same priority). Returns a request ID that can be used to poll status or cancel the job.
curl -X POST https://api.together.ai/v1/queue/submit \
-H "Authorization: Bearer $TOGETHER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "my-org/video-generator",
"payload": {"prompt": "A cat playing piano", "duration": 5},
"priority": 1,
"info": {"user_id": "user_123"}
}'{
"requestId": "019ba379-92da-71e4-ac40-d98059fd67c7",
"status": "pending"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Job request
Required model identifier
Freeform model input. Passed unchanged to the model. Contents are model-specific.
Arbitrary JSON metadata stored with the job and returned in status responses. The model and system may add or update keys during processing.
Job priority. Higher values are processed first (strict priority ordering). Jobs with equal priority are processed in submission order (FIFO).
Was this page helpful?