Chat Completions API

The AIWave Chat Completions endpoint is fully compatible with the OpenAI API. Replace api.openai.com with aiwave.live and keep everything else the same.

Endpoint

POST https://aiwave.live/v1/chat/completions

Authentication

Authorization: Bearer YOUR_API_KEY

Basic Request

curl https://aiwave.live/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-YOUR_API_KEY" \
  -d '{
    "model": "deepseek-v4-pro",
    "messages": [
      {"role": "system", "content": "You are a helpful assistant."},
      {"role": "user", "content": "Explain quantum computing in simple terms."}
    ],
    "temperature": 0.7,
    "max_tokens": 1000
  }'

Parameters

ParameterTypeRequiredDescription
modelstringYesModel ID (e.g., deepseek-v4-pro, glm-5)
messagesarrayYesArray of message objects with role and content
temperaturenumberNoSampling temperature (0-2). Default: 1
max_tokensintegerNoMaximum tokens in response
streambooleanNoEnable streaming. Default: false
top_pnumberNoNucleus sampling. Default: 1

Streaming

curl https://aiwave.live/v1/chat/completions \
  -H "Authorization: Bearer sk-YOUR_KEY" \
  -d '{"model":"deepseek-v4-pro","messages":[{"role":"user","content":"Hello"}],"stream":true}'

OpenAI SDK Drop-in

from openai import OpenAI
client = OpenAI(
    api_key="sk-YOUR_KEY",
    base_url="https://aiwave.live/v1"
)
response = client.chat.completions.create(
    model="deepseek-v4-pro",
    messages=[{"role":"user","content":"Hello!"}]
)
Browse All Models →Get API Key →