Some work doesn't need an answer in seconds: evaluations, classification, embeddings over a whole document set, nightly reports. For that, boldrouter now has a Batch API.
Every provider bills batch tokens at 50% of the standard price, and you get that full discount. Requests that fail, expire or are cancelled are free.
Two formats
- OpenAI format (
/v1/filesand/v1/batches) for OpenAI, Google Gemini, Mistral and Qwen models. Up to 50,000 requests or 200 MB per batch. - Anthropic format (
/v1/messages/batches) for Claude models, on Anthropic's Message Batches API. Up to 100,000 requests or 256 MB per batch.
Both work with the official SDKs unchanged. Point them at boldrouter and use your boldrouter key.
from openai import OpenAI
client = OpenAI(base_url="https://boldrouter.com/v1", api_key="sk-bold-...")
batch_file = client.files.create(file=open("requests.jsonl", "rb"), purpose="batch")
batch = client.batches.create(
input_file_id=batch_file.id,
endpoint="/v1/chat/completions",
completion_window="24h",
)What to know
- All requests in a batch go to the same provider, which runs the batch.
- Use provider model ids or boldrouter ids such as
openai/gpt-4.1orgoogle/gemini-2.5-flash. - Batch usage shows up in your usage dashboard and is billed from your credits like any other request.
Read the Batch API docs for limits per provider and the full request format.