---
title: "Cancel Run"
method: POST
path: "/v1/evals/{eval_id}/runs/{run_id}"
tags: ["evals"]
---

# Cancel Run

`POST /v1/evals/{eval_id}/runs/{run_id}`

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:
```bash
curl -X POST "http://localhost:4000/v1/evals/eval_123/runs/run_456/cancel"       -H "Authorization: Bearer your-key"
```

Returns: CancelRunResponse with cancellation confirmation

## Path parameters

- `eval_id` string, required
- `run_id` string, required

## Query parameters

- `custom_llm_provider` string, nullable

## Response `200`

Successful Response

- CancelRunResponse — Response from cancelling a run
  - `id` string, required
  - `object` string
  - `status` 'cancelled', required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/flock/apis/litellm-api.md) · [All operations](https://skmtc.net/flock/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/flock/litellm-api/revisions/8fbaab4fc7c5/schema)
