---
title: "Cancel a batch job (Gemini format)"
method: POST
path: "/genai/v1beta/batches/{batch_id}"
tags: ["GenAI Integration"]
---

# Cancel a batch job (Gemini format)

`POST /genai/v1beta/batches/{batch_id}`

Cancels a batch job. Gemini conventionally sends the request as
`/v1beta/batches/{batch_id}:cancel`; the router matches the `:cancel`
suffix into the `batch_id` path parameter.

## Path parameters

- `batch_id` string, required

## Response `200`

Cancellation accepted.

- object

## Other responses

- `404` — Batch not found
- `500` — Internal server error

---

[API](https://skmtc.net/getbifrost/apis/bifrost-api.md) · [All operations](https://skmtc.net/getbifrost/apis/bifrost-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getbifrost/bifrost-api/versions/f8cab88f64ea/schema)
