latestOpenAPI 3.1.02026-08-197104501.1 MB

8fbaab4fc7c5

evals

Cancel Run

Cancel a running run.

Model-based routing (for multi-account support):

  • Pass model via header: x-litellm-model: gpt-4-account-1
  • Pass model via query: ?model=gpt-4-account-1

Example usage:

curl -X POST "http://localhost:4000/v1/evals/eval_123/runs/run_456/cancel"       -H "Authorization: Bearer your-key"

Returns: CancelRunResponse with cancellation confirmation

post/v1/evals/{eval_id}/runs/{run_id}

Path parameters

eval_idstring required
run_idstring required

Query parameters

custom_llm_providerstring nullable

Response

Successful Response

idstring required
objectstring
status'cancelled' required