AIWave Python SDK
One OpenAI-compatible API for Chinese AI models — and AI video. 97 public routes, 10 Chinese families, 10 public video routes.
AIWave gives developers one OpenAI-compatible API route for Chinese AI model families — DeepSeek, GLM, Kimi, Qwen, MiniMax, Doubao, StepFun, MiMo — plus AI video routes (Kling, Seedance, Hailuo, Wan, Vidu).
Get a key at aiwave.live/register — free tier included.
Use this SDK when you want a Python client path to AIWave while keeping model IDs, dated USD rates, and request-level usage evidence visible during testing.
Installation
pip install aiwave
Quick start with the AIWave client
import os
from aiwave import AIWave
client = AIWave(api_key=os.environ["AIWAVE_API_KEY"])
response = client.chat.completions.create(
model="deepseek-v4-flash",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)
print(response.usage)
Store API keys outside source control. The example above uses an environment variable and does not include a real key.
OpenAI-compatible client path
For supported chat requests, you can also use the official OpenAI Python client with the AIWave base URL:
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["AIWAVE_API_KEY"],
base_url="https://aiwave.live/v1",
)
response = client.chat.completions.create(
model="deepseek-v4-flash",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.usage)
AI video
One key, video routes on Kling, Seedance, Hailuo, Wan and Vidu.
from aiwave import AIWave
client = AIWave(api_key="YOUR_API_KEY_HERE")
job = client.video.generate(
model="kling-v2-6",
prompt="A red sports car drifting through a neon-lit city at night, cinematic tracking shot",
)
print(job.task_id)
done = client.video.wait(job.task_id) # polls every 15s, 15 min max
print(done.status)
Video routes are experimental and need a paid account group (from $5). A single shot takes 5-11 minutes.
What to verify before production
- Confirm the current model ID in the AIWave model catalog.
- Check the dated USD rates on the AIWave pricing page.
- Run one representative workload and review the request-level usage record.
- Keep timeout, retry, privacy, and model-quality acceptance checks in your own application.
Resources
License
MIT — AIWave
Metadata
Release files for aiwave 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aiwave-0.2.0.tar.gz | 5.2 kB | Without provenance | Details for aiwave-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aiwave-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for aiwave-0.2.0-py3-none-any.whl |
Total release size: 10.6 kB
Release files / aiwave-0.2.0.tar.gz
| Download URL | aiwave-0.2.0.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1d37adc6486de0108e9fcee294217566fe8e02bf038e4dc44d6bb564d93071ae
|
|
BLAKE2b-256 checksum How to use checksums |
36fc414d67f001abfd083af0de9d9f4ea0006d606436f43cee0de869a6e61104
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / aiwave-0.2.0-py3-none-any.whl
| Download URL | aiwave-0.2.0-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
229e1ef5474255207197150860f5f0315e836a5e8b254945fe147b7f223b4fd0
|
|
BLAKE2b-256 checksum How to use checksums |
c78e294b4414b66c4ee6ff9fa5f52a284e901f7d7a70624872dc59ae8ab3f378
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for aiwave 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.