1. Register
Create an account with email verification. Keep billing, API keys, usage, support, and referral rewards under the same identity.
Use one OpenMagic key and one OpenAI-compatible Base URL for SDKs, coding agents, chat apps, and server-side tools. Start small, verify the response, then move the workflow into monthly quota or team routing.
These four steps are the default flow we want every self-serve user to understand.
Create an account with email verification. Keep billing, API keys, usage, support, and referral rewards under the same identity.
Use a small wallet top-up for testing. Move to a monthly quota plan when requests become regular.
Create separate keys for Codex, Claude Code, Cursor, Cline, server apps, and team automation.
Most OpenAI-compatible clients should use https://api.openmagic.ai/v1.
Replace sk-om-... with a key from your console. Keep the request small until usage and billing show correctly.
curl https://api.openmagic.ai/v1/chat/completions \
-H "Authorization: Bearer sk-om-..." \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o-mini",
"messages": [{"role": "user", "content": "Reply with one short sentence."}]
}'from openai import OpenAI
client = OpenAI(
api_key="sk-om-...",
base_url="https://api.openmagic.ai/v1",
)
resp = client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": "Reply with one short sentence."}],
)
print(resp.choices[0].message.content)Use the route shape that matches your client.
https://api.openmagic.ai/v1 for OpenAI SDKs, Codex-style tools, Cline, Roo, Continue, Cursor custom providers, and server apps.
https://api.openmagic.ai/anthropic for clients that expect Claude Messages-style requests.
Opening https://api.openmagic.ai in a browser shows the website, docs, pricing, and console instead of the API relay.
Use visible model names listed on the model page first. Aliases can be added later for simpler marketing bundles.
Do this checklist once per new user or tool.