Перейти к содержимому
Главная

Mureka Song Generator

mureka_song_generator

Mureka Song Generator generates songs from lyrics, text prompts, or reference audio controls.

POST /v1/queue/mureka_song_generator # Создать задачу
GET /v1/queue/mureka_song_generator/requests/{request_id}/status # Проверить статус
GET /v1/queue/mureka_song_generator/requests/{request_id}/response # Получить результат
PUT /v1/queue/mureka_song_generator/requests/{request_id}/cancel # Отменить задачу
Окно терминала
curl --location "https://odirouter.ai/model/v1/queue/mureka_song_generator" \
--header "Authorization: Bearer YOUR_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"lyrics": "[Verse]\nThe sea breeze crosses the shoreline\nWe sing our story one more time",
"prompt": "warm pop ballad, clean vocal, emotional chorus",
"n": 1
}'
lyrics string обязательно

Lyrics used to generate the song, up to 3000 characters.

n int

Number of songs generated per request. Billing is based on the generated song count.

A single generated song may return multiple output files, such as MP3, WAV, and FLAC. These files are alternate formats for the same song, not extra songs.

Default: 2

Maximum: 3

prompt string

Text prompt used to control music generation, up to 1024 characters. It can be used alone or combined with vocal_id.

reference_id string

Controls generation with reference music. Obtained after uploading through the files/upload API with the reference purpose. It can be used alone or combined as reference_id + vocal_id.

vocal_id string

Controls music generation with a specified vocal. Obtained after uploading through the files/upload API with the vocal purpose. It can be used alone, or combined as vocal_id + reference_id or vocal_id + prompt.

melody_id string

Controls music generation with melody inspiration. Obtained after uploading through the files/upload API with the melody purpose. This option cannot be combined with other control options.

stream bool

When set to true, task status includes a streaming stage. During this stage, use stream_url to play the generated song while it is being generated.

{
"request_id": "mmsu_01hxyz...",
"response_url": "https://odirouter.ai/model/v1/queue/mureka_song_generator/requests/mmsu_01hxyz.../response",
"status_url": "https://odirouter.ai/model/v1/queue/mureka_song_generator/requests/mmsu_01hxyz.../status",
"cancel_url": "https://odirouter.ai/model/v1/queue/mureka_song_generator/requests/mmsu_01hxyz.../cancel",
"queue_position": 0
}
ПолеТипОписание
request_idstringИдентификатор задачи, используемый во всех последующих операциях.
response_urlstringURL для получения итогового результата.
status_urlstringURL для проверки статуса задачи.
cancel_urlstringURL для отмены задачи.
queue_positionintТекущая позиция в очереди.