Skip to content

Quickstart

  1. Add funds. Open the Developers page in the Aderra app (any account, Free included). Click Add funds, enter any amount from $5 and click Pay by card or Pay with crypto. The credits arrive once the payment is confirmed. See Pricing and the API wallet.

  2. Create a key. Click Create key, give it a name and click Create key again. Copy the key: it starts with ak_ and is shown once.

  3. Keep the key out of your code. Put it in an environment variable:

    Terminal window
    export ADERRA_API_KEY=ak_...
  4. Make a call.

    Terminal window
    curl https://api.aderra.ai/v1/chat/completions \
    -H "Authorization: Bearer $ADERRA_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
    "model": "deepseek-v4.1-flash-uncensored",
    "max_tokens": 1024,
    "messages": [{"role": "user", "content": "Write a haiku about the sea."}]
    }'
  5. See it on the Developers page. The call appears under Requests, with its tokens, cost and duration.

You can create a key before adding funds, but every call is refused with 402 api_wallet_empty until the wallet holds credits.

Add stream: true to get the reply as it is written.

Terminal window
curl -N https://api.aderra.ai/v1/chat/completions \
-H "Authorization: Bearer $ADERRA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4.1-flash-uncensored",
"max_tokens": 1024,
"stream": true,
"messages": [{"role": "user", "content": "Write a haiku about the sea."}]
}'