---
title: "Generate Speech (TTS)"
method: POST
path: "/api/media/v1/audio/generatespeech"
tags: ["Audio"]
---

# Generate Speech (TTS)

`POST /api/media/v1/audio/generatespeech`

## Request

- Base URL: `https://faktry.ai`
- URL: `https://faktry.ai/api/media/v1/audio/generatespeech`
- Auth: HTTP bearer

Create audio from text using AI text-to-speech technology

**Model Costs (credits):**
- `gpt-4o-mini-tts`: 3 credits
- `tts-1`: 3 credits
- `tts-1-hd`: 5 credits
- `elevenlabs/tts/eleven-v3`: 3 credits
- `qwen-3-tts/text-to-speech/1.7b`: 3 credits
- `qwen-3-tts/voice-design/1.7b`: 3 credits
- `gemini-tts`: 5 credits

## Response `202`

Job queued for async processing

- JobResponse
  - `job_id` string, required: Unique job identifier
  - `status` 'pending', required: Job status
  - `poll_url` string, required: URL to poll job status

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `413`: File too large
- `429`: Rate limit exceeded or insufficient credits
- `500`: Internal server error

---

[API](https://skmtc.dev/faktry/apis/faktry-media-api.md) · [All operations](https://skmtc.dev/faktry/apis/faktry-media-api/llms.txt) · [OpenAPI document](https://skmtc.dev/faktry/apis/faktry-media-api/revisions/b6f8e4467f3c?raw)
