Async, Batch & Group Inference APIs
Run offline generation, document enrichment, and large-scale evaluations at reduced cost with Inference.net's /v1/slow Async API, Group API (up to 50 requests with one completion webhook), and Batch API (up to 1,000,000 JSONL requests; 24 hours by default, configurable from 24 hours to 7 days).
- Change only `/v1` to `/v1/slow` in the OpenAI SDK for reduced-cost background inference
- Set `metadata.completion_window` (60s–1h for priority dispatch ahead of untimed jobs; longer windows up to 72h set a deadline without priority dispatch)
- Group API batches up to 50 requests in one JSON call with one `slow-group.completed` webhook
- Batch API processes up to 1,000,000 requests per JSONL file (24 hours by default; configurable from 24 hours to 7 days)
Built for production reliability
| Capability | Specification | How it helps |
|---|---|---|
| Async `/v1/slow` | Up to 24h default · optional 60s–72h completion_window | Individual OpenAI-compatible requests returning an immediate ID; supports /chat/completions, /completions, /embeddings. |
| Group API (`/v1/slow/group/*`) | Up to 50 requests/group · single webhook callback | Submit a bundle of related prompts in one JSON payload and track them as a single job. |
| Batch API (`/v1/batches`) | Up to 1,000,000 requests / JSONL file | Upload JSONL files for massive offline enrichment, classification, or evaluation jobs (24h default; configurable 24h–7d). |
| Webhook delivery & retries | Built-in delivery + ZDR post-delivery purge | Signed webhook events with automatic backoff retries (up to 24 attempts). |
| Model compatibility | Async-capable public models | Works with public models that accept asynchronous requests, including Schematron V2 extraction models (synchronous-only models return HTTP 400). |
Submit an async request with webhook delivery
Configure webhooks under Dashboard -> Settings -> Webhooks. All slow endpoints support /chat/completions, /completions, and /embeddings.
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.inference.net/v1/slow",
apiKey: process.env.INFERENCE_API_KEY,
});
// Returns immediately with a generation ID; result delivers to your webhook
const queued = await client.chat.completions.create({
model: "kimi-k3-fast",
messages: [{ role: "user", content: "Classify this support ticket." }],
// @ts-expect-error metadata passes webhook_id and completion_window
metadata: {
webhook_id: process.env.INFERENCE_WEBHOOK_ID,
completion_window: "10m",
},
});
console.log("Queued request:", queued.id);Guides and references
Complete guide to /v1/slow, completion_window scheduling (60s–1h priority dispatch; up to 72h deadline), and status states.
Open guide Batch API docsSubmit up to 1,000,000 requests in a single JSONL file (24 hours by default; configurable from 24 hours to 7 days).
Open guide Group API docsSend up to 50 requests in one JSON payload and receive a single completion callback.
Open guide Webhooks guideWebhook event payloads, signature verification, and 24-attempt retry schedules.
Open guide LLM Pricing CalculatorEstimate monthly token spend across all catalog models before running a batch job.
Open guideFrequently asked questions.
Quick answers to help you get started
Use `/v1/slow` for individual background requests with optional `completion_window` (60s–72h). Use Group API (`/v1/slow/group/*`) to submit up to 50 related requests in one JSON payload with a single `slow-group.completed` webhook. Use Batch API (`/v1/batches`) for up to 1,000,000 requests uploaded as a JSONL file.
With ZDR on, `/v1/slow` and Group API requests are supported when you attach an enabled `webhook_id`; results are delivered only to the webhook and purged immediately after delivery finishes. Batch (`/v1/batches`) and Files (`/v1/files`) require turning ZDR off in team settings.
Async, Group, and Batch endpoints require a pay-as-you-go API credit key. Inference Pass plan keys are restricted to interactive synchronous routes and return 403 plan_route_not_supported on async endpoints.
Failed webhook deliveries retry automatically up to 24 attempts (about 3 days on the standard schedule, or faster inside a short completion_window like 4m).
Ship on Inference.net today
Start self-serve with an API key, explore live model pricing, or talk with our team about dedicated capacity and custom SLAs.