---
title: "Batch Results"
method: GET
path: "/v3/batches/{batch_id}/results"
tags: ["Batches"]
---

# Batch Results

`GET /v3/batches/{batch_id}/results`

## Request

- Base URL: `https://api.edenai.run`
- URL: `https://api.edenai.run/v3/batches/{batch_id}/results`
- Auth: HTTP bearer

The results of a finished batch, read from its provider. OpenAI keeps them 30 days from
when it wrote them, at the end of the batch (`jobs` module docstring), and Anthropic 29 days
after the batch was created; Mistral states that batch results do not expire. Amazon Bedrock
and Vertex AI results are read from Eden AI's own storage. Once the provider no longer has
them the answer is 410. An Anthropic, Bedrock or Vertex AI request's result is translated to
a chat completion.

The response is streamed. The download is not: ``llm__abatch_results`` reads both files
whole, so a request holds them in memory, bounded by the create's line cap
(`LLM_BATCH_MAX_LINES`). The lines are validated once there and written out as dicts.

## Path parameters

- `batch_id` string, required: The batch id: the `id` the create call returned.

## Response `200`

One JSON line per request: `custom_id`, `response` (`status_code`, `body`) for a request that succeeded, else `error`.

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/edenai/apis/eden-ai-api-v3.md) - [All operations](https://skmtc.dev/edenai/apis/eden-ai-api-v3/llms.txt) - [OpenAPI document](https://skmtc.dev/edenai/apis/eden-ai-api-v3/revisions/20ddfd49a3f4?raw)
