---
title: "Create a batch job"
method: POST
path: "/v1/batches"
tags: ["Batches"]
---

# Create a batch job

`POST /v1/batches`

## Request

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

Create a new batch job with the given input file and endpoint

## Request body

- CreateBatchRequest
  - `endpoint` '/v1/chat/completions' | '/v1/audio/transcriptions' | '/v1/audio/translations', required: The endpoint to use for batch processing. Each line of the uploaded input file is dispatched against this endpoint. - `/v1/chat/completions` — chat completion batches - `/v1/audio/transcriptions` — audio transcription batches (e.g. `openai/whisper-large-v3`) - `/v1/audio/translations` — audio translation batches
  - `input_file_id` string, required: ID of the uploaded input file containing batch requests
  - `completion_window` string: Time window for batch completion (optional)
  - `priority` integer: Priority for batch processing (optional)
  - `model_id` string: Model to use for processing batch requests

## Response `201`

Job created (potentially with warnings)

- BatchJobWithWarning
  - `job` 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
  - `warning` string

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `429`: Too Many Requests
- `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/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)
