Frontier AI.
Simple API.
Drop-in replacement for OpenAI. Same endpoints, same SDKs, better pricing. Change one line and start building.
Free credits included. No credit card required.
// 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.4 Latest
- gpt-5.4-mini
- gpt-5.4-nano
- gpt-5.3
- gpt-5.2
- gpt-5.1
Codex Series
Optimized for code generation & understanding
- gpt-5.4 Latest
- gpt-5.3-codex
- gpt-5.2-codex
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.4 Recommended | $0.625 | $0.0625 | $3.75 | 1M tokens* |
| gpt-5.3-codex | $0.4375 | $0.045 | $3.50 | 256K tokens |
| gpt-5.2 | $0.4375 | $0.045 | $3.50 | 256K tokens |
| gpt-5.4-mini | $0.1875 | $0.01875 | $1.125 | 1M tokens* |
| gpt-5.4-nano | $0.05 | $0.005 | $0.3125 | 1M tokens* |
| codex-mini | $0.0375 | $0.005 | $0.15 | 128K 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-1.5 / Latest | $2.50 | $5.00 |
| gpt-image-1-mini | $1.00 | $4.00 |
Per-image pricing (1024×1024)
| Model | Low | Medium | High |
|---|---|---|---|
| gpt-image-1.5 / Latest | $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.
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.
Codex CLI Tools
Pipe terminal output into our Codex models for instant debugging and code generation.