openapi: 3.2.0 info: title: Runway Character Performance Text To Speech API description: The Runway (RunwayML) developer API for generative AI media. version: '2024-11-06' contact: name: Runway url: https://docs.dev.runwayml.com servers: - url: https://api.dev.runwayml.com/v1 description: Runway developer API security: - bearerAuth: [] tags: - name: Text To Speech description: Synthesize speech audio from text. paths: /text_to_speech: post: operationId: textToSpeech tags: - Text To Speech summary: Create a text-to-speech task description: Synthesize speech audio from text. Billed per character. Returns a task id to poll for the resulting audio URL. requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/TextToSpeechInput' responses: '200': description: The created task. content: application/json: schema: $ref: '#/components/schemas/TaskCreated' '401': $ref: '#/components/responses/Unauthorized' '429': $ref: '#/components/responses/RateLimited' components: schemas: TaskCreated: type: object properties: id: type: string description: The task id to poll on GET /tasks/{id}. TextToSpeechInput: type: object required: - text - model properties: model: type: string description: Text-to-speech model id. example: eleven_multilingual_v2 text: type: string voice: type: string description: Voice id. responses: RateLimited: description: Too many requests - the account rate or concurrency limit was exceeded. Unauthorized: description: Missing or invalid API secret. securitySchemes: bearerAuth: type: http scheme: bearer description: API secret created in the Runway developer portal (dev.runwayml.com), passed as Authorization Bearer YOUR_API_SECRET. Requests must also send a dated X-Runway-Version header.