Перейти к основному содержанию
POST
Generate music from text prompt

Авторизации

Authorization
string
header
обязательно

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).

Тело

multipart/form-data
duration
integer
обязательно

Desired duration of the output track in seconds.

Требуемый диапазон: 1 <= x <= 360
prompt
string
обязательно

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

Required string length: 1 - 1000

Ответ

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
обязательно
Требуемый диапазон: x >= 0
display_tags
string[]
обязательно
prompt_index
integer
обязательно
Требуемый диапазон: x >= 0
stream_index
integer
обязательно
Требуемый диапазон: x >= 0
title
string
обязательно
type
enum<string>
обязательно
Доступные опции:
title
summary
string

Short natural-language description of the generated track.