API Quickstart

Get from zero to your first API call in 5 minutes.

1. Create an API key

Go to Settings → API Keys and click 'Create key'. Copy the key, it's shown only once.

2. List available models

Check which models you have access to:

curl -H "Authorization: Bearer aidx_sk_YOUR_KEY" \
  https://aidex.chat/api/v1/models

3. Send your first message

Call the solo chat endpoint with any available model:

curl -X POST https://aidex.chat/api/v1/chat/completions \
  -H "Authorization: Bearer aidx_sk_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-haiku-4.5",
    "messages": [
      {"role": "user", "content": "What is BYOK?"}
    ]
  }'

4. Stream a response

Add stream: true for real-time token delivery:

curl -N -X POST https://aidex.chat/api/v1/chat/completions \
  -H "Authorization: Bearer aidx_sk_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-haiku-4.5",
    "messages": [
      {"role": "user", "content": "Write a haiku about APIs"}
    ],
    "stream": true
  }'

Next steps

Explore team debates, multi-model comparisons, and pipeline workflows in the full API reference.