---
title: "Cancel a batch job"
method: POST
path: "/v1/batches/{id}/cancel"
tags: ["Batches"]
---

# Cancel a batch job

`POST /v1/batches/{id}/cancel`

## Request

- Base URL: `https://api.together.ai`
- URL: `https://api.together.ai/v1/batches/{id}/cancel`
- Auth: HTTP bearer

Cancel a batch job by ID

## Path parameters

- `id` string, required: The ID of the batch job to cancel

## Response `200`

OK

- BatchJob
  - `id` string, uuid
  - `user_id` string
  - `input_file_id` string
  - `file_size_bytes` integer: Size of input file in bytes
  - `status` 'VALIDATING' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED' | 'EXPIRED' | 'CANCELLED': Current status of the batch job
  - `job_deadline` string, date-time
  - `created_at` string, date-time
  - `endpoint` string
  - `progress` number: Completion progress (0.0 to 100)
  - `model_id` string: Model used for processing requests
  - `output_file_id` string
  - `error_file_id` string
  - `error` string
  - `completed_at` string, date-time

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error

## Changes

- **2026-10-22** `bb5257b3173a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/together/apis/together-apis/changes/v1/batches/:id/cancel/post.md)

---

[API](https://skmtc.dev/together/apis/together-apis.md) - [All operations](https://skmtc.dev/together/apis/together-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/together/apis/together-apis/revisions/93438ddac711?raw)
