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.
55 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 | Subscription | 197 M |
2.Gpt 5.6 Luna Pro | API Key | 82 M |
3.Gpt 6 Luna | Subscription | 75 M |
4.Gemini 3.5 Flash | API Key | 71 M |
5.Gemini 3.8 Flash | API Key | 38 M |
6.Gemini 3.6 Flash | API Key | 37 M |
7.Gpt 6 Luna Pro | API Key | 30 M |
8.Claude Haiku 5 5 | Subscription | 17 M |
9.Claude Sonnet 5 | Subscription | 15 M |
10.Gpt 5.6 Luna | API Key | 10 M |
11.Gpt 5.6 Terra | API Key | 5 M |
12.Gemini 3.1 Flash Lite | API Key | 3 M |
13.Gpt 6 Astra | Subscription | 3 M |
14.Nemotron 3 Nano Omni 30b A3b Reasoning | API Key | 2 M |
15.Hy3 | API Key | 2 M |
16.Gpt 5.6 Sol | Subscription | 2 M |
17.Claude Sonnet 5 | API Key | 2 M |
18.Gpt 6 Luna | API Key | 2 M |
19.Gpt 5.6 Luna | Subscription | 998 K |
20.Deepseek V4 Flash | Subscription | 937 K |
21.Gpt Oss 20b | API Key | 871 K |
22.Gpt 5.4 Mini | Subscription | 861 K |
23.Gemma4:31b | Subscription | 819 K |
24.Kilo Auto Free | API Key | 814 K |
25.Gpt 5.5 | Subscription | 526 K |
26.Laguna S 2.1 | API Key | 432 K |
27.Ternary Bonsai 27B AWQ 4bit | API Key | 342 K |
28.Claude Sonnet 5 5 | Subscription | 334 K |
29.Claude Fable 5 | Subscription | 260 K |
30.Gpt 5.4 | Subscription | 210 K |
31.Gpt Oss:120b | Subscription | 199 K |
32.Nemotron 3 Ultra | Subscription | 163 K |
33.Gemma 4 31b It | API Key | 126 K |
34.Claude Opus 5 5 | Subscription | 121 K |
35.Nemotron 3.5 Super Vl 120b A12b | API Key | 115 K |
36.Gpt 4o | API Key | 113 K |
37.Nemotron 3.5 Lightning | API Key | 103 K |
38.Claude 3 Opus 20240229 | Subscription | 100 K |
39.Claude Fable 5 1 | Subscription | 65 K |
40.Gpt 5 Mini | Subscription | 39 K |
41.Gpt Oss 120b | API Key | 35 K |
42.Gpt 5.4 Nano | API Key | 30 K |
43.Openrouter Free | API Key | 29 K |
44.Deepseek V4.1 Flash | Subscription | 27 K |
45.Gpt 3.5 Turbo | Subscription | 27 K |
46.Gpt 6.1 Sol | Subscription | 23 K |
47.Gpt 5.6 Terra | Subscription | 6 K |
48.Gpt 4o | Subscription | 2 K |
49.Gemma 4 31b It | API Key | 929 |
50.Deepseek Flash | Subscription | 675 |
51.Diffusiongemma 26b A4b It | API Key | 158 |
52.Nemotron 3 Nano Omni 30b A3b Reasoning | API Key | 100 |
53.Gpt 6 Sol | Subscription | 86 |
54.Glm 5.3 Flash | Subscription | 67 |
55.Allam 2 7b | API Key | 33 |