Skip to main content
POST
Generate music from text prompt

Autorizaciones

Authorization
string
header
requerido

Bearer token authentication. Normally a Firebase or Cloud JWT. A 'comfyui-' prefixed API key is also accepted in this header: the prefix classifies the value as an API key and it is validated exactly as if it had been sent in X-API-Key. Accepted on the operations served by the comfyFirebase auth middleware (BE-9720, parity with ingest).

Cuerpo

multipart/form-data
duration
integer
requerido

Desired duration of the output track in seconds.

Rango requerido: 1 <= x <= 360
prompt
string
requerido

Text prompt describing the desired music. Max length 1000 characters.

Required string length: 1 - 1000

Respuesta

OK - Streaming NDJSON response with audio generation events

A single NDJSON event from the Sonilo streaming response. Additional event types beyond those listed may appear; unknown types should be ignored by clients.

copy_index
integer
requerido
Rango requerido: x >= 0
display_tags
string[]
requerido
prompt_index
integer
requerido
Rango requerido: x >= 0
stream_index
integer
requerido
Rango requerido: x >= 0
title
string
requerido
type
enum<string>
requerido
Opciones disponibles:
title
summary
string

Short natural-language description of the generated track.