Claude API — Affordable Access, One Key for Every Agent
Point any Claude-compatible client at Lumosel and you're live. Use the official Anthropic SDKs, Claude Code, Cursor, Cline — anything that speaks the Messages API. One key, pay-as-you-go, no monthly minimums.
Claude models available
All Claude models through one API key. Prices in USD per 1M tokens.
| Model ID | Name | Tier | Input / 1M tok | Output / 1M tok |
|---|---|---|---|---|
claude-opus-4-8 | Claude Opus 4.8 | Most capable | $15 | $75 |
claude-opus-4-5 | Claude Opus 4.5 | Most capable | $15 | $75 |
claude-sonnet-4.5 | Claude Sonnet 4.5 | Balanced | $3 | $15 |
claude-haiku-4.5 | Claude Haiku 4.5 | Fastest | $1 | $5 |
gpt-5.5 | GPT-5.5 | Most capable | $10 | $30 |
Use the exact Model ID as the model field in your request.
Drop-in replacement for the Anthropic API
Lumosel speaks the Anthropic Messages API. Any SDK or tool that works with Anthropic works with Lumosel — just change the base URL and use your key.
cURL
curl https://api.lumosel.vip/v1/messages \
-H "x-api-key: YOUR_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "content-type: application/json" \
-d '{
"model": "claude-opus-4-8",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Hello, Claude"}]
}'Python
# pip install anthropic
from anthropic import Anthropic
client = Anthropic(
base_url="https://api.lumosel.vip",
api_key="YOUR_API_KEY",
)
msg = client.messages.create(
model="claude-opus-4-8",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello, Claude"}],
)
print(msg.content[0].text)Node.js
// npm install @anthropic-ai/sdk
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
baseURL: "https://api.lumosel.vip",
apiKey: "YOUR_API_KEY",
});
const msg = await client.messages.create({
model: "claude-opus-4-8",
max_tokens: 1024,
messages: [{ role: "user", content: "Hello, Claude" }],
});
console.log(msg.content);Claude API pricing
Pay-as-you-go with included usage windows. No monthly minimums. Start with a free 14-day trial.
Starter
Free trial
- ✓$5 / 4-hour window
- ✓$30 / week
- ✓Claude Opus 4.8, Sonnet 4.5, Haiku 4.5
- ✓14-day free trial
Builder
$10/mo
- ✓$20 / 4-hour window
- ✓$140 / week
- ✓20 API keys
- ✓All Claude models
Pro
$20/mo
- ✓$40 / 4-hour window
- ✓$280 / week
- ✓40 API keys
- ✓Priority support
Claude API integrations
Any tool that reads the Anthropic environment variables works with Lumosel. Set ANTHROPIC_BASE_URL and ANTHROPIC_API_KEY and you're done.
Claude Code
Native integration — just set two env vars in ~/.claude/settings.json.
Python SDK
Use the official anthropic SDK with a base_url override.
Node.js SDK
Works with @anthropic-ai/sdk — swap the base URL.
Cursor
Point Cursor at Lumosel for Claude access in your IDE.
Cline / Roo Code
Set ANTHROPIC_BASE_URL in your VS Code extension settings.
OpenAI compatible
Use OpenAI SDKs with Claude models via /v1/chat/completions.
Frequently asked questions
Is Lumosel an official Anthropic partner?
No — Lumosel is an independent API gateway. We provide access to Claude models through our own infrastructure, with managed keys, usage windows, and a billing dashboard. The underlying API is the Anthropic Messages API.
How does Claude API pricing work on Lumosel?
Lumosel uses included usage windows. The Starter plan, for example, includes $5 every 4 hours and $30 per week of Claude usage — free during the 14-day trial. Exceed your window and you can top up with pay-as-you-go balance. Paid plans have larger windows.
Can I use the official Anthropic SDKs?
Yes. The official anthropic Python SDK and @anthropic-ai/sdk for Node.js work unchanged — just point base_url at https://api.lumosel.vip and use your Lumosel API key. All endpoints mirror the Anthropic API.
Does Lumosel support streaming?
Yes. Set "stream": true in your request and the gateway streams server-sent events back to your client — same wire format as the Anthropic API.
Can I use Lumosel with Claude Code?
Yes. Set ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN in ~/.claude/settings.json to point at Lumosel, and Claude Code uses your Lumosel key for all model access.
What happens when I hit my usage window?
The gateway returns a 429 with a retry-after header. Your usage window resets automatically — the 4-hour window resets 4 hours after your first request in that window, and the weekly window resets on the same weekday/time each week. You can also top up your balance at any time.
Ready to build with Claude?
Get a key and make your first API request in under a minute. Free 14-day trial.