$5 in free API credits on sign-up — no credit card required
GPT-5.6-terra Now Available
GPT-5.6-sol Now Available
GPT-Image-2 Now Available

Frontier AI.
Simple API.

Drop-in replacement for OpenAI. Same endpoints, same SDKs, better pricing. Change one line and start building.

Pay-as-you-go pricing. No minimums, no monthly commitments.

Just change the base URL
// Before (OpenAI)
baseURL: "https://api.openai.com/v1"

// After (Smart AIPI)
baseURL: "https://api.smartaipi.com/v1"

Available Models

Access all frontier models through a single API

GPT-5 Series

Frontier language models for general tasks

  • gpt-5.6-terra Latest
  • gpt-5.6-sol Available
  • gpt-5.5
  • gpt-5.4
  • gpt-5.4-mini

Coding Leaderboard

How the models rank on DeepSWE — 113 real engineering tasks across 91 repos and 5 languages, all run on mini-swe-agent. The top coding models are available on Smart AIPI.

# Model Pass@1 Avg cost Steps
1 gpt-5.6-sol max · OpenAI Available 73% ±3% $8.39 61
2 claude-fable-5 max · Anthropic 70% ±4% $21.63 88
3 gpt-5.6-terra max · OpenAI Available 70% ±3% $4.95 76
4 gpt-5.6-luna max · OpenAI 67% ±4% $3.03 102
5 gpt-5.5 xhigh · OpenAI Available 67% ±6% $7.23 82
6 claude-opus-4.8 max · Anthropic 59% ±2% $13.22 120
7 claude-sonnet-5 max · Anthropic 54% ±4% $26.40 268
8 gpt-5.4 xhigh · OpenAI Available 52% ±2% $5.65 70
9 glm-5.2 max · ZAI 44% ±2% $3.92 129
10 gemini-3.5-flash medium · Google 37% ±2% $7.34 86
11 kimi-k2.7-code Moonshot 31% ±1% $2.82 149
12 claude-sonnet-4.6 high · Anthropic 30% ±4% $5.52 134
13 gemini-3.1-pro high · Google 12% ±2% $9.48 81

Highlighted rows are available on Smart AIPI. Source: DeepSWE benchmark by Datacurve — 113 tasks · 91 repos · 5 languages · all models on mini-swe-agent · as of Jul 9, 2026.

Transparent Pricing

Pay only for what you use. No hidden fees.

Chat & Reasoning Models

Model Input /1M Cached Input /1M Output /1M Context
gpt-5.6-terra $0.625 $0.0625 $3.75 1M tokens*
gpt-5.6-sol $1.25 $0.125 $7.50 1M tokens*
gpt-5.5 $1.25 $0.125 $7.50 1M tokens*
gpt-5.4 $0.625 $0.0625 $3.75 1M tokens*
gpt-5.4-mini $0.1875 $0.01875 $1.125 1M tokens*

* GPT-5.4 supports up to 1M context. Requests exceeding the standard 272K context window are charged at 2x the normal rate.

General Purpose Models

Model Input /1M Cached Input /1M Output /1M Context
gpt-4.1 $0.50 $0.125 $2.00 1M tokens
gpt-4.1-mini $0.10 $0.025 $0.40 1M tokens
gpt-4.1-nano $0.025 $0.0075 $0.10 1M tokens
gpt-5-mini $0.0625 $0.0075 $0.50 1M tokens
gpt-5-nano $0.0125 $0.0025 $0.10 1M tokens
gpt-4o $0.625 $0.3125 $2.50 128K tokens
gpt-4o-mini $0.0375 $0.02 $0.15 128K tokens

Image Generation

Token pricing (per 1M tokens)

Model Input Output
gpt-image-2 / Latest $2.50 $10.00
gpt-image-1.5 $2.50 $5.00
gpt-image-1-mini $1.00 $4.00

Per-image pricing (1024×1024)

Model Low Medium High
gpt-image-2 / Latest $0.003 $0.0265 $0.1055
gpt-image-1.5 $0.0045 $0.017 $0.067
gpt-image-1-mini $0.0025 $0.0055 $0.018

Larger sizes (1024×1536, 1536×1024) cost ~1.5× the listed price.

Automatic Prompt Caching

Prompt caching happens automatically. When your requests share the same prefix (system prompt, conversation history), cached input tokens are charged at up to 90% less than regular input tokens. No configuration needed.

  • Caching is automatic — identical prefixes are cached and reused
  • Cached tokens are visible in API responses under prompt_tokens_details.cached_tokens
  • Your dashboard shows cached vs non-cached token breakdown
  • Coding agents with large system prompts typically see 30-50% cache hit rates

Cost Calculator

Estimate Your Monthly Cost

Estimate your monthly cost for text and image workloads.

1M 1B
5% 200%
0% 99%
OpenAI Direct Cost
Smart AIPI Cost
You Save
10 10,000
Cost per Image
Monthly Cost

Estimates are approximate and based on current list pricing. OpenAI direct cost is shown as 4x Smart AIPI pricing for comparison.

Tool Integrations

Works seamlessly with your favorite tools

OpenCode

Use Smart AIPI as your OpenCode backend. Full codebase understanding with our Codex models.

# In ~/.config/opencode/opencode.json
"npm": "@ai-sdk/openai-compatible"
"baseURL": "https://api.smartaipi.com/v1"

Codex CLI Tools

Pipe terminal output into our Codex models for instant debugging and code generation.

# Debug errors instantly
cat error.log | codex fix --model gpt-5.5

Ready to build?

Get your API key in seconds and start building with AI.

Get Your Free API Key

Message sent

We'll get back to you within 2 business days.

Contact Support

Have a question or need help? Send us a message and we'll get back to you within 2 business days.