---
title: "POST /api/text_to_speech/"
method: POST
path: "/api/text_to_speech/"
tags: ["text_to_speech"]
---

# POST /api/text_to_speech/

`POST /api/text_to_speech/`

## Request body

- TextToSpeechFlow
  - `id` string, uuid, required
  - `script` string, required — Text to be converted to speech
  - `accent` string, uuid, nullable — Accent to be used for the speech
  - `webhook_url` string, uri, nullable — Webhook URL for status updates. Default is null.
  - `output` string, required — Output audio url
  - `media_job` string, nullable, required
  - `credits_used` number, required — Credits used in this API call
  - `duration` integer, required — Duration of the video in seconds
  - `is_hidden` boolean, required — Whether the job is hidden or not
  - `status` string, required
  - `failed_reason` string, required — Failed reason
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Response `201`

- TextToSpeechFlow
  - `id` string, uuid, required
  - `script` string, required — Text to be converted to speech
  - `accent` string, uuid, nullable — Accent to be used for the speech
  - `webhook_url` string, uri, nullable — Webhook URL for status updates. Default is null.
  - `output` string, required — Output audio url
  - `media_job` string, nullable, required
  - `credits_used` number, required — Credits used in this API call
  - `duration` integer, required — Duration of the video in seconds
  - `is_hidden` boolean, required — Whether the job is hidden or not
  - `status` string, required
  - `failed_reason` string, required — Failed reason
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

---

[API](https://skmtc.dev/creatify/apis/creatify-ai-api.md) · [All operations](https://skmtc.dev/creatify/apis/creatify-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/creatify/creatify-ai-api/revisions/7ca3bf8077ba/schema)
