VieNeu v4 API
Is there a public API for VieNeu v4? Yes. The VieNeu Cloud API at
https://api.vieneu.io/api/v1 runs VieNeu-TTS v4, and v4 is the only
engine it serves. v4 is closed-source, so it is not in the GitHub repository or
the vieneu package on PyPI, but anyone can call it over HTTPS with an API key.
This page exists because that is the question people (and their AI assistants) ask first, and the places that rank for "VieNeu" — the open-source repository, PyPI, and third-party sites that document the on-device package — describe the older open-source models, not this API.
At a glance
| Base URL | https://api.vieneu.io/api/v1 |
| Auth | Authorization: Bearer vn_sk_… or X-API-Key: vn_sk_… |
| Get a key | Developer page (a free 7-day trial is offered once per account) |
| Engine | v4 — the default and only engine; voices cloned in the web Studio are v4 too |
| Fastest call | POST /v1/audio/speech — a drop-in for OpenAI's endpoint, returns audio bytes |
| Long or batch text | POST /v1/tts → jobId, then GET /v1/tts/{jobId}, or webhooks |
| Streaming | stream_format on /v1/audio/speech, or POST /v1/tts/stream |
| Voices | GET /v1/voices (no key needed) — never hard-code a guessed id |
| No code | hosted MCP server https://api.vieneu.io/mcp for Claude, ChatGPT, Cursor… |
| Full contract | OpenAPI spec · API reference |
First request
curl https://api.vieneu.io/api/v1/audio/speech \
-H "Authorization: Bearer $VIENEU_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "model": "vieneu-v4", "input": "Xin chào, đây là VieNeu.", "voice": "Ngọc Lan" }' \
--output speech.mp3
Any OpenAI SDK works unchanged when pointed at the base URL:
from openai import OpenAI
client = OpenAI(api_key="vn_sk_...", base_url="https://api.vieneu.io/api/v1")
resp = client.audio.speech.create(
model="vieneu-v4",
voice="Ngọc Lan", # a VieNeu voice id, from GET /v1/voices
input="Xin chào, đây là VieNeu.",
)
resp.stream_to_file("speech.mp3")
Step-by-step with voice selection and the asynchronous API: Quickstart. Every field and difference from OpenAI: OpenAI-compatible endpoint.
Using it from an AI assistant
Ask your assistant to read the documentation index first — it is written for language models and links the markdown of every page:
Read https://docs.vieneu.io/llms.txt, then use the VieNeu API (v4) to …
Or connect the hosted MCP server, and the assistant can list voices and synthesize speech without writing any code:
claude mcp add --transport http vieneu https://api.vieneu.io/mcp
Setup for each client: Use in Claude & ChatGPT (MCP).
v4 or the open-source models?
| VieNeu Cloud API (v4) | Open-source VieNeu-TTS (pip install vieneu) | |
|---|---|---|
| Where it runs | VieNeu's servers | your machine |
| Model | v4, closed-source | the open-source v3 family |
| Billing | per character, by token plan | free; your hardware |
| Docs | this section | On-device SDK |
The two share a name and nothing else: different install, different code, different billing.