---
title: "Generate a sound effect"
method: POST
path: "/v1/sfx"
tags: ["sfx"]
---

# Generate a sound effect

`POST /v1/sfx`

## Request

- Base URL: `https://varosity.ai/api`
- URL: `https://varosity.ai/api/v1/sfx`
- Auth: HTTP bearer

Text-to-sound-effect (ElevenLabs). Returns a hosted MP3 URL. Scope: generate:voice.

## Request body

- object
  - `text` string, required
  - `durationSeconds` number
  - `promptInfluence` number

## Response `201`

Success

- object
  - `ok` boolean, required
  - `audioUrl` string, required

## Other responses

- `401`: Unauthorized
- `422`: Validation error

---

[API](https://skmtc.dev/varosity/apis/varosity-ai-api.md) · [All operations](https://skmtc.dev/varosity/apis/varosity-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/varosity/apis/varosity-ai-api/revisions/81d0169a4897?raw)
