First request

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

Open inference.dahl.global → Create account. Save the fingerprint.

The welcome grant is 100 million tokens in the pool. The first key starts at 0.

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
400This model is not currently offeredUse a live id from the error or GET /v1/models
503 / timeoutsNetwork overloadShort backoff and retry