Guía de integración de Producer Audios Generation API
Este documento presenta una guía de integración de Producer Audios Generation API, que permite generar música oficial de Producer mediante la introducción de parámetros personalizados.
¶ Proceso de solicitud
Para utilizar Producer Audios Generation API, primero vaya a la consola de 零壹AI y obtenga su token de API para usarlo posteriormente.

Si aún no ha iniciado sesión o no se ha registrado, se le redirigirá automáticamente a la página de inicio de sesión para que se registre e inicie sesión. Una vez completado el proceso, regresará automáticamente a la página actual.
La clave de API de una aplicación de uso general puede utilizarse para los servicios habilitados en la cuenta; la clave de una aplicación dedicada se utiliza según el alcance de los servicios de dicha aplicación. Compruebe los permisos, la vigencia y los límites de la clave, y confirme que el saldo de la aplicación sea suficiente para pagar esta solicitud. La cuota de prueba disponible será la que se muestre en la cuenta; si el saldo es insuficiente, haga clic en el botón «Recargar».
📘 Documentación completa: Producer Audios Generation API →
¶ Seleccionar los parámetros obligatorios según la operación
Cuando action=generate y custom=false (valor predeterminado), proporcione prompt; cuando custom=true
y instrumental=false, proporcione lyric. Para música instrumental personalizada se puede establecer
custom=true, instrumental=true, sin necesidad de inventar letras ni indicaciones adicionales.
action=extend requiere audio_id y un continue_at mayor que 0; en el modo no instrumental también se requiere
lyric. Las versiones, variantes, sustituciones de secciones, intercambios de partes y separaciones de pistas requieren un audio_id de origen;
las letras y las indicaciones no deben ser obligatorias incondicionalmente para todas las operaciones.
En MCP, producer_extend_music y producer_replace_section seleccionan el modo de letra personalizada cuando se proporciona lyric
; para continuar música instrumental se puede pasar instrumental=true y omitir la letra.
¶ Uso básico
Puede introducir cualquier texto sobre la canción que desee; por ejemplo, si quiero generar una canción sobre Navidad, puedo introducir a song for Christmas, como se muestra en la imagen:

Como puede verse, aquí hemos configurado los encabezados de la solicitud, que incluyen:
accept: el formato en el que se desea recibir la respuesta; aquí se introduceapplication/json, es decir, formato JSON.authorization: la clave para llamar a la API, que se puede seleccionar directamente en el menú desplegable después de solicitarla.
Además, los parámetros del cuerpo de la solicitud incluyen:
action: la acción de la tarea de generación de música; para generar una canción esgenerate.model: el modelo utilizado para crear la canción; actualmente los principales son: FUZZ-2.0 Pro, FUZZ-2.0, FUZZ-2.0 Raw, FUZZ-1.1 Pro, FUZZ-1.0 Pro, FUZZ-1.0, FUZZ-1.1, FUZZ-0.8.lyric: el contenido de la letra de la canción.custom: si se utiliza el modo personalizado para generar la canción.prompt: la indicación para el modo de inspiración.title: la información del título de la canción.audio_id: el ID de la canción de referencia, utilizado para operaciones como continuación o versión.continue_at: continuar la canción a partir del segundo especificado.replace_section_start/replace_section_end: los tiempos de inicio y fin de la sección que se va a sustituir, en segundos.lyrics_strength: intensidad de la letra, que indica el grado de influencia de la letra en la generación de audio; se puede elegir entre 0 y 1, con un valor predeterminado de 0.5.sound_strength: intensidad de la indicación de audio; se puede elegir entre 0.2 y 1, con un valor predeterminado de 0.5.cover_strength: intensidad de la versión, entre 0.2 y 1, con un valor predeterminado de 1.weirdness: grado de singularidad del estilo; se puede elegir entre 0 y 1, con un valor predeterminado de 0.5.callback_url: la URL a la que se deben enviar los resultados mediante devolución de llamada.async: opcional; al establecerlo entrue, la interfaz devuelve inmediatamente untask_idsin necesidad de proporcionarcallback_url; después, se obtiene el resultado mediante consultas periódicas a la interfaz de consulta de tareas correspondiente.instrumental: si se utiliza el modo sin letra.
Después de seleccionar los parámetros, se puede observar que también se ha generado el código correspondiente a la derecha, como se muestra en la imagen:

Haga clic en el botón «Try» para realizar la prueba. Como se muestra en la imagen anterior, aquí hemos obtenido el siguiente resultado:
{
"success": true,
"task_id": "82fd443a-903a-4f18-8028-12d2f8a0a4be",
"trace_id": "d85839fa-0bb1-42da-a9fc-cd582c29027d",
"data": [
{
"id": "6c947f13-a3c5-4b9c-8609-5639c37cdc2d",
"title": "Untitled",
"image_url": "https://cdn.acedata.cloud/e724d7f13d.png",
"lyric": "[Instrumental]",
"audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
"video_url": null,
"image_id": "6c947f13-a3c5-4b9c-8609-5639c37cdc2d",
"topic": null,
"seed": "2450882164",
"sound": "A song for Christmas",
"created_at": "2025-12-30T17:18:23.232911Z",
"model": "FUZZ-2.0 Pro",
"progress": "100%",
"state": "succeeded",
"duration": "181.3014058956916"
}
]
}
El resultado devuelto contiene varios campos, que se describen a continuación:
success, el estado de la tarea de generación de música.data, el resultado de esta tarea de música.id, el ID de la tarea de generación de música.sound, la indicación de la tarea de generación de música.seed, el valor de semilla de la tarea de generación de música.audio_url, el enlace de audio de la tarea de generación de música.image_url, el enlace de la portada de la tarea de generación de música.image_id, el ID de la portada de la tarea de generación de música.state, el estado de la tarea de generación de música.duration, la información de duración de la música.progress, el valor de progreso de la tarea de música.model, la información del modelo utilizado para la tarea de generación de música.lyric, la información de la letra de la tarea de generación de música.
Como puede verse, hemos obtenido la información de la música que queríamos generar; solo tenemos que utilizar la dirección del enlace de música en data del resultado para obtener la música de Producer generada.
Además, si desea generar el código de integración correspondiente, puede copiar directamente el código generado; por ejemplo, el código CURL es el siguiente:
curl -X POST 'https://api.01ai.cloud/producer/audios' \
-H 'accept: application/json' \
-H 'authorization: Bearer {token}' \
-H 'content-type: application/json' \
-d '{
"action": "generate",
"model": "FUZZ-2.0 Pro",
"prompt": "A song for Christmas"
}'
¶ Generación personalizada
Si desea generar música con una letra personalizada, puede introducir la letra:
En este momento, el campo lyric puede recibir contenido similar al siguiente:
[Verse]Woke up with the sun in my eyesNo clouds above just blue in the skiesShoes on my feet I’m ready to runEvery step feels like a loaded gun[Chorus]Happy days are rolling inLet the joy beneath my skinNo more shadows no more liesJust the truth that lifts me high[Verse 2]Dancing through the city streetsA rhythm pounding in my heartbeatStrangers smile it’s catching onThis world’s a stage we’re all a song[Chorus]Happy days are rolling inLet the joy beneath my skinNo more shadows no more liesJust the truth that lifts me high[Bridge]Throw your worries out the doorLet them sink to the ocean floorWe’re alive and it’s enoughLife is messy but it’s love[Chorus]Happy days are rolling inLet the joy beneath my skinNo more shadows no more liesJust the truth that lifts me high
A continuación, para generar una canción personalizada según la letra, el título y el estilo, podemos especificar lo siguiente:
- lyric: texto de la letra
- custom: establecer en
true, que indica una generación personalizada; este parámetro es false de forma predeterminada, lo que indica que se utilizapromptpara generar la canción. - title: título de la canción.
Un ejemplo de los campos completados es el siguiente:

Una vez completados los campos, se genera automáticamente el siguiente código:

El código correspondiente:
curl -X POST 'https://api.01ai.cloud/producer/audios' \
-H 'accept: application/json' \
-H 'authorization: Bearer {token}' \
-H 'content-type: application/json' \
-d '{
"action": "generate",
"model": "FUZZ-2.0 Pro",
"instrumental": false,
"lyric": "[Verse]\nWoke up with the sun in my eyes\nNo clouds above just blue in the skies\nShoes on my feet I’m ready to run\nEvery step feels like a loaded gun\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high\n[Verse 2]\nDancing through the city streets\nA rhythm pounding in my heartbeat\nStrangers smile it’s catching on\nThis world’s a stage we’re all a song\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high\n[Bridge]\nThrow your worries out the door\nLet them sink to the ocean floor\nWe’re alive and it’s enough\nLife is messy but it’s love\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high",
"custom": true
}'
Al realizar la prueba, el resultado generado es similar.
{
"success": true,
"task_id": "9f58bbd4-855a-4233-ac45-b63bf9168e02",
"trace_id": "145ad117-6ce7-42dd-af12-70751c5284fc",
"data": [
{
"id": "38d3b9e2-0dfb-4338-b2a7-15e45656ed32",
"title": "Woke up with the sun in my eyes",
"image_url": "https://cdn.acedata.cloud/e724d7f13d.png",
"lyric": "[Verse]\nWoke up with the sun in my eyes\nNo clouds above just blue in the skies\nShoes on my feet I’m ready to run\nEvery step feels like a loaded gun\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high\n[Verse 2]\nDancing through the city streets\nA rhythm pounding in my heartbeat\nStrangers smile it’s catching on\nThis world’s a stage we’re all a song\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high\n[Bridge]\nThrow your worries out the door\nLet them sink to the ocean floor\nWe’re alive and it’s enough\nLife is messy but it’s love\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high",
"audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
"video_url": null,
"image_id": "38d3b9e2-0dfb-4338-b2a7-15e45656ed32",
"topic": null,
"seed": "3789209121",
"sound": "",
"created_at": "2025-12-30T17:26:46.357055Z",
"model": "FUZZ-2.0 Pro",
"progress": "100%",
"state": "succeeded",
"duration": "153.80897959183673"
}
]
}
¶ Versionar canciones
Si se desea versionar una canción ya generada, se puede introducir la canción generada anteriormente para hacer una versión; a continuación, vamos a generar una canción personalizada según la letra y el título.
Si se desea versionar una canción subida por el usuario, se puede establecer el parámetro action en upload_cover e introducir el ID de la canción subida que se desea versionar; el ID de la canción se obtiene mediante la API de carga de Producer, como se muestra en la siguiente imagen:

Se puede especificar lo siguiente:
- action: acción de la tarea de canción; actualmente se admiten: generate, cover, extend, upload_cover, upload_extend, replace_section, swap_vocals, swap_instrumentals, variation; para esta versión se utiliza el parámetro
cover. - lyric: texto de la letra
- title: título de la canción.
- custom: indica si se utiliza el modo personalizado para generar la canción; el valor predeterminado es false.
- audio_id: ID de la canción que se desea versionar.
Un ejemplo de los campos completados es el siguiente:

Una vez completados los campos, se genera automáticamente el siguiente código:

El código correspondiente:
curl -X POST 'https://api.01ai.cloud/producer/audios' \
-H 'accept: application/json' \
-H 'authorization: Bearer {token}' \
-H 'content-type: application/json' \
-d '{
"action": "cover",
"model": "FUZZ-2.0 Pro",
"lyric": "[Verse]\nWoke up with the sun in my eyes\nNo clouds above just blue in the skies\nShoes on my feet I’m ready to run\nEvery step feels like a loaded gun\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high\n[Verse 2]\nDancing through the city streets\nA rhythm pounding in my heartbeat\nStrangers smile it’s catching on\nThis world’s a stage we’re all a song\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high\n[Bridge]\nThrow your worries out the door\nLet them sink to the ocean floor\nWe’re alive and it’s enough\nLife is messy but it’s love\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high",
"audio_id": "38d3b9e2-0dfb-4338-b2a7-15e45656ed32",
"instrumental": false,
"custom": true,
"title": "Cover"
}'
La prueba está permitida, el resultado generado es similar.
{
"success": true,
"task_id": "dbca350e-6fb9-46ca-9c7e-4c1a9080806f",
"trace_id": "a39e0fff-ced8-4b31-ae23-aef3badd90fa",
"data": [
{
"id": "e52dd729-38b4-4c2f-9031-59eb7953c593",
"title": "Cover",
"image_url": "https://cdn.acedata.cloud/e724d7f13d.png",
"lyric": "[Verse]\nWoke up with the sun in my eyes\nNo clouds above just blue in the skies\nShoes on my feet I’m ready to run\nEvery step feels like a loaded gun\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high\n[Verse 2]\nDancing through the city streets\nA rhythm pounding in my heartbeat\nStrangers smile it’s catching on\nThis world’s a stage we’re all a song\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high\n[Bridge]\nThrow your worries out the door\nLet them sink to the ocean floor\nWe’re alive and it’s enough\nLife is messy but it’s love\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high",
"audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
"video_url": null,
"image_id": "e52dd729-38b4-4c2f-9031-59eb7953c593",
"topic": null,
"seed": "358803418",
"sound": "",
"created_at": "2025-12-30T17:32:32.951948Z",
"model": "FUZZ-2.0 Pro",
"progress": "100%",
"state": "succeeded",
"duration": "153.0659410430839"
}
]
}
¶ Continuar una canción
Si queremos continuar una canción, debemos pasar el valor extend para el parámetro action; a continuación, debemos generar la canción de forma personalizada según la letra, el título y el estilo.
Si queremos continuar una canción que hemos subido, podemos establecer el parámetro action en upload_extend e introducir el ID de la canción personalizada subida que queremos continuar; el ID de la canción se obtiene mediante la API de carga de Producer, como se muestra en la siguiente imagen:

Un ejemplo de cómo rellenarlo es el siguiente:

Una vez rellenado, se genera automáticamente el siguiente código:

Código correspondiente:
curl -X POST 'https://api.01ai.cloud/producer/audios' \
-H 'accept: application/json' \
-H 'authorization: Bearer {token}' \
-H 'content-type: application/json' \
-d '{
"action": "extend",
"model": "FUZZ-2.0 Pro",
"instrumental": false,
"lyric": "[Verse]\nWoke up with the sun in my eyes\nNo clouds above just blue in the skies\nShoes on my feet I’m ready to run\nEvery step feels like a loaded gun\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high\n[Verse 2]\nDancing through the city streets\nA rhythm pounding in my heartbeat\nStrangers smile it’s catching on\nThis world’s a stage we’re all a song\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high\n[Bridge]\nThrow your worries out the door\nLet them sink to the ocean floor\nWe’re alive and it’s enough\nLife is messy but it’s love\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high",
"continue_at": 3,
"audio_id": "38d3b9e2-0dfb-4338-b2a7-15e45656ed32",
"custom": true,
"title": "Extend",
"weirdness": 0.3,
"sound_strength": 0.3,
"lyrics_strength": 0.6
}'
La prueba está permitida, el resultado generado es similar.
{
"success": true,
"task_id": "834983cb-d62d-4750-b1aa-461da137e51f",
"trace_id": "6923eee2-7403-432c-8bd1-e471086385b0",
"data": [
{
"id": "d9ebc609-fb65-4a23-b914-c074747af6a4",
"title": "Extend",
"image_url": "https://cdn.acedata.cloud/e724d7f13d.png",
"lyric": "[Verse]\n[Verse]\nWoke up with the sun in my eyes\nNo clouds above just blue in the skies\nShoes on my feet I’m ready to run\nEvery step feels like a loaded gun\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high\n[Verse 2]\nDancing through the city streets\nA rhythm pounding in my heartbeat\nStrangers smile it’s catching on\nThis world’s a stage we’re all a song\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high\n[Bridge]\nThrow your worries out the door\nLet them sink to the ocean floor\nWe’re alive and it’s enough\nLife is messy but it’s love\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high",
"audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
"video_url": null,
"image_id": "d9ebc609-fb65-4a23-b914-c074747af6a4",
"topic": null,
"seed": "4294469624",
"sound": "",
"created_at": "2025-12-30T17:36:14.520928Z",
"model": "FUZZ-2.0 Pro",
"progress": "100%",
"state": "succeeded",
"duration": "173.87102040816328"
}
]
}
¶ Variación musical
Si queremos generar una nueva pieza musical con un efecto similar a partir del valor seed de la pieza anterior, debemos pasar el valor variation para el parámetro action; a continuación, podemos generar de forma personalizada una nueva pieza musical con un efecto similar.
Un ejemplo de cómo rellenarlo es el siguiente:

Una vez rellenado, se genera automáticamente el siguiente código:

Código correspondiente:
curl -X POST 'https://api.01ai.cloud/producer/audios' \
-H 'accept: application/json' \
-H 'authorization: Bearer {token}' \
-H 'content-type: application/json' \
-d '{
"action": "variation",
"audio_id": "d9ebc609-fb65-4a23-b914-c074747af6a4",
"model": "FUZZ-2.0 Pro",
"instrumental": false,
"lyric": "[Verse]\nWoke up with the sun in my eyes\nNo clouds above just blue in the skies\nShoes on my feet I’m ready to run\nEvery step feels like a loaded gun\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high\n[Verse 2]\nDancing through the city streets\nA rhythm pounding in my heartbeat\nStrangers smile it’s catching on\nThis world’s a stage we’re all a song\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high\n[Bridge]\nThrow your worries out the door\nLet them sink to the ocean floor\nWe’re alive and it’s enough\nLife is messy but it’s love\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high",
"custom": true
}'
La prueba está permitida y el resultado generado es similar.
{
"success": true,
"task_id": "3a74da6d-a37d-4b5d-b116-821f455bce39",
"trace_id": "8e28cce0-0400-4bfd-83db-6d27f97422c7",
"data": [
{
"id": "c14ca458-cd5a-4700-83d4-5249e15f2707",
"title": "Woke up with the sun in my eyes",
"image_url": "https://cdn.acedata.cloud/e724d7f13d.png",
"lyric": "[Verse]\nWoke up with the sun in my eyes\nNo clouds above just blue in the skies\nShoes on my feet I’m ready to run\nEvery step feels like a loaded gun\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high\n[Verse 2]\nDancing through the city streets\nA rhythm pounding in my heartbeat\nStrangers smile it’s catching on\nThis world’s a stage we’re all a song\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high\n[Bridge]\nThrow your worries out the door\nLet them sink to the ocean floor\nWe’re alive and it’s enough\nLife is messy but it’s love\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high",
"audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
"video_url": null,
"image_id": "c14ca458-cd5a-4700-83d4-5249e15f2707",
"topic": null,
"seed": "2082104582",
"sound": "",
"created_at": "2025-12-30T17:48:40.135187Z",
"model": "FUZZ-2.0",
"progress": "100%",
"state": "succeeded",
"duration": "173.12798185941043"
}
]
}
¶ Reemplazar un fragmento
Si queremos reemplazar un fragmento de una canción, debemos pasar el parámetro action con el valor replace_section; a continuación, debemos generar la canción de forma personalizada según la letra y el título.
Si queremos seguir reemplazando fragmentos de una canción que hemos subido, podemos establecer el parámetro action en upload_replace_section e introducir el ID de la canción personalizada subida que deseamos seguir modificando. El ID de la canción se obtiene mediante la API de carga de Producer, como se muestra en la siguiente imagen:

Un ejemplo de cómo completar los campos es el siguiente:

Una vez completados los campos, se genera automáticamente el siguiente código:

El código correspondiente:
curl -X POST 'https://api.01ai.cloud/producer/audios' \
-H 'accept: application/json' \
-H 'authorization: Bearer {token}' \
-H 'content-type: application/json' \
-d '{
"action": "replace_section",
"model": "FUZZ-2.0 Pro",
"instrumental": false,
"lyric": "[Verse]\\nWoke up with the sun in my eyes\\nNo clouds above just blue in the skies\\nShoes on my feet I’m ready to run\\nEvery step feels like a loaded gun\\n[Chorus]\\nHappy days are rolling in\\nLet the joy beneath my skin\\nNo more shadows no more lies\\nJust the truth that lifts me high\\n[Verse 2]\\nDancing through the city streets\\nA rhythm pounding in my heartbeat\\nStrangers smile it’s catching on\\nThis world’s a stage we’re all a song\\n[Chorus]\\nHappy days are rolling in\\nLet the joy beneath my skin\\nNo more shadows no more lies\\nJust the truth that lifts me high\\n[Bridge]\\nThrow your worries out the door\\nLet them sink to the ocean floor\\nWe’re alive and it’s enough\\nLife is messy but it’s love\\n[Chorus]\\nHappy days are rolling in\\nLet the joy beneath my skin\\nNo more shadows no more lies\\nJust the truth that lifts me high",
"audio_id": "d9ebc609-fb65-4a23-b914-c074747af6a4",
"replace_section_start": 3,
"replace_section_end": 70,
"custom": true
}'
La prueba está permitida y el resultado generado es similar.
{
"success": true,
"task_id": "3cb5ae96-01b0-4a37-afb0-e582608af56f",
"trace_id": "3ebc6f63-5093-4499-bf9b-95c239e0da4f",
"data": [
{
"id": "a54609c6-13e2-4176-be0f-4d7eebc68e1f",
"title": "Woke up with the sun in my eyes",
"image_url": "https://cdn.acedata.cloud/e724d7f13d.png",
"lyric": "[Verse]\\nWoke up with the sun in my eyes\\nNo clouds above just blue in the skies\\nShoes on my feet I’m ready to run\\nEvery step feels like a loaded gun\\n[Chorus]\\nHappy days are rolling in\\nLet the joy beneath my skin\\nNo more shadows no more lies\\nJust the truth that lifts me high\\n[Verse 2]\\nDancing through the city streets\\nA rhythm pounding in my heartbeat\\nStrangers smile it’s catching on\\nThis world’s a stage we’re all a song\\n[Chorus]\\nHappy days are rolling in\\nLet the joy beneath my skin\\nNo more shadows no more lies\\nJust the truth that lifts me high\\n[Bridge]\\nThrow your worries out the door\\nLet them sink to the ocean floor\\nWe’re alive and it’s enough\\nLife is messy but it’s love\\n[Chorus]\\nHappy days are rolling in\\nLet the joy beneath my skin\\nNo more shadows no more lies\\nJust the truth that lifts me high",
"audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
"video_url": null,
"image_id": "a54609c6-13e2-4176-be0f-4d7eebc68e1f",
"topic": null,
"seed": "14887454",
"sound": "",
"created_at": "2025-12-30T18:01:19.907443Z",
"model": "FUZZ-2.0 Pro",
"progress": "100%",
"state": "succeeded",
"duration": "174.6140589569161"
}
]
}
¶ Versión del acompañamiento
Si quieres utilizar la operación oficial de versión del acompañamiento, puedes establecer el valor del parámetro action en: swap_instrumentals. A continuación, vamos a generar una canción personalizada según la letra y el título.
El ejemplo de cumplimentación es el siguiente:

Una vez completado, se genera automáticamente el siguiente código:

El código correspondiente:
curl -X POST 'https://api.01ai.cloud/producer/audios' \
-H 'accept: application/json' \
-H 'authorization: Bearer {token}' \
-H 'content-type: application/json' \
-d '{
"action": "swap_instrumentals",
"model": "FUZZ-2.0 Pro",
"weirdness": 0.6,
"prompt": "Happy",
"audio_id": "d9ebc609-fb65-4a23-b914-c074747af6a4"
}'
La prueba lo permite y el resultado generado es similar.
{
"success": true,
"task_id": "d17d8376-3a58-451d-a976-404719bac11d",
"trace_id": "ab596807-910a-4e30-bae2-4647895f7d0b",
"data": [
{
"id": "22d7d75c-9e0a-47a8-b22b-eea55eaa0c4b",
"title": "Extend (Sound swap)",
"image_url": "https://cdn.acedata.cloud/e724d7f13d.png",
"lyric": "[Verse]\nWoke up with the sun in my eyes\nNo clouds above just blue in the skies\nShoes on my feet I’m ready to run\nEvery step feels like a loaded gun\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high\n[Verse 2]\nDancing through the city streets\nA rhythm pounding in my heartbeat\nStrangers smile it’s catching on\nThis world’s a stage we’re all a song\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high\n[Bridge]\nThrow your worries out the door\nLet them sink to the ocean floor\nWe’re alive and it’s enough\nLife is messy but it’s love\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high",
"audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
"video_url": null,
"image_id": "22d7d75c-9e0a-47a8-b22b-eea55eaa0c4b",
"topic": null,
"seed": "2157878068",
"sound": "Happy",
"created_at": "2025-12-30T18:09:49.594800Z",
"model": "FUZZ-2.0 Pro",
"progress": "100%",
"state": "succeeded",
"duration": "172.3849433106576"
}
]
}
¶ Versión de la voz
Si quieres utilizar la operación oficial de versión de la voz, puedes establecer el valor del parámetro action en: swap_vocals. A continuación, vamos a generar una canción personalizada según la letra, el título y el estilo.
El ejemplo de cumplimentación es el siguiente:

Una vez completado, se genera automáticamente el siguiente código:

El código correspondiente:
curl -X POST 'https://api.01ai.cloud/producer/audios' \
-H 'accept: application/json' \
-H 'authorization: Bearer {token}' \
-H 'content-type: application/json' \
-d '{
"action": "swap_vocals",
"model": "FUZZ-2.0 Pro",
"instrumental": false,
"lyric": "[Verse]\nWoke up with the sun in my eyes\nNo clouds above just blue in the skies\nShoes on my feet I’m ready to run\nEvery step feels like a loaded gun\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high\n[Verse 2]\nDancing through the city streets\nA rhythm pounding in my heartbeat\nStrangers smile it’s catching on\nThis world’s a stage we’re all a song\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high\n[Bridge]\nThrow your worries out the door\nLet them sink to the ocean floor\nWe’re alive and it’s enough\nLife is messy but it’s love\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high",
"weirdness": 0.6,
"lyrics_strength": 0.8,
"audio_id": "d9ebc609-fb65-4a23-b914-c074747af6a4",
"custom": true
}'
La prueba lo permite y el resultado generado es similar.
{
"success": true,
"task_id": "a903ac38-f129-4f85-9181-b1dc5579bd32",
"trace_id": "9953af52-45e0-4808-bf13-88f0b21262c1",
"data": [
{
"id": "7b2d653b-aaaa-41b0-b737-aee4c4c5693b",
"title": "Woke up with the sun in my eyes",
"image_url": "https://cdn.acedata.cloud/e724d7f13d.png",
"lyric": "[Verse]\nWoke up with the sun in my eyes\nNo clouds above just blue in the skies\nShoes on my feet I’m ready to run\nEvery step feels like a loaded gun\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high\n[Verse 2]\nDancing through the city streets\nA rhythm pounding in my heartbeat\nStrangers smile it’s catching on\nThis world’s a stage we’re all a song\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high\n[Bridge]\nThrow your worries out the door\nLet them sink to the ocean floor\nWe’re alive and it’s enough\nLife is messy but it’s love\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high",
"audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
"video_url": null,
"image_id": "7b2d653b-aaaa-41b0-b737-aee4c4c5693b",
"topic": null,
"seed": "2484735707",
"sound": "",
"created_at": "2025-12-30T18:13:01.349875Z",
"model": "FUZZ-2.0 Pro",
"progress": "100%",
"state": "succeeded",
"duration": "173.12798185941043"
}
]
}
¶ Separación de voz e instrumentos
Si desea utilizar la operación oficial de separación de voz e instrumentos, puede establecer el valor del parámetro action en stems. A continuación, separaremos la voz y los instrumentos según el ID de la canción.
Ejemplo de cómo rellenarlo:

Una vez completado, se genera automáticamente el siguiente código:

El código correspondiente:
curl -X POST 'https://api.01ai.cloud/producer/audios' \
-H 'accept: application/json' \
-H 'authorization: Bearer {token}' \
-H 'content-type: application/json' \
-d '{
"action": "stems",
"audio_id": "a54609c6-13e2-4176-be0f-4d7eebc68e1f"
}'
Al ejecutar la prueba, el resultado generado es similar.
{
"success": true,
"task_id": "561ac695-b4aa-47cf-978d-fb7be2b9ebfc",
"trace_id": "66d0d397-2987-4bde-84fb-a60d0023b217",
"data": [
{
"title": "Woke up with the sun in my eyes",
"lyric": "",
"stems_url": "https://platform.cdn.acedata.cloud/producer/561ac695-b4aa-47cf-978d-fb7be2b9ebfc.zip",
"model": "",
"progress": "100%",
"state": "succeeded"
}
]
}
¶ Callback asíncrono
Dado que la generación de Producer Audios Generation API puede tardar relativamente más en ocasiones, si la API no responde durante mucho tiempo, la solicitud HTTP mantendrá la conexión abierta, lo que provocará un consumo adicional de recursos del sistema. Por ello, esta API también ofrece compatibilidad con callbacks asíncronos.
El proceso general es el siguiente: cuando el cliente inicia una solicitud, especifica adicionalmente un campo callback_url. Después de que el cliente inicia la solicitud a la API, esta devuelve inmediatamente un resultado que contiene un campo task_id, que representa el ID de la tarea actual. Cuando la tarea finaliza, el resultado de la tarea de generación se envía mediante POST JSON a la callback_url especificada por el cliente, e incluye también el campo task_id, de modo que el resultado de la tarea puede asociarse mediante el ID.
A continuación, veremos un ejemplo para conocer cómo realizar esta operación.
En primer lugar, el callback de Webhook es un servicio que puede recibir solicitudes HTTP; el desarrollador debe sustituirlo por la URL de su propio servidor HTTP. Para facilitar la demostración, aquí utilizamos un sitio web público de ejemplo de Webhook, https://webhook.site/. Al abrir el sitio web, se obtiene una URL de Webhook, como se muestra en la imagen:

Al copiar esta URL, se puede utilizar como Webhook. El ejemplo aquí es https://webhook.site/#!/view/0d73431d-f833-4be4-9276-b6e1690d55c1.
A continuación, podemos establecer el campo callback_url con la URL de Webhook anterior y, al mismo tiempo, introducir los parámetros correspondientes. El contenido concreto se muestra en la imagen:

Al hacer clic en ejecutar, se puede observar que se obtiene inmediatamente un resultado, como se muestra a continuación:
{
"task_id": "1a6ac2ad-10f2-4e2b-b500-66ec27fe82ad"
}
Después de esperar un momento, podemos observar el resultado de la tarea de generación en https://webhook.site/#!/view/0d73431d-f833-4be4-9276-b6e1690d55c1, como se muestra en la imagen:

El contenido es el siguiente:
{
"success": true,
"task_id": "1a6ac2ad-10f2-4e2b-b500-66ec27fe82ad",
"trace_id": "1da03537-4eb8-410d-b849-43f03085a3bb",
"data": [
{
"id": "1dd08826-478e-43a6-868f-aff5ababac2c",
"title": "Woke up with the sun in my eyes",
"image_url": "https://cdn.acedata.cloud/e724d7f13d.png",
"lyric": "[Verse]\nWoke up with the sun in my eyes\nNo clouds above just blue in the skies\nShoes on my feet I’m ready to run\nEvery step feels like a loaded gun\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high\n[Verse 2]\nDancing through the city streets\nA rhythm pounding in my heartbeat\nStrangers smile it’s catching on\nThis world’s a stage we’re all a song\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high\n[Bridge]\nThrow your worries out the door\nLet them sink to the ocean floor\nWe’re alive and it’s enough\nLife is messy but it’s love\n[Chorus]\nHappy days are rolling in\nLet the joy beneath my skin\nNo more shadows no more lies\nJust the truth that lifts me high",
"audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
"video_url": null,
"image_id": "1dd08826-478e-43a6-868f-aff5ababac2c",
"topic": null,
"seed": "1490770667",
"sound": "",
"created_at": "2025-12-30T18:36:00.994141Z",
"model": "FUZZ-2.0 Pro",
"progress": "100%",
"state": "succeeded",
"duration": "135.2330158730159"
}
]
}
Se puede ver que el resultado contiene un campo task_id; los demás campos son similares a los anteriores, y mediante este campo se pueden vincular las tareas.
¶ Gestión de errores
Al llamar a la API, si se produce un error, la API devolverá el código y la información de error correspondientes. Por ejemplo:
400 token_mismatched:Solicitud incorrecta, posiblemente debido a parámetros ausentes o no válidos.400 api_not_implemented:Solicitud incorrecta, posiblemente debido a parámetros ausentes o no válidos.401 invalid_token:No autorizado, token de autorización no válido o ausente.429 too_many_requests:Demasiadas solicitudes, ha superado el límite de solicitudes.500 api_error:Error interno del servidor, algo salió mal en el servidor.
¶ Ejemplo de respuesta de error
{
"success": false,
"error": {
"code": "api_error",
"message": "fetch failed"
},
"trace_id": "2cf86e86-22a4-46e1-ac2f-032c0f2a4e89"
}
¶ Conclusión
A través de este documento, ha aprendido a utilizar Producer Audios Generation API para generar música mediante la introducción de indicaciones. Esperamos que este documento le ayude a integrar y utilizar mejor esta API. Si tiene alguna pregunta, no dude en ponerse en contacto con nuestro equipo de soporte técnico.

