Getting started

Create a wallet and API key, choose a public model ID, and make a retry-safe first request.

1. Create an account and fund your wallet

Create an account, add prepaid credit, then open Dashboard → API keys. Your wallet is personal in the first release: there are no shared organizations or team balances.

2. Create an API key

Save the secret when it is displayed. OurToken stores a hash of the secret and cannot show it again. You can later restrict a key to specific public model IDs, set a CIDR allow-list, or revoke it immediately.

3. Choose a public model ID

Browse the model catalog and copy the official ID, such as deepseek/deepseek-v4-flash. The ID is a customer-facing contract. OurToken can change a compatible delivery route without requiring you to update your integration.

4. Send a completion

curl https://api.ourtoken.dev/v1/chat/completions \
  -H "Authorization: Bearer $OURTOKEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek/deepseek-v4-flash",
    "messages": [
      {"role": "user", "content": "Explain a prepaid wallet hold in one sentence."}
    ]
  }'

The header is optional. OurToken generates a request identity when your SDK does not send one. For retry-safe recovery after a timeout, supply a new lowercase UUID v4 in Idempotency-Key for each logical request and reuse it only when retrying that exact request.

Before inference starts

OurToken reserves a bounded maximum charge from your current public prices. When the model returns usage, the request settles against the measured meters and any unused hold is released.