One API key for every AI model
Every top AI model, one API
Call GPT, Claude, Gemini and more with one API key that speaks the OpenAI, Anthropic and Gemini APIs. Pay only for what you use.
Already have an account?Open dashboard
Example request log
| Model | Latency | Cost | Code |
|---|---|---|---|
| claude-sonnet-4-5 | 3.8 s | ₫2,017 | 200 |
| gpt-5-mini | 1.1 s | ₫47 | 200 |
| gemini-2.5-pro | 6.2 s | ₫896 | 200 |
| claude-sonnet-4-5 | 0.4 s | ₫0 | 429 |
| gpt-5 | 2.4 s | ₫263 | 200 |
| claude-haiku-4-5 | 0.9 s | ₫162 | 200 |
Illustrative figures. Failed requests are never charged.
# Paste into a terminal (macOS, Linux)export ANTHROPIC_BASE_URL="https://api.xpncore.com"export ANTHROPIC_AUTH_TOKEN="YOUR_API_KEY"# Then run it in your project folderclaudeGET /v1/models51models
One key for every model
Models with a listed price in the Models price table
4API formats
OpenAI, Anthropic, Gemini, Ollama
Change the base URL and go
₫0
Failed requests are never charged
Retries and failovers are charged once
30days
A log of every request
Tokens, cost, latency, error codes
Features
Why XPNCORE
A thin API layer between your app and AI models: steady, transparent and easy on costs.
One key, every model
Use a single API key to call AI models from OpenAI, Anthropic, Google and many more.
base_url = https://api.xpncore.com/v1Automatic failover
If one source has a problem, requests move to another so your app keeps running.
503 → backup source → 200Live monitoring
See requests, tokens, cost and error rate in real time.
requests · tokens · cost · latencySecurity
Encrypted API keys, IP limits, two-factor authentication and passkeys.
2FA · passkeys · IP limitsModel combos
Group several models under one id of your own. Each request is served by one model in the combo and charged at that model's price.
cb-<name> = model A → model BPer-key limits
Cap each key's spend per day, week or month, and its tokens. A key that hits its cap stops; your other keys keep running.
day · week · month · total · tokens
Connect
Connect your tools with one command
The Connect page writes the setup command or config for each tool, with your key and models filled in.
- Claude Code CLI1 command
- ChatGPT Codex CLI / App1 command
- OpenCode1 command
- Factory Droid1 command
- Crush1 command
- Claude Desktopready config
- Cline / Roo Codeready config
- Cherry Studioready config
- LobeChatready config
- Continueready config
- CC Switchready config
- Cursorready config
- Any other appSDKs, OpenAI formatRead the API docs
On the web
More than an API
Use it in the browser with the same account, no code needed.
Pricing
A public price for every model
Prices per 1M tokens; you pay for what you use. Failed requests are never charged.
| Model | Input / 1M tokens | Output / 1M tokens |
|---|---|---|
| gpt-6.1-sol | In₫3,000 | Out₫10,000 |
| claude-sonnet-5-5 | In₫2,400 | Out₫10,000 |
| claude-opus-5-5 | In₫4,000 | Out₫15,000 |
| claude-opus-5.5-cheap | In₫1,800 | Out₫4,000 |
| claude-opus-4-6 | In₫1,000 | Out₫5,000 |
| gpt-6-luna | In₫500 | Out₫1,000 |
Billing
Pay only for what you use
Each request is deducted from your wallet at the price of the model it used.
How charges work
- Successful request
- By input and output tokens
- Failed request
- Not charged
- Retries and failovers
- Charged once
- Out of balance or over a limit
- Refused, not charged
- Set a spending cap for each API key.
- See each request's cost in the request log.
- Balances show in the currency you choose.
FAQ
Frequently asked questions
Am I charged more than once when a request fails or is retried?
No. However many times we retry internally or switch sources, you pay once for the final result. Failed requests are not charged.
Does XPNCORE work with the OpenAI, Anthropic and Gemini SDKs?
Yes. XPNCORE accepts requests in the OpenAI (Chat Completions, Responses), Anthropic Messages (Claude Code, Anthropic SDKs), Google Gemini and Ollama formats. Change the base URL and API key; everything else stays the same.
Do I need a separate API key for each model maker?
No. One XPNCORE API key works for every model you can access, from OpenAI, Anthropic, Google and the other models in the catalog.
How do I know which models my account can use?
Call GET /v1/models with your API key, or open the Models & Pricing page. Use the exact model ID from the list when you send a request.
Community
Join the user community
Ask how to connect your tools, and hear first about new models, maintenance and offers.
- Zalo group (opens in a new tab)
Quick answers from the team and other users, in Vietnamese.
- Telegram group (opens in a new tab)
New models, maintenance and offers as they happen.
Get started
Ready to get started?
Sign up for free and start using APIs today.
- Sign upFree
- Create an API keyDashboard › API keys
- Change the base URLhttps://api.xpncore.com/v1