---
title: "Cancel batch (refunds unused credits)"
method: POST
path: "/api/v2/batches/{batch_id}/cancel"
tags: ["Batch Processing (v2)"]
---

# Cancel batch (refunds unused credits)

`POST /api/v2/batches/{batch_id}/cancel`

## Path parameters

- `batch_id` string, required

## Response `200`

Batch cancelled

---

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