Quickstart
Create an API key and make your first request in under two minutes.
The API exposes the Completions / Responses API and the Messages API. Clients that already support either surface can use Zro by changing the base URL and API key. This page takes you through a first request and then hands off to the API reference and integrations.
1. Create an API key
- Sign in or create an account at zro.moonmath.ai.
- Subscribe to a plan or add a usage pack if you have not already.
- Open Account → API keys and create a key. Copy it once; only a hash is stored.
Keys start with sk-. Treat them like passwords: keep them out of client-side
code, public repos, and logs. If a key leaks, revoke it and create a new one.
2. Set the endpoint
There are two API surfaces:
| Surface | Base URL | Works with |
|---|---|---|
| Completions / Responses | https://zro.moonmath.ai/v1 | Most SDKs and tools |
| Messages | https://zro.moonmath.ai | Claude Code and Messages clients |
Every request authenticates with a bearer token:
export ZRO_API_KEY="sk-..."3. Make a request
curl https://zro.moonmath.ai/v1/chat/completions \
-H "Authorization: Bearer $ZRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4.1-flash",
"messages": [{ "role": "user", "content": "Reply with OK" }]
}'4. Connect a coding agent
If you are wiring up Claude Code, Codex, OpenCode, Cursor, or another harness,
the zro CLI configures it for the current session
without touching your normal config files:
npm install -g @moonmath-ai/zro
zro login
zro launch opencode --model deepseek-v4.1-flash