OurToken documentation
Build against official model identities with a small OpenAI-compatible API and a prepaid wallet you can reconcile.
OurToken keeps the public model contract separate from the provider route that delivers it. Choose an official model ID, call the protocol your coding tool supports, and receive normalized usage with an explainable prepaid charge.
API endpoints
| Contract | Endpoint | Authentication |
|---|---|---|
| OpenAI Chat Completions | POST /v1/chat/completions | Authorization: Bearer $OURTOKEN_API_KEY |
| OpenAI Responses | POST /v1/responses | Authorization: Bearer $OURTOKEN_API_KEY |
| Anthropic Messages | POST /v1/messages | x-api-key: $OURTOKEN_API_KEY and anthropic-version: 2023-06-01 |
Start with the public contract
- Getting started covers the shortest path to a first request.
- OurToken CLI covers browser-approved installation, compatible coding clients, profiles, recovery, and revocation.
- API keys explains key issuance, restrictions, and revocation.
- Models explains stable IDs and the public catalog.
- Chat Completions documents the OpenAI-compatible chat endpoint.
- Responses documents OpenAI Responses input, function tools, and semantic streaming events.
- Anthropic Messages documents Messages content blocks, tool use, and Anthropic streaming events.
Operating your account
- Pricing and billing explains reservation and settlement.
- Playground and threads covers private threads, attachments, and comparison runs.
- Errors and retries explains safe recovery with idempotency keys.
Documented scope
The current public API supports the model catalog, OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages. Each protocol page defines its supported subset; do not assume support for media generation, embeddings, hosted tools, beta features, or provider-routing extensions.