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 used to generate the song, up to 3000 characters.
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
Text prompt used to control music generation, up to 1024 characters. It can be used alone or combined with vocal_id.
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.
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.
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.
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_id | string | Идентификатор задачи, используемый во всех последующих операциях. |
response_url | string | URL для получения итогового результата. |
status_url | string | URL для проверки статуса задачи. |
cancel_url | string | URL для отмены задачи. |
queue_position | int | Текущая позиция в очереди. |