Logo SVG copied to clipboard

Use OpenAI SDK with Manifest

900M tokens / 30 days
App AI SDK

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.

79 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"}],
)
OPENAI_BASE_URL https://api.manifest.build/v1
OPENAI_API_KEY mnfst_YOUR_KEY
model auto

OpenAI SDK tokens processed on Manifest

Models in use

# Model
Auth type Tokens / last 30 days
1.MiniMax M3
Subscription393 M
2.Gemini 3.5 Flash Lite
API Key244 M
3.Gpt 5.6 Terra
Subscription65 M
4.Gpt 5.6 Sol
Subscription52 M
5.Nemotron 3 Nano Omni 30b A3b Reasoning
API Key23 M
6.Gpt 5.3 Codex Spark
Subscription23 M
7.Gpt 5.4 Mini
Subscription21 M
8.Gemini 3.1 Pro Preview
Subscription12 M
9.Claude Haiku 4 5
Subscription9 M
10.Gemini 3.6 Flash
API Key9 M
11.Qwen3.7 Flash
API Key5 M
12.Step 3.7 Flash
API Key4 M
13.Gemma4:31b
Subscription4 M
14.Nemotron 3 Nano Omni 30b A3b Reasoning
API Key4 M
15.Hy3
API Key4 M
16.Deepseek V4 Flash
API Key4 M
17.Kimi K3
Subscription3 M
18.Gemini 3.1 Flash Lite
API Key3 M
19.Gemma 4 31b It
API Key3 M
20.Openrouter Free
API Key2 M
21.Gpt 4o Mini
API Key2 M
22.Claude Opus 4 8
Subscription2 M
23.Nemotron 3.5 Lightning
API Key1 M
24.Deepseek V4 Flash Free
API Key1 M
25.Gemini 3.5 Flash
API Key1 M
26.Gpt 5.5
Subscription1 M
27.Gpt 5.6 Luna
Subscription1 M
28.Claude Sonnet 5
Subscription1 M
29.Grok 4.5
Subscription855 K
30.Gemini Flash Latest
API Key835 K
31.Gemini 2.5 Flash
Subscription497 K
32.Kilo Auto Free
API Key452 K
33.Gpt 4o 2024 08 06
Subscription426 K
34.Mistral Small Latest
API Key381 K
35.Gpt 5.4
Subscription270 K
36.Gemma 4 26b A4b It
API Key199 K
37.Gpt Oss 120b
API Key145 K
38.Glm 5.1
Subscription121 K
39.Gemini 2.5 Flash Lite
Subscription92 K
40.Claude Opus 5
Subscription92 K
41.Gpt Oss 120b
API Key88 K
42.Mistral Medium Latest
API Key87 K
43.Glm 5.3
Subscription52 K
44.Mimo V2.5 Free
API Key46 K
45.Deepseek R1 Distill Llama 70b
API Key40 K
46.Gemini 3.7 Flash
API Key31 K
47.Gemma 4 31b It
API Key26 K
48.Claude Sonnet 4 6
Subscription25 K
49.Claude Opus 4 6
Subscription22 K
50.Gemini 3 Flash Preview
Subscription13 K
51.Llama 3.3 70b Versatile
API Key12 K
52.Gpt 4o
Subscription8 K
53.Gpt 5.4 Nano
API Key7 K
54.Deepseek V4 Pro
API Key7 K
55.Qwen3.6 Flash
API Key4 K
56.Kimi K3
API Key2 K
57.Qwen3.5 Flash
API Key1 K
58.Big Pickle
API Key1 K
59.Codestral 2508
API Key876
60.Gpt 4o
API Key437
61.Glm 4.5 Air
Subscription377
62.Gpt 5.5
API Key312
63.Glm 5
Subscription249
64.Claude Opus 4
Subscription224
65.Gemini 3.5 Flash
API Key216
66.Glm 4.6
Subscription130
67.Glm 4.5
Subscription113
68.Glm 5.2
Subscription77
69.Glm 5 Turbo
Subscription70
70.Glm 4.7
Subscription52
71.Gemini 2.5 Flash
API Key48
72.Claude Haiku 4 5 20251001
API Key45
73.Gemini 2.5 Pro
Subscription43
74.Claude Fable 5
Subscription37
75.Claude Sonnet 4 6
API Key19
76.Claude Sonnet 5
API Key14
77.Gemini Flash Lite Latest
API Key12
78.Gemini 3.5 Flash Lite
API Key11
79.Gemini 3.1 Flash Lite
Subscription6