Get your API key
Three steps, about a minute. No card, no sign-up form: your $ORACULUM credits pay for it.
-
1Connect your wallet
The wallet that holds $ORACULUM. You sign one message: no transaction, no gas.
✓ Connected as · $0.00 in credits -
2Create a key
Name it after where you’ll use it, so you can switch it off later.
This is the only time the full key is shown. Paste it somewhere safe now. Anyone with it can spend your credits.
-
3Use it
Paste one of these into your code or app. Your key is filled in once you create it.
# pip install openai from openai import OpenAI ai = OpenAI( base_url="https://YOUR-SITE/api/v1", api_key="YOUR_KEY", ) r = ai.chat.completions.create( model="anthropic/claude-sonnet-5.5", messages=[{"role": "user", "content": "Hello!"}], ) print(r.choices[0].message.content)
// npm install openai import OpenAI from 'openai'; const ai = new OpenAI({ baseURL: 'https://YOUR-SITE/api/v1', apiKey: 'YOUR_KEY', }); const r = await ai.chat.completions.create({ model: 'anthropic/claude-sonnet-5.5', messages: [{ role: 'user', content: 'Hello!' }], }); console.log(r.choices[0].message.content);
curl https://YOUR-SITE/api/v1/chat/completions \ -H "Authorization: Bearer YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "anthropic/claude-sonnet-5.5", "messages": [{"role": "user", "content": "Hello!"}]}'
# Any app with an "OpenAI-compatible" or "custom OpenAI" option. # Open its settings and fill in these three fields: Base URL https://YOUR-SITE/api/v1 API key YOUR_KEY Model anthropic/claude-sonnet-5.5 # or any id from the model menu
Want a different model? Copy any id from the model menu or the model list. Manage and revoke keys on your account page.
Overview
Everything in the chat is also an API. Your key spends the same credits your coins earn, at the same prices, with the same privacy rules.
Quickstart
| Base URL | https://YOUR-SITE/api/v1 |
| API key | Starts with orc_. Make one in step 2 above |
| Model | Any id from the model menu, for example anthropic/claude-sonnet-5.5 |
| Works with | The official OpenAI libraries for Python and JavaScript, and any app with an OpenAI-compatible option |
Authentication
Send your key as a bearer token: Authorization: Bearer orc_…. Each wallet can have five active keys. Keys never expire, and you can revoke one at any time on the account page.
Chat completions
| Method | Path | What it does |
|---|---|---|
| POST | /api/v1/chat/completions | Chat with any model. Same request and response as the OpenAI API, including stream, tools and images for models that accept them. |
| GET | /api/v1/models | Every model you can use, with context length and price per token in USD. |
| GET | /api/v1/me | Your credits, holding and the time of the next hourly drop. |
The response carries usage.cost: what the request cost in USD, already taken from your credits.
Streaming
Send "stream": true to get server-sent events, exactly like OpenAI’s API. The last event before [DONE] carries the usage and cost. If you close the connection early, you pay for the tokens generated so far.
Models
Use the model’s id, for example anthropic/claude-opus-5.5, openai/gpt-6.2-sol, google/gemini-4-carbon, x-ai/grok-4.7 or deepseek/deepseek-v4.1-flash. GET /api/v1/models lists them all with prices, zdr: true on models with a zero-retention route and private: true on models that run in sealed hardware.
Your balance
GET /api/v1/me returns your credits, holding, last drop and the time of the next one, so an app can show a balance or wait for the next drop.
Privacy
| Send | What happens |
|---|---|
| nothing | Zero retention: only providers that keep nothing. The default. |
| "private": true | Only sealed-hardware providers. Works with the Private models ("private": true in /api/v1/models). |
| "zdr": false | Any provider for the model. None of them may train on your messages. |
We store the model, token counts and cost of each request, never the content.
Costs and limits
- Each request costs what the provider charges for it, taken from your credits after the answer finishes.
- If your credits are low,
max_tokensis lowered so the answer fits your balance. With no credits you get402. - Up to 30 requests a minute per wallet, across the chat and all its keys. More returns
429.
Errors
| Status | Meaning |
|---|---|
| 401 | Missing, wrong or revoked key. |
| 402 | Not enough credits. The next hourly drop is at the time in /api/v1/me. |
| 404 | Unknown model id. |
| 429 | Too many requests this minute. |
| 503 | The credit pool or the provider is unavailable. Try again shortly; you were not charged. |
Errors use OpenAI’s shape: {"error": {"message", "type", "code"}}.
Keeping keys safe
- A key can spend all of your credits. Keep it on a server or in your own machine’s environment, never in a public repo or a web page.
- We only store a fingerprint of each key, so a lost key can’t be shown again. Revoke it and make a new one.
- Use one key per app, so you can revoke one without breaking the others.