💰 50% COST SAVINGS

Message Batches

Process thousands of requests asynchronously at half the cost. Perfect for bulk operations, data processing, and nightly jobs.

💵

50% Cheaper

Half the cost of synchronous API calls

📦

100K Requests

Up to 100,000 requests per batch

⏱️

24hr Processing

Results within 24 hours, often faster

How It Works

1
Upload
Upload a JSONL file with your requests
2
Create Batch
Submit the batch for processing
3
Process
We process requests in parallel
4
Download
Download results when ready

Batch Status

batch_abc123def456

● Processing
6,800 / 10,000 completed ETA: ~12 minutes

Quick Start

Python - Create and Process a Batch
from mythicdot import MythicDot client = MythicDot() # Step 1: Upload the batch input file batch_file = client.files.create( file=open("requests.jsonl", "rb"), purpose="batch" ) # Step 2: Create the batch batch = client.batches.create( input_file_id=batch_file.id, endpoint="/v1/chat/completions", completion_window="24h" ) print(f"Batch created: {batch.id}") # Step 3: Check status batch = client.batches.retrieve(batch.id) print(f"Status: {batch.status}") print(f"Completed: {batch.request_counts.completed}") # Step 4: Download results when complete if batch.status == "completed": results = client.files.content(batch.output_file_id) with open("results.jsonl", "wb") as f: f.write(results.content)

Pricing Comparison

Synchronous API
$10
per 1M tokens
Batch API
$5
per 1M tokens
50% savings!

Process at Scale

Queue your bulk operations for significant savings.

Batch API Docs → Cost Guide →