---
title: "GET /ai/v1/batches/{batch_id}"
method: GET
path: "/ai/v1/batches/{batch_id}"
tags: ["AI Gateway"]
---

# GET /ai/v1/batches/{batch_id}

`GET /ai/v1/batches/{batch_id}`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/ai/v1/batches/{batch_id}`
- Auth: HTTP bearer

## Path parameters

- `batch_id` string, required

## Response `200`

Batch object

- BatchObject: A batch object as returned by the provider.
  - `completion_window` string
  - `created_at` integer
  - `endpoint` string
  - `error_file_id` string, nullable: Results of the failed requests.
  - `id` string, required
  - `input_file_id` string
  - `model` string, nullable
  - `object` string, required: Always `batch`
  - `output_file_id` string, nullable: Results of the successful requests; download with `GET /ai/v1/files/{file_id}/content`.
  - `request_counts` BatchRequestCounts, nullable: Progress counters of a batch.
    - `completed` integer
    - `failed` integer
    - `total` integer
  - `status` string, required: `validating`, `in_progress`, `finalizing`, `completed`, `failed`, `expired`, `cancelling` or `cancelled`
  - `usage` BatchUsage, nullable: Token usage of a finished batch, summed over its requests.
    - `input_tokens` integer
    - `output_tokens` integer
    - `total_tokens` integer

## Other responses

- `401`: Unauthorized
- `404`: No such batch created by the caller

## Changes

- **2026-10-05** `2d395ffb4f03`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/ai/v1/batches/:batch_id/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
