THISBIT VOICE & TRANSCRIPTS / DOCUMENTATION
GET / POST /api/v2/batches
See which batch-mode runs wait for submission, or send them to the model runtime as one provider batch.
Implemented. Requires an enabled OpenAI-compatible runtime that was verified for the batch API. No connected host serves it yet (the weights.fyi batch API is designed, not built), so batch mode is witnessed on a loopback provider only.
GET / POST $STUDIO_CUSTOMER_URL/api/v2/batches- Host
- Customer API
- Caller
- Workspace member with the required project/recording permission.
- Authorization
- Bearer token for this host; see Authentication.
Request
GET: optional query project_id. POST: transport_version: 2, project_id, adapter (openai) and model. Every queued batch-mode run of that project, runtime and model goes into the one batch; test runs and private runs are not sent.
{
"transport_version": 2,
"project_id": "bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb",
"adapter": "openai",
"model": "qwen3.8-27b"
}Return value
GET 200: {transport_version: 2, pending: [{project_id, adapter, model, runs}], batches: [batch]}. POST 201: {transport_version: 2, batch}. A batch carries id, revision, project_id, adapter, model, run_ids, state (submitting, submitted, uncertain, completed or failed), provider (input_file_id, batch_id, status, request_counts), created_at, created_by, submitted_at, finished_at, error and results (run ID to outcome). Each run is one line of the provider batch with the run ID as custom_id, a 24-hour completion window and the Studio batch ID as metadata.
Errors and retrying
400 when no run of that project, runtime and model is waiting, or the runtime was not verified for the batch API. After a lost reply, read GET first: a submission that reached the provider is submitted or uncertain, and the service reconciles an uncertain one by its metadata before anything is sent again. Never submit again to recover a lost reply.
Read the error codes and limits before retrying. A missing or inaccessible resource can produce the same refusal; do not infer its existence.