v1

latestOpenAPI 3.1.0Apache 2.02026-07-264001921002.3 KB
Batch

Cancel a batch job

Cancels a batch job.

post/v1/batches/{batch_id}/cancel

Path parameters

batch_idstring required

The ID of the batch to cancel

Query parameters

provider'openai' | 'azure' | 'anthropic' | 'bedrock' | 'cohere' | 'vertex' | 'vllm' | 'mistral' | 'ollama' | 'groq' | 'sgl' | 'parasail' | 'perplexity' | 'replicate' | 'cerebras' | 'deepseek' | 'gemini' | 'openrouter' | 'elevenlabs' | 'huggingface' | 'nebius' | 'xai' | 'runway' | 'fireworks' required

AI model provider identifier

The provider of the batch

Response

Successful response

idstring
objectstring
status'validating' | 'failed' | 'in_progress' | 'finalizing' | 'completed' | 'expired' | 'cancelling' | 'canceled' | 'ended'
cancelling_atinteger
cancelled_atinteger