Skip to main content
POST
Use POST /runwayml/v1/sound_effect to create an audio task from a text prompt. Send your CometAPI API key with Bearer authentication and a JSON request body.

Choose a model

For eleven_text_to_sound_v2, omit duration to choose the length from the prompt. Set loop: true to request a repeating sound effect. For seed_audio, refer to referenceAudios in the prompt as @Audio1, @Audio2, and @Audio3, in array order. Omit referenceAudios when you do not need a reference. Replace each example audio URL with an accessible HTTPS URL of your audio file. Do not include duration, loop, or voice with this model on this endpoint.

Configure audio controls

For the three rate controls, omit the field or use 0 to keep its normal value.

Retrieve the result

Save the returned id, then use Get a Runway task to retrieve task status. When status is SUCCEEDED, read the audio URLs in output. If the task fails, inspect failure and failureCode.

Authorizations

Authorization
string
header
required

Use your CometAPI API key.

Body

application/json

Request settings for eleven_text_to_sound_v2.

model
enum<string>
required

Model ID for this request.

Available options:
eleven_text_to_sound_v2
Allowed value: "eleven_text_to_sound_v2"
promptText
string
required

A text description of the sound effect to generate.

Required string length: 1 - 3000
duration
integer

Sound effect duration in whole seconds, from 1 to 30. Omit this field to choose duration from the prompt.

Required range: 1 <= x <= 30
loop
boolean
default:false

Set true to request a sound effect that loops seamlessly. Defaults to false.

Response

Task created. Save the returned id to retrieve task status.

id
string
required

Task ID for GET /runwayml/v1/tasks/{id}.

status
string

Task state, when returned.

createdAt
string<date-time>

Task submission timestamp, when returned.

output
string<uri>[]

Result URLs, when returned.

failure
string

Failure explanation, when returned.

failureCode
string

Machine-readable failure code, when returned.

estimatedCost
object

Task estimate metadata, when returned.

cost
object

Task cost metadata, when returned.

Last modified on September 21, 2026