POST
POST /evals/{eval_id}/runs/{run_id}/cancel — OpenAI API
OpenAI API key (required); https://api.openai.com/v1
OpenAI APICancel eval run
- Base URL
- https://api.openai.com/v1
- Auth
- Authorization: Bearer <OPENAI_API_KEY>
- Last verified
- 2026-10-20 · upstream hash matched
Actions Try in browser→
Agents: curl -H "Accept: text/markdown" this URL
→ 189 tokens · Vary: Accept
→ 189 tokens · Vary: Accept
Critical gotchas
The Responses API is the primary interface for new text and tool workflows; Chat Completions remains a separate compatibility API.
Audio transcription uploads use multipart form data rather than a JSON request body.
cURL
curl -X POST 'https://api.openai.com/v1/evals/eval-id/runs/run-id/cancel' \ -H "Authorization: Bearer $OPENAI_API_KEY"
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| eval_id | path | string | Yes | The ID of the evaluation whose run you want to cancel. |
| run_id | path | string | Yes | The ID of the run to cancel. |
Response 200 OK
{
"object": "eval.run",
"id": "string",
"eval_id": "string",
"status": "string",
"model": "string",
"name": "string",
"created_at": 0,
"report_url": "https://example.com",
"result_counts": {
"total": 0,
"errored": 0,
"failed": 0,
"passed": 0
},
"per_model_usage": [
{
"model_name": "string",
"invocation_count": 0,
"prompt_tokens": 0,
"completion_tokens": 0,
"total_tokens": 0,
"cached_tokens": 0
}
],
"per_testing_criteria_results": [
{
"testing_criteria": "string",
"passed": 0,
"failed": 0
}
],
"data_source": {
"type": "jsonl",
"source": {
"type": "file_content",
"content": [
{
"item": {},
"sample": {}
}
]
}
},
"metadata": {},
"error": {
"code": "string",
"message": "string"
}
} Get a free OpenAI API key → sponsored Affiliate link - we may earn a commission, at no extra cost to you.