Cancel a batch
POST/v1/batches/:id/cancel
Asks the vendor to stop a batch. The status changes to cancelling, and to cancelled when the vendor stops. The lines that finished before the stop have results and are billed. OpenRouter has no cancel for a batch.
Request
Responses
- 200
- 401
- 404
- 409
- 502
- 503
The batch.
The bearer virtual key is missing (missing_key), or it is not valid or it is revoked (invalid_key).
The project has no batch with this id (batch_not_found).
The batch ended, or the vendor has no cancel (batch_not_cancellable).
The vendor refused the call or did not answer (upstream_failed).
The batch store is not configured (batch_store_unavailable), or the project's own key for the vendor could not be read (own_key_unreadable).