DocsGet startedQuick start

Quick start

One goal: prove that key + model ID + route all work.

  1. 1
    Sign up and top up on the main site.
  2. 2
    Create a key and pick the right group.
  3. 3
    Copy a model ID from the recommended models table or /v1/models below.
  4. 4
    Send a minimal request; configure clients only after it succeeds.

List models

bash
curl https://api.daoxe.com/v1/models \
  -H "Authorization: Bearer sk-xxxx"

Minimal Chat

bash
curl https://api.daoxe.com/v1/chat/completions \
  -H "Authorization: Bearer sk-xxxx" \
  -H "Content-Type: application/json" \
  -N \
  -d '{
    "model": "copy from /v1/models",
    "messages": [{"role":"user","content":"ping"}],
    "max_tokens": 64
  }'

Minimal Messages (if using Claude)

bash
curl https://api.daoxe.com/v1/messages \
  -H "x-api-key: sk-xxxx" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "copy from /v1/models",
    "max_tokens": 64,
    "messages": [{"role":"user","content":"ping"}]
  }'

Route switching and Base URL shapes: Routes / Protocols. On failure, check common errors.