Zro

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

  1. Sign in or create an account at zro.moonmath.ai.
  2. Subscribe to a plan or add a usage pack if you have not already.
  3. 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:

SurfaceBase URLWorks with
Completions / Responseshttps://zro.moonmath.ai/v1Most SDKs and tools
Messageshttps://zro.moonmath.aiClaude 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

Next steps

On this page