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/completions or /v1/embeddings.
  • See which models are eligible. Batch-eligible models show a “Batch API” note on their model page and a batch_supported field on GET /v1/models.

Gemini-compatible endpoint

  • Use our models with the Google GenAI SDK. EmpirioLabs now speaks Google’s native Gemini API. Point the google-genai SDK (Python or JavaScript), or any Gemini-native client, at https://api.empiriolabs.ai, authenticate with your EmpirioLabs API key, and call any chat model through generateContent and streamGenerateContent.
  • 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, and countTokens.