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.
POST https://aiwave.live/v1/chat/completions
Authorization: Bearer YOUR_API_KEY
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
}'
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | Yes | Model ID (e.g., deepseek-v4-pro, glm-5) |
| messages | array | Yes | Array of message objects with role and content |
| temperature | number | No | Sampling temperature (0-2). Default: 1 |
| max_tokens | integer | No | Maximum tokens in response |
| stream | boolean | No | Enable streaming. Default: false |
| top_p | number | No | Nucleus sampling. Default: 1 |
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}'
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!"}]
)