API access
Use one Bery key with the OpenAI SDK, Codex, Claude Code, Cursor and any OpenAI- or Anthropic-compatible app.
Bery exposes an OpenAI-compatible endpoint and an Anthropic-compatible one. Both use the same models and the same credits as the web app.
Create a key
Open Settings → API keys, create a key, and copy it. Revoke a key at any time; requests using it stop working immediately.
Keep the key secret. Treat it like a password.
Base URLs
| Protocol | Base URL |
|---|---|
| OpenAI-compatible | https://api.beryai.com/v1 |
| Anthropic-compatible | https://api.beryai.com |
Use with the OpenAI SDK
Point the SDK at Bery with an environment variable:
export OPENAI_BASE_URL="https://api.beryai.com/v1"
export OPENAI_API_KEY="your-key"
A minimal request looks like this:
curl "$OPENAI_BASE_URL/chat/completions" \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"<model-id>","messages":[{"role":"user","content":"Hello"}]}'
Replace <model-id> with a model available in your account.
Use with Codex and Claude Code
Codex and Claude Code access is available on Pro. Enter the Bery base URL and API key in the tool’s provider settings; usage comes out of the same credits.
For one-click setup, open Settings → API keys and use Import to another tool with CC Switch (Claude Code / Codex) or Magpie.
Use with any compatible app
Any app that accepts a custom OpenAI base URL works: Cursor, Cline, Cherry Studio and others. Use the same key and the OpenAI-compatible base URL.
How usage is billed
API requests draw from the same credit pool as the web app. Every request is charged at the model’s published credit rate; there is no separate API subscription.