Start generating

Text to speech

This endpoint will start a new task to generate speech from text.

post/v1/text_to_speech

Headers

X-Runway-Version'2024-11-06' required

The version of the RunwayML API being used. You can read more about versioning here.

Request body

OR
OR

Example request

{
  "voice": {
    "audioUri": "https://example.com/audio.mp3"
  }
}

Response

The task that was created.

idstring uuid required

The ID of the task that was created. Use this to retrieve the task later.

Changes

Changed in 9 of the 54 revisions of this API.4319

    • removed subschema #1: SeedPresetVoice from the oneOf[subschema #1: seed_audio]/voice request property oneOf list

      request-property-one-of-removed

    • added subschema #3: eleven_v3 to the request body oneOf list

      request-body-one-of-added

    • added subschema #1: SeedPresetVoice to the oneOf[subschema #1: seed_audio]/voice request property oneOf list

      request-property-one-of-added

    • added the non-success response with the status 400

      response-non-success-status-added

    • added the required property estimatedCost to the response with the 200 status

      response-required-property-added

    • added subschema #1: seed_audio to the request body oneOf list

      request-body-one-of-added

    • the model request property default value eleven_multilingual_v2 was removed

      request-property-default-value-removed

    • the type request property default value runway-preset was removed

      request-property-default-value-removed

    • added the media type application/json for the response with the status 429

      response-media-type-added

    • the model request property default value eleven_multilingual_v2 was added

      request-property-default-value-added

    • the type request property default value runway-preset was added

      request-property-default-value-added

    • the model request property default value eleven_multilingual_v2 was removed

      request-property-default-value-removed

    • the type request property default value runway-preset was removed

      request-property-default-value-removed

    • removed subschema #1 from the oneOf[subschema #1: eleven_multilingual_v2]/voice request property oneOf list

      request-property-one-of-removed

    • the model request property default value eleven_multilingual_v2 was added

      request-property-default-value-added

    • added subschema #1: RunwayPresetVoice to the oneOf[subschema #1: eleven_multilingual_v2]/voice request property oneOf list

      request-property-one-of-added

  • 8448e1c9a86211See the full diff
    • removed subschema #1: RunwayPresetVoice from the oneOf[subschema #1: eleven_multilingual_v2]/voice request property oneOf list

      request-property-one-of-removed

    • added subschema #1 to the oneOf[subschema #1: eleven_multilingual_v2]/voice request property oneOf list

      request-property-one-of-added

  • 90724848e40f134See the full diff
    • the request's body type/format changed from object/ to /

      request-body-type-changed

    • removed the request property model

      request-property-removed

    • removed the request property promptText

      request-property-removed

    • removed the request property voice

      request-property-removed

    • added request discriminator

      request-body-discriminator-added

    • added subschema #1: eleven_multilingual_v2 to the request body oneOf list

      request-body-one-of-added

    • added the non-success response with the status 429

      response-non-success-status-added

    • the id response's property pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$ was added for the status 200

      response-property-pattern-added