Use OpenAI SDK with Manifest
The OpenAI Python and TypeScript SDKs talk to any OpenAI-compatible endpoint. Point
them at Manifest by setting OPENAI_BASE_URL
and every chat completion, response, tool call, or Agents SDK loop routes through
the right model.
83 models routed through Manifest over the last 30 days.
Why use the OpenAI SDK with Manifest
Chatty workloads (Agents SDK loops, tool retries, chain-of-thought reasoning) burn tokens fast. Manifest intercepts each call, picks the right model, and keeps your code identical. Same SDK, same shapes, lower bill.
- One env var change: OPENAI_BASE_URL
- Slash token spend by 50–70% on chatty agent loops
- Works for the OpenAI SDK and the OpenAI Agents SDK
- Tool calling, structured outputs, and streaming all pass through
- Per-app spend caps and audit logs in the dashboard
- Open source: inspect and self-host the router
Setup in 60 seconds
Set two environment variables and the OpenAI SDK picks them up on the next run, no code changes required.
Point the SDK at Manifest by setting these env vars in your shell or
.env file:
export OPENAI_BASE_URL="https://api.manifest.build/v1"
export OPENAI_API_KEY="mnfst_YOUR_KEY"
Then use the SDK exactly as you would normally. Just point at
"auto" to let Manifest pick the model:
from openai import OpenAI
client = OpenAI()
response = client.chat.completions.create(
model="auto",
messages=[{"role": "user", "content": "Hello"}],
)
import OpenAI from "openai";
const client = new OpenAI();
const response = await client.chat.completions.create({
model: "auto",
messages: [{ role: "user", content: "Hello" }],
});
https://api.manifest.build/v1
mnfst_YOUR_KEY
auto
OpenAI SDK tokens processed on Manifest
Models in use
# Model |
Auth type | Tokens / last 30 days |
|---|---|---|
1.Gpt 5.6 Luna Pro | API Key | 85 M |
2.Gpt 5.6 Sol | Subscription | 49 M |
3.Gpt 5.3 Codex Spark | Subscription | 24 M |
4.Gpt 5.4 Mini | Subscription | 12 M |
5.Deepseek V4 Flash | Subscription | 10 M |
6.Claude Sonnet 5 | Subscription | 9 M |
7.Grok 4.5 | Subscription | 8 M |
8.Deepseek V4 Pro | API Key | 6 M |
9.Hy3 | API Key | 5 M |
10.MiniMax M3 | Subscription | 5 M |
11.Nemotron 3 Nano Omni 30b A3b Reasoning | API Key | 4 M |
12.Step 3.7 Flash | API Key | 4 M |
13.Gemini 3.1 Flash Lite | API Key | 4 M |
14.Openrouter Free | API Key | 3 M |
15.Nemotron 3 Nano Omni 30b A3b Reasoning | API Key | 3 M |
16.Gpt 5.6 Terra | API Key | 2 M |
17.Gpt 5.6 Luna | Subscription | 2 M |
18.Nemotron 3.5 Lightning | API Key | 1 M |
19.Kilo Auto Free | API Key | 1 M |
20.Deepseek V4 Flash Free | API Key | 1 M |
21.Gpt 5.5 | Subscription | 968 K |
22.Claude Opus 5 | Subscription | 936 K |
23.Gemini Flash Latest | API Key | 835 K |
24.Gpt 5.6 Luna | API Key | 740 K |
25.Gpt 4o Mini | API Key | 725 K |
26.Ox Alpha | API Key | 601 K |
27.Gpt 5.6 Terra | Subscription | 556 K |
28.Deepseek V4 Flash Vision Exp | Subscription | 510 K |
29.Gemma 4 31b It | API Key | 403 K |
30.Claude Fable 5 1 | Subscription | 388 K |
31.Gpt 5.6 Luna | Subscription | 385 K |
32.Mistral Small Latest | API Key | 381 K |
33.Qwen3.8 Max | Subscription | 311 K |
34.Gemini 3.5 Flash Lite | API Key | 302 K |
35.Gpt 5.4 | Subscription | 279 K |
36.Gemma4:31b | Subscription | 258 K |
37.Minimax M3 | Subscription | 239 K |
38.Claude Haiku 4 5 | Subscription | 208 K |
39.Claude Opus 4 8 | Subscription | 205 K |
40.Gemini 2.5 Flash | Subscription | 204 K |
41.Minimax M3 | API Key | 170 K |
42.Glm 5.3 Flash | Subscription | 158 K |
43.Gpt Oss 120b | API Key | 139 K |
44.Qwen3.7 Plus | Subscription | 102 K |
45.Mistral Medium Latest | API Key | 88 K |
46.Gpt 4o 2024 08 06 | Subscription | 69 K |
47.Gpt Oss 120b | API Key | 57 K |
48.Glm 5.3 | Subscription | 52 K |
49.Laguna S 2.1 | Subscription | 51 K |
50.Grok 4.6 | Subscription | 42 K |
51.Deepseek R1 Distill Llama 70b | API Key | 40 K |
52.Grok Build 0.1 | Subscription | 36 K |
53.Gemini 3.7 Flash | API Key | 31 K |
54.Kimi K3 | API Key | 22 K |
55.Muse Spark 1.2 Contributor | API Key | 16 K |
56.Grok 4.3 | Subscription | 14 K |
57.Gpt 5 Mini | Subscription | 14 K |
58.Llama 3.3 70b Versatile | API Key | 12 K |
59.Gpt 4o | Subscription | 9 K |
60.Glm 4.6 | Subscription | 9 K |
61.Claude Sonnet 4 6 | Subscription | 6 K |
62.Gemma 4 31b It | API Key | 5 K |
63.Deepseek V4 Flash Latest | API Key | 5 K |
64.Mistral Medium 2604 | API Key | 3 K |
65.Kimi K2.7 Code | API Key | 2 K |
66.Qwen3.8 Flash | Subscription | 2 K |
67.Qwen3.5 Flash | API Key | 1 K |
68.Codestral 2508 | API Key | 876 |
69.Kimi K3 | Subscription | 791 |
70.Kimi K2.7 Code | Subscription | 574 |
71.Lfm 2.5 2.6b | API Key | 421 |
72.Laguna S 2.1 | API Key | 352 |
73.Grok 4.20 0309 Reasoning | Subscription | 197 |
74.Grok 4.20 0309 Non Reasoning | Subscription | 193 |
75.Claude Sonnet 4 | Subscription | 148 |
76.Claude Fable 5 | Subscription | 128 |
77.Claude Fable 5 | API Key | 78 |
78.Ling 3.0 Flash Fin | API Key | 78 |
79.Longcat 2.0 Free | API Key | 64 |
80.Mistral Medium 2312 | API Key | 29 |
81.Gemini 3.5 Flash | API Key | 25 |
82.Gpt 5.4 | API Key | 13 |
83.Gemini Flash Lite Latest | API Key | 12 |