Batch API and Gemini-compatible endpoint
Batch API and Gemini-compatible endpoint
Batch API and Gemini-compatible endpoint
Submit large jobs as a batch for 35% off list price, and call our chat models through Google’s native Gemini API with the google-genai SDK.
Batch API
- Run large jobs at 35% off. The new Batch API lets you submit many requests as a single asynchronous job and pay 35% off list price. Upload a JSONL file of requests to
/v1/files, create the batch with/v1/batches, then poll for the finished results file. Each line targets/v1/chat/completionsor/v1/embeddings. - See which models are eligible. Batch-eligible models show a “Batch API” note on their model page and a
batch_supportedfield onGET /v1/models.
Gemini-compatible endpoint
- Use our models with the Google GenAI SDK. EmpirioLabs now speaks Google’s native Gemini API. Point the
google-genaiSDK (Python or JavaScript), or any Gemini-native client, athttps://api.empiriolabs.ai, authenticate with your EmpirioLabs API key, and call any chat model throughgenerateContentandstreamGenerateContent. - Every parameter carries over. System instructions, temperature, max output tokens, thinking budget, tools and function calling, JSON output, and image input all translate automatically. Pricing and billing match
/v1/chat/completions. - Find it in the API reference. The new Gemini section documents
generateContent,streamGenerateContent, andcountTokens.
