# Moneo API reference

Moneo provides an OpenAI-compatible API for agents, bots, and applications.

- Base URL: `https://api.moneo.one/v1`
- Authentication: `Authorization: Bearer $MONEO_API_KEY`
- API keys start with `sk-moneo-`.
- Current catalog: `GET /v1/models`
- Machine-readable contract: [`api/openapi.json`](api/openapi.json)

## Endpoints

### `GET /v1/models`

Returns the current public model catalog. Use `id` values from records whose `availability` is `available`. Prices, context limits, and capabilities can change.

### `GET /v1/balance`

Returns the balance, usage, limit, and warning state for the authenticated key. This endpoint does not charge a request.

### `POST /v1/chat/completions`

Accepts OpenAI Chat Completions fields including `model`, `messages`, `stream`, `tools`, `tool_choice`, `response_format`, `temperature`, and token limits. Support depends on the selected model.

```bash
curl https://api.moneo.one/v1/chat/completions \
  -H "Authorization: Bearer $MONEO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"deepseek-v4-flash:web","messages":[{"role":"user","content":"Reply with OK"}]}'
```

Set `stream` to `true` for server-sent events. A temporary overload may return HTTP `429`, code `model_overloaded`, and `Retry-After`; retry after that delay.

## Security

Keep the key in an environment variable or secret store. Do not put it in source control, browser code, support messages, or public logs. When reporting an error, provide the time, model, status, and `X-Request-Id` if available - never the key or private prompt.

## Related pages

- [HTML API documentation](https://moneo.one/api.html)
- [Quickstart](api/quickstart.md)
- [Current model snapshot](models.json)
