# Microsoft VibeVoice 7B API

> VibeVoice 7B by Microsoft generates long-form, expressive speech with up to four speakers in one conversation, using preset voices or voice samples. It suits podcasts and multi-character dialogue.

Source: https://www.sandbase.ai/models/microsoft/vibevoice/7b
API reference: https://www.sandbase.ai/models/microsoft/vibevoice/7b#api

## Facts

- Provider: Microsoft
- Type: Audio model
- Model ID: `microsoft/vibevoice/7b`
- Price: From $0.04 per run
- Capabilities: text to speech
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Unified Run API: `POST https://api.sandbase.ai/v1/run`

```bash
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "microsoft/vibevoice/7b",
  "text": "Speaker 0: VibeVoice is now available on SandBase. Isn'"'"'t that right, Carter?\nSpeaker 1: That'"'"'s right Frank, and it supports up to four speakers at once. Try it now!",
  "speakers": [
    [
      {
        "preset": "Frank [EN]"
      },
      {
        "preset": "Carter [EN]"
      }
    ]
  ]
}'
```

The response returns a run id; poll `GET https://api.sandbase.ai/v1/run/{id}` until the status is `completed` or `failed`.

## FAQ

### How do I call Microsoft VibeVoice 7B through SandBase?

Create a SandBase API key, then send requests with the model ID "microsoft/vibevoice/7b" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

### Do I need a separate Microsoft account?

No. One SandBase API key and balance gives you access to Microsoft VibeVoice 7B and the other models in the catalog; you do not need to sign up with Microsoft separately.

## README

### VibeVoice 7B

Microsoft VibeVoice 7B turns a script of up to 30,000 characters into long-form speech with up to four speakers, each a preset voice or a cloned voice sample.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `text` | string, required | — | Script; prefix lines with `Speaker 0:`…`Speaker 3:` for dialogue. |
| `speakers` | array of objects (1–4), required | — | 1–4 items `{preset}` or `{audio_url}` in speaker order; presets: `Alice [EN]`, `Carter [EN]`, `Frank [EN]`, `Mary [EN] (Background Music)`, `Maya [EN]`, `Anchen [ZH] (Background Music)`, `Bowen [ZH]`, `Xinran [ZH]`. |
| `seed` | integer | — | Fix it to reproduce a result. |

#### Billing

$0.04 per minute of generated speech, rounded to the nearest 15 seconds (minimum 15 seconds). The charge uses the measured output length; the estimate before the run assumes 1 minute.

| Output length | Price |
|---|---|
| 30 s | $0.02 |
| 1 min | $0.04 |
| 5 min | $0.20 |

Failed runs are not charged.

#### Prompting

- Keep one speaker per line and match `Speaker N` to the order of `speakers`.
- Presets marked (Background Music) add music under the voice.

#### Also on SandBase

Related: `microsoft/vibevoice`, `microsoft/vibevoice/0.5b`.
