APIOne API key for leading AI models
One API key for leading AI models
Call leading AI models through OpenAI-compatible and Claude-native endpoints, with more added over time. Prices are synced daily from each vendor's official list price.
This service is provided for learning and research purposes only. Please follow each model provider's usage policies.
Base URL
https://ai.myaiexp.com- POST
/v1/chat/completionsOpenAI Chat Completions - POST
/v1/responsesOpenAI Responses - POST
/v1/messagesClaude-native Messages - GET
/v1/modelsList available models
Auth: Authorization: Bearer sk-… · Claude-native also accepts x-api-key
How it works
Up and running in three steps
Create an account
Sign up in the AI Nexus console and top up your balance on the Wallet page.
Sign upCreate an API key
Open the API Keys page in the console and create a key. You can set a quota and the models it may use.
Manage API keysPoint your client at the base URL
Use
Read the quickstarthttps://ai.myaiexp.com/v1for OpenAI SDKs, orhttps://ai.myaiexp.comfor Anthropic SDKs and Claude Code.
Models & pricing
Available models and prices live on the model square
One API key works with the models listed on the model square — pick one with the model field of your request. More models are added over time.
The endpoints each model supports and current prices are on the model square, or call GET /v1/models to list the models your key can use.
Quickstart
Change the base URL, keep your code
Replace sk-your-key with a key from the console and your-model-id with a model ID from the model square.
- OpenAI SDK base_url
- https://ai.myaiexp.com/v1
- Anthropic SDK / Claude Code base URL
- https://ai.myaiexp.com
- Auth header
- Authorization: Bearer sk-…
curl https://ai.myaiexp.com/v1/chat/completions \
-H "Authorization: Bearer sk-your-key" \
-H "Content-Type: application/json" \
-d '{
"model": "your-model-id",
"messages": [{"role": "user", "content": "Hello!"}]
}'from openai import OpenAI
client = OpenAI(
base_url="https://ai.myaiexp.com/v1",
api_key="sk-your-key",
)
resp = client.chat.completions.create(
model="your-model-id", # replace with a model ID from the model square
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)curl https://ai.myaiexp.com/v1/messages \
-H "x-api-key: sk-your-key" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "your-model-id",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Hello!"}]
}'export ANTHROPIC_BASE_URL="https://ai.myaiexp.com"
export ANTHROPIC_AUTH_TOKEN="sk-your-key"
export ANTHROPIC_MODEL="your-model-id" # replace with a model ID from the model square that supports /v1/messages
claudeUse the base URL without /v1 — Claude Code calls /v1/messages itself. Cherry Studio, CC Switch and other OpenAI- or Anthropic-compatible clients take the same base URL and key.
Features
Built for developers who switch between models
One key, many models
A single API key reaches the models on the model square — no separate vendor accounts to juggle.
OpenAI + Claude native
Use
/v1/chat/completionsand/v1/responsesfrom OpenAI SDKs, or/v1/messagesfrom Anthropic SDKs and Claude Code.Official prices, synced daily
Model prices follow each vendor's official public list price (USD per 1M tokens), refreshed every day.
Usage logs & key quotas
See every request in the console's usage logs and cap spending with a quota on each API key.
What base URL should I use?
API requests go to https://ai.myaiexp.com. OpenAI SDKs need the /v1 suffix (https://ai.myaiexp.com/v1); Anthropic SDKs and Claude Code use the root URL.
How do I set up Claude Code?
Set ANTHROPIC_BASE_URL=https://ai.myaiexp.com (no /v1) ANTHROPIC_AUTH_TOKEN to your API key and ANTHROPIC_MODEL to a model ID from the model square that supports /v1/messages, then run claude. See Claude Code.
Which models work with which endpoint?
Endpoint support varies by model: /v1/chat/completions is the general OpenAI-compatible endpoint; /v1/messages works with models that support the Claude-native format; /v1/responses works with models that support the Responses API. The available models and the endpoints each one supports are listed on the model square.
Where do the prices come from?
Prices are synced daily from each vendor's official public list price, shown in USD per 1M tokens. See the current price of every model on the models & pricing page.
How do I top up my balance?
Sign in to the console and open the Wallet page. Your balance is shared by all your API keys; each key can also carry its own quota.
Get your API key and start building
Sign up, create a key, and make your first call in minutes.