Quickstart

One completion. Confirm the key, the model, and the base URL

Send a single POST /v1/chat/completions request to verify your key and a live model.

  • Base URL: https://inference.dahl.global/v1
  • A Bearer API key with tokens on it
  • A current model ID from `GET /v1/models`

Step 1 — Get a key with tokens

  1. Open inference.dahl.globalCreate account. Save the fingerprint.
  2. The welcome grant is 100 million tokens in the pool. The first key starts at 0.
  3. In /account → API keys, Allocate tokens from the pool to the key, then copy the key.

Export the key:

export DAHL_API_KEY="dahl_…"

Step 2 — List models

GET /v1/models is public — no API key. Pick an id from data. For most tasks start with MiniMax M2.7: MiniMaxAI/MiniMax-M2.7.

curl https://inference.dahl.global/v1/models

Step 3 — First request

curl https://inference.dahl.global/v1/chat/completions \
  -H "Authorization: Bearer $DAHL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "MiniMaxAI/MiniMax-M2.7",
    "messages": [
      { "role": "user", "content": "Hello, Dahl!" }
    ]
  }'

Expected result

200 OK. Assistant text is in choices[0].message.content.

{
  "choices": [
    {
      "message": {
        "role": "assistant",
        "content": "..."
      }
    }
  ]
}

Common first failures

ResponseUsually meansCheck
401 Missing API tokenNo Authorization headerAdd Authorization: Bearer
401 invalid / expiredWrong or revoked keyNew key at /account
402 exhaustedNothing allocated on the keyAllocate from the pool or top up
4xx / 502Stale model idGET /v1/models and use a live id
503 / timeoutsNetwork overloadShort backoff and retry