# Create New Batch

## Create a message batch

> Create a batch of messages for asynchronous processing. All usage is charged at 50% of the standard API prices.

```json
{"openapi":"3.1.0","info":{"title":"Default module","version":"1.0.0"},"tags":[{"name":"Create New Batch"}],"servers":[{"url":"https://llm.onerouter.pro","description":"Pub Env"}],"security":[],"paths":{"/v1/batches":{"post":{"summary":"Create a message batch","deprecated":false,"description":"Create a batch of messages for asynchronous processing. All usage is charged at 50% of the standard API prices.","tags":["Create New Batch"],"parameters":[{"name":"Authorization","in":"header","description":"","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"requests":{"type":"array","items":{"type":"object","properties":{"custom_id":{"type":"string"},"params":{"type":"object","properties":{"model":{"type":"string"},"max_tokens":{"type":"integer"},"messages":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string"},"content":{"type":"string"}},"required":["role","content"]}},"metadata":{"type":"object","properties":{"ANY_ADDITIONAL_PROPERTY":{"type":"string"}},"required":["ANY_ADDITIONAL_PROPERTY"]},"stop_sequences":{"type":"array","items":{"type":"string"}},"system":{"type":"string"},"temperature":{"type":"integer"},"tool_choice":{"type":"null"},"tools":{"type":"array","items":{"type":"string"}},"top_k":{"type":"integer"},"top_p":{"type":"integer"},"thinking":{"type":"object","properties":{"budget_tokens":{"type":"integer"},"type":{"type":"string"}},"required":["budget_tokens","type"]}},"required":["model","max_tokens","messages","metadata","stop_sequences","system","temperature","tool_choice","tools","top_k","top_p","thinking"]}},"required":["custom_id","params"]}}},"required":["requests"]}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"batch_id":{"type":"string"},"object":{"type":"string"},"endpoint":{"type":"string"},"errors":{"type":"null"},"input_file_id":{"type":"string"},"completion_window":{"type":"string"},"status":{"type":"string"},"output_file_id":{"type":"null"},"error_file_id":{"type":"null"},"created_at":{"type":"integer"},"in_progress_at":{"type":"null"},"expires_at":{"type":"null"},"finalizing_at":{"type":"null"},"completed_at":{"type":"null"},"failed_at":{"type":"null"},"expired_at":{"type":"null"},"cancelling_at":{"type":"null"},"cancelled_at":{"type":"null"},"request_counts":{"type":"object","properties":{"total":{"type":"integer"},"completed":{"type":"integer"},"failed":{"type":"integer"}},"required":["total","completed","failed"]},"metadata":{"type":"null"}},"required":["id","batch_id","object","endpoint","errors","input_file_id","completion_window","status","output_file_id","error_file_id","created_at","in_progress_at","expires_at","finalizing_at","completed_at","failed_at","expired_at","cancelling_at","cancelled_at","request_counts","metadata"]}}},"headers":{}}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://infronai.gitbook.io/docs/batch-apis/llm-batch-api/create-new-batch.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
