Solid AI API: set up Claude Code, Cursor, OpenCode and Codex
Run your coding agents on Solid's AI API: what it is, how it's paid, the base URL and model IDs to copy, setup for Claude Code, Cursor, OpenCode and Codex, and answers to common questions.
Solid's AI API lets you run coding agents and AI apps (Claude Code, Cursor, OpenCode, Codex and others) on top AI models with one Solid API key. You pay for what you use from your Solid Wallet, and you get 50% of it back as cashback.
How it works
- One key, many models. Create an API key in the app (AI screen). Use it with any tool that lets you set a custom API address.
- Paid from your Wallet. Usage is paid from the USDC in your Wallet on Base. Solid collects it every few dollars. Keep some USDC on Base in your Wallet, or requests stop until you top up.
- 50% back. Every tier gets 50% of what you spend back, up to a monthly cap (Core $50, Prime $100, Ultra $200).
- You set the limit. Each key has a monthly spending limit you choose, and you can have up to 10 keys.
What to copy into your tool
| Value | |
|---|---|
| API key | Your Solid AI API key, from the AI screen |
| Base URL for OpenAI-style tools | The Base URL shown on the AI screen, followed by /v1 |
| Base URL for Anthropic-style tools (Claude Code) | The Base URL shown on the AI screen, as it is |
Your key works as a Bearer token or in the x-api-key header.
Model IDs
Copy the ID exactly as written.
| Model | ID |
|---|---|
| Claude Opus 5.5 | claude-opus-5-5 |
| Claude Sonnet 5.5 | claude-sonnet-5-5 |
| GPT 6.1 Sol | gpt-6.1-sol |
| Kimi K3 | kimi-k3 |
| GLM 5.3 | glm-5.3 |
| DeepSeek V4.1 Flash | deepseek/deepseek-v4.1-flash |
Prices per model are on the AI → Models screen. They follow AntSeed's provider rates, so they can change. Your tools can also read them, along with average speed, from GET <Base URL>/v1/models.
Claude Code
Set these before you start Claude Code (for example in your shell profile):
export ANTHROPIC_BASE_URL="<Base URL from the AI screen>"
export ANTHROPIC_AUTH_TOKEN="<your Solid AI API key>"
export ANTHROPIC_MODEL="claude-sonnet-5-5"
Then run claude as usual.
Cursor
- Open Settings → Models.
- Under API Keys, turn on OpenAI API Key and paste your Solid AI API key.
- Turn on Override OpenAI Base URL and paste the Base URL followed by
/v1. - Add the model IDs you want (for example
claude-sonnet-5-5) and select one.
OpenCode
OpenCode reads opencode.json from your project folder, or ~/.config/opencode/opencode.json for all projects. Add Solid as a provider:
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"solid": {
"npm": "@ai-sdk/openai-compatible",
"name": "Solid",
"options": {
"baseURL": "<Base URL from the AI screen>/v1",
"apiKey": "{env:SOLID_AI_API_KEY}"
},
"models": {
"claude-sonnet-5-5": { "name": "Claude Sonnet 5.5" },
"claude-opus-5-5": { "name": "Claude Opus 5.5" },
"gpt-6.1-sol": { "name": "GPT 6.1 Sol" },
"kimi-k3": { "name": "Kimi K3" },
"glm-5.3": { "name": "GLM 5.3" }
}
}
}
}
Set your key with export SOLID_AI_API_KEY="<your Solid AI API key>", start OpenCode, and pick a Solid model with /models.
Codex
Codex reads ~/.codex/config.toml. Add:
model = "gpt-6.1-sol"
model_provider = "solid"
[model_providers.solid]
name = "Solid"
base_url = "<Base URL from the AI screen>/v1"
env_key = "SOLID_AI_API_KEY"
wire_api = "responses"
Set your key with export SOLID_AI_API_KEY="<your Solid AI API key>", then run codex. Codex works best with GPT 6.1 Sol.
Common questions
How many requests can I run at once? Up to 12 at the same time per key. If you need more, create another key (up to 10).
I got a 429 error. Either the key already has 12 requests running, or Solid is collecting your recent usage from your Wallet. Requests continue on their own, usually within a minute. Most agents retry automatically.
I got a 402 error, or requests stopped. Your Wallet doesn't have enough USDC on Base to cover your usage, or the key reached its monthly limit. Top up USDC on Base, or raise the key's limit on the AI screen.
Can I use it through a proxy? Yes. It's a normal HTTPS API, so it works through any proxy that allows HTTPS.
Can I use it from iPhone or Android apps? Yes, in any app that lets you set a custom OpenAI- or Anthropic-compatible base URL and API key.
The thinking or reasoning setting isn't taking effect.
Solid passes your thinking or reasoning setting to the model's provider unchanged. Whether it takes effect depends on the provider serving that model, and not every provider supports it. Use the setting your tool's API expects (thinking for Anthropic-style requests, reasoning for OpenAI Responses). If it still has no effect, tell us the model and the tool through chat support.
Can I choose which provider serves a model? No. Solid picks the provider for each model. See Solid AI API: where the models come from.
Who can see my prompts? Requests are served by providers on the AntSeed network, some of them inside sealed hardware (a TEE). See Solid AI API: where the models come from.
Did this answer your question?