# Qwen-Audio 3.1 TTS Plus — Atlas Cloud API

> Alibaba's flagship text-to-speech model for premium voice work: multilingual and dialect synthesis with free-style instruction control over emotion, tone, role, speed, and volume, plus high-robustness voice cloning from noisy reference audio.

This is the machine-readable API reference for **Qwen-Audio 3.1 TTS Plus** on Atlas Cloud,
a unified API platform for 400+ AI models across text, image, video, audio and 3D.

- **Model ID**: `alibaba/qwen-audio-3.1-tts-plus/text-to-speech`
- **Built by**: Alibaba
- **Modality**: Audio
- **Model page**: https://www.atlascloud.ai/models/alibaba/qwen-audio-3.1-tts-plus/text-to-speech
- **API key**: https://www.atlascloud.ai/console/api-keys
- **Docs**: https://www.atlascloud.ai/docs

## Pricing on Atlas Cloud

- $0.022 per 1K characters
- Pay-as-you-go. No minimum spend, no subscription required.

> **These are the authoritative Atlas Cloud rates for this model.** Any price that
> appears in the vendor description further down refers to a different platform or
> a different model variant and does not apply here.

## Use this model from an AI agent

Atlas Cloud ships three first-party integration surfaces. All three authenticate
with the same API key via the `ATLASCLOUD_API_KEY` environment variable.

### MCP server

The official MCP server (`atlascloud-mcp`) exposes this model to any
MCP-compatible host — Claude Code, OpenAI Codex, Cursor, Gemini CLI, Goose,
Claude Desktop. One-line install:

```bash
# Claude Code
claude mcp add atlascloud -- npx -y atlascloud-mcp

# OpenAI Codex CLI
codex mcp add atlascloud -- npx -y atlascloud-mcp

# Gemini CLI
gemini mcp add atlascloud -- npx -y atlascloud-mcp

export ATLASCLOUD_API_KEY="your-api-key"
```

Then ask in plain English; the agent calls `atlas_generate_audio` with `model: "alibaba/qwen-audio-3.1-tts-plus/text-to-speech"`.
The server fetches each model's schema and validates parameters before submitting,
so invalid requests fail fast without spending credits.

MCP docs: https://www.atlascloud.ai/docs/mcp-server

### Agent Skills

`atlas-cloud-skills` is a portable skill package (API reference, code templates in
Python / Node.js / cURL, model IDs with pricing) for Claude Code, Cursor, Codex and
12+ other agents:

```bash
npx skills add AtlasCloudAI/atlas-cloud-skills
export ATLASCLOUD_API_KEY="your-api-key"
```

Skills docs: https://www.atlascloud.ai/docs/skills

### CLI

The `atlas` binary runs Atlas Cloud from a terminal or CI script. Async media jobs
are polled and downloaded automatically (use `--no-download` when a script only
needs the output URLs):

```bash
# Install (Homebrew, npm, or shell installer)
brew install AtlasCloudAI/tap/atlascloud
# npm install -g atlascloud-cli
# curl -fsSL https://raw.githubusercontent.com/AtlasCloudAI/cli/main/install.sh | sh

atlas auth login
atlas models get alibaba/qwen-audio-3.1-tts-plus/text-to-speech --json
```

CLI docs: https://www.atlascloud.ai/docs/cli

## HTTP API reference

- **Submit endpoint (POST)**: `https://api.atlascloud.ai/api/v1/model/generateAudio` — start an async generation; returns a `prediction_id`
- **Poll endpoint (GET)**: `https://api.atlascloud.ai/api/v1/model/prediction/{prediction_id}` — poll this until the prediction finishes
- **Model ID**: `alibaba/qwen-audio-3.1-tts-plus/text-to-speech`


## API Information

This model can be used via our HTTP API or more conveniently via our client libraries.
See the input and output schema below, as well as the usage examples.


### Input Schema

The API accepts the following input parameters:

- **`model`** (`string`, _required_):
  Model name.
  - Default: `"alibaba/qwen-audio-3.1-tts-plus/text-to-speech"`

- **`text`** (`string`, _required_):
  Text to synthesize into speech audio. Supports SSML and LaTeX input when enable_ssml is true.
  - Default: `"Welcome to Atlas Cloud — One API for All Media AI."`

- **`voice`** (`string`, _required_):
  System voice ID. Must be a voice supported by qwen-audio-3.1-tts-plus; a voice from another model returns InvalidParameter.
  - Default: `"longanhuan_v3.1"`
  - Options: "longanhuan_v3.1", "longanlingxin_v3.1", "xunanchuan_v3.1", "longanfengyue_v3.1"

- **`output_format`** (`string`, _optional_):
  Output audio format.
  - Default: `"mp3"`
  - Options: "mp3", "pcm", "wav", "opus"

- **`sample_rate`** (`integer`, _optional_):
  Output sample rate in Hz.
  - Default: `22050`
  - Options: 8000, 12000, 16000, 22050, 24000, 44100, 48000

- **`speed`** (`number`, _optional_):
  Speech rate multiplier.
  - Default: `1`
  - Min: 0.5
  - Max: 2

- **`pitch`** (`number`, _optional_):
  Pitch multiplier.
  - Default: `1`
  - Min: 0.5
  - Max: 2

- **`volume`** (`integer`, _optional_):
  Output volume.
  - Default: `50`
  - Min: 0
  - Max: 100

- **`bit_rate`** (`integer`, _optional_):
  Output bitrate in kbps. Applies to opus only.

- **`language_hints`** (`array[string]`, _optional_):
  Language hint list, for example ["zh"]. The upstream API only reads the first entry. Supported values: zh, en, ja, ko, fr, de, pt, it, vi, id.
  - Max items: 1

- **`instruction`** (`string`, _optional_):
  Free-style instruction controlling emotion, tone, role, or speaking style.
  - Default: `""`

- **`enable_ssml`** (`boolean`, _optional_):
  Treat text as SSML markup.
  - Default: `false`

- **`seed`** (`integer`, _optional_):
  Random seed for reproducible output. Use -1 for a random seed.
  - Default: `-1`
  - Min: -1
  - Max: 65535



**Required Parameters Example**:

```json
{
  "model": "alibaba/qwen-audio-3.1-tts-plus/text-to-speech",
  "text": "Welcome to Atlas Cloud — One API for All Media AI.",
  "voice": "longanhuan_v3.1"
}
```


**Full Example**:

```json
{
  "model": "alibaba/qwen-audio-3.1-tts-plus/text-to-speech",
  "text": "Welcome to Atlas Cloud — One API for All Media AI.",
  "voice": "longanhuan_v3.1",
  "output_format": "mp3",
  "sample_rate": 22050,
  "speed": 1,
  "pitch": 1,
  "volume": 50,
  "bit_rate": 0,
  "language_hints": [
    ""
  ],
  "instruction": "",
  "enable_ssml": false,
  "seed": -1
}
```


### Output Schema

The API returns the following output format:


- **`id`** (`string`, _optional_):
  Unique identifier for the prediction.

- **`model`** (`string`, _optional_):
  Model ID used for the prediction.

- **`status`** (`string`, _optional_):
  Status of the task: created, processing, completed, or failed.

- **`outputs`** (`array[string]`, _optional_):
  Array of URLs to the generated audio.

- **`created_at`** (`string`, _optional_):
  ISO timestamp of when the request was created.

- **`urls`** (`object`, _optional_):
  Object containing related API endpoints.



**Example Response**:

```json
{
  "id": "",
  "model": "",
  "status": "",
  "outputs": [
    ""
  ],
  "created_at": "",
  "urls": {}
}
```


## Usage Examples

### cURL

```bash
# Step 1: Start generation (async)
curl -X POST "https://api.atlascloud.ai/api/v1/model/generateAudio" \
  -H "Authorization: Bearer $ATLASCLOUD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "alibaba/qwen-audio-3.1-tts-plus/text-to-speech",
  "text": "Welcome to Atlas Cloud — One API for All Media AI.",
  "voice": "longanhuan_v3.1",
  "output_format": "mp3",
  "sample_rate": 22050,
  "speed": 1,
  "pitch": 1,
  "volume": 50,
  "bit_rate": 0,
  "language_hints": [
    ""
  ],
  "instruction": "",
  "enable_ssml": false,
  "seed": -1
}'

# Response will contain: {"code": 200, "data": {"id": "prediction_id", "status": "processing"}}

# Step 2: Poll for result (replace {prediction_id} with the id returned above)
curl -X GET "https://api.atlascloud.ai/api/v1/model/prediction/{prediction_id}" \
  -H "Authorization: Bearer $ATLASCLOUD_API_KEY"

# Keep polling until status is "completed", "succeeded" or "failed"
# When completed, outputs will contain the generated content URL(s)
```

## Additional Resources

### Documentation

- [Model Playground](https://www.atlascloud.ai/models/alibaba/qwen-audio-3.1-tts-plus/text-to-speech)

## About this model

_Vendor-supplied description. Any pricing or endpoint mentioned below refers to_
_other platforms — use the Atlas Cloud values above._

### Qwen-Audio 3.1 TTS Plus

**Qwen-Audio 3.1 TTS Plus** is Alibaba's flagship text-to-speech model for premium voice work. It turns text into high-fidelity speech in multiple languages and Chinese dialects, and supports free-style instructions that control emotion, tone, role, speed, and volume.

#### Why Choose This?

- **Premium fidelity.** The Plus tier is tuned for brand voices, audiobooks, film dubbing, and character performance.
- **Instruction control.** Put a natural-language `instruction` in the request to steer emotion, persona, and delivery without changing the text.
- **Multilingual and dialects.** Chinese, English, Japanese, Korean, and more, with dialect coverage and authentic pronunciation.
- **Robust voice cloning.** Cloned voices stay clear even when the reference audio has noise or reverb.
- **Ready-to-use audio file.** Output is mp3, pcm, wav, or opus. Billed per character of input text.

#### Parameters

| Parameter | Required | Description |
| --- | --- | --- |
| model | Yes | `alibaba/qwen-audio-3.1-tts-plus/text-to-speech` |
| text | Yes | Text to synthesize. Supports SSML and LaTeX when `enable_ssml` is true. |
| voice | Yes | System voice ID. Default `longanhuan_v3.1`. See the list below. |
| output_format | No | `mp3` (default), `pcm`, `wav`, `opus`. |
| sample_rate | No | `8000`, `12000`, `16000`, `22050` (default), `24000`, `44100`, `48000`. |
| speed | No | Speech rate, 0.5–2.0. Default `1.0`. |
| pitch | No | Pitch multiplier, 0.5–2.0. Default `1.0`. |
| volume | No | Output volume, 0–100. Default `50`. |
| bit_rate | No | Bitrate in kbps. Applies to opus only. |
| language_hints | No | Language hint list such as `["zh"]`. Only the first entry is read. |
| instruction | No | Free-style style instruction, for example "warm, calm, narrating a documentary". |
| enable_ssml | No | Treat `text` as SSML. Default `false`. |
| seed | No | Random seed, 0–65535. `0` means unset. |

##### System voices

_(Description truncated. Full text on the model page.)_

---

Atlas Cloud — one API for 400+ AI models. Model page: https://www.atlascloud.ai/models/alibaba/qwen-audio-3.1-tts-plus/text-to-speech · Docs: https://www.atlascloud.ai/docs
