API Reference

Chat Completions API

Fully compatible with the OpenAI API. Replace the base URL and keep everything else.

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

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

Authentication

API EXAMPLE
Authorization: Bearer YOUR_API_KEY

Basic Request

API EXAMPLE
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

API EXAMPLE
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

API EXAMPLE
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!"}]
)

One endpoint covers 25+ Chinese AI models; verify the live catalog before production.

Zero Data Retention. AIWave does not store prompts or completions.