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" \
  -H "Idempotency-Key: 9b97755f-6a36-4a6f-a682-5aa22a67ac47" \
  -d '{
    "model": "deepseek/deepseek-v4-flash",
    "messages": [
      {"role": "user", "content": "Explain a prepaid wallet hold in one sentence."}
    ]
  }'

Use a new lowercase UUID v4 for every new logical request. Reuse that same key only when retrying the exact same 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.