curl https://tokventa.tech/v1/chat/completions \
-H "Authorization: Bearer ВАШ_API_КЛЮЧ" \
-H "Content-Type: application/json" \
-d '{"model":"qwen3.8-flash","messages":[{"role":"user","content":"Привет!"}]}'curl -N https://tokventa.tech/v1/chat/completions \
-H "Authorization: Bearer ВАШ_API_КЛЮЧ" \
-H "Content-Type: application/json" \
-d '{"model":"qwen3.8-flash","messages":[{"role":"user","content":"Привет!"}],"stream":true}'curl https://tokventa.tech/v1/models -H "Authorization: Bearer ВАШ_API_КЛЮЧ"
curl https://tokventa.tech/v1/images/generations \
-H "Authorization: Bearer ВАШ_API_КЛЮЧ" \
-H "Content-Type: application/json" \
-d '{"model":"qwen-image-2.0","prompt":"красный круг на белом фоне","n":1,"size":"1024x1024"}'# TTS → wav-файл
curl https://tokventa.tech/v1/audio/speech \
-H "Authorization: Bearer ВАШ_API_КЛЮЧ" \
-H "Content-Type: application/json" \
-d '{"model":"qwen3-tts-flash","input":"Привет!","voice":"Cherry"}' \
--output speech.wav
# ASR: аудио → текст (multipart)
curl https://tokventa.tech/v1/audio/transcriptions \
-H "Authorization: Bearer ВАШ_API_КЛЮЧ" \
-F model="qwen-audio-3.0-asr-flash" \
-F file="@audio.mp3"Значения кодов ответов — /docs/errors.
Базовый URL API: https://tokventa.tech/v1 · Каталог моделей · Цены · Получить ключ