# AI Music API ## Docs - [Introduction](https://docs.aimusicapi.ai/doc-2058743.md): - [Credits Usage Guide](https://docs.aimusicapi.ai/doc-2058744.md): - [AI Music API FAQ & Troubleshooting](https://docs.aimusicapi.ai/doc-2058745.md): - [Special Scenarios](https://docs.aimusicapi.ai/doc-2058746.md): - [Error handling](https://docs.aimusicapi.ai/doc-2058747.md): - [Webhook Integration Guide](https://docs.aimusicapi.ai/doc-2058748.md): - sonic [Sonic Instructions](https://docs.aimusicapi.ai/doc-2058749.md): - riffusion(Deprecated) [Riffusion instructions](https://docs.aimusicapi.ai/doc-2058750.md): - producer [Producer Instructions](https://docs.aimusicapi.ai/doc-2058751.md): - producer [Complete Request Example](https://docs.aimusicapi.ai/doc-2058752.md): - nuro [Nuro Instruction](https://docs.aimusicapi.ai/doc-2058753.md): - nuro [Error handling](https://docs.aimusicapi.ai/doc-2058754.md): ## API Docs - sonic [create / extend / cover music](https://docs.aimusicapi.ai/api-32136899.md): Unified endpoint for creating, extending, and covering music. The operation is determined by the `task_type` parameter. - sonic [upload and extend music](https://docs.aimusicapi.ai/api-32136900.md): One-stop API to upload an audio file and extend it with new content. This combines the upload and extend operations into a single request. - sonic [upload and cover music](https://docs.aimusicapi.ai/api-32136901.md): One-stop API to upload an audio file and create a cover version. This combines the upload and cover operations into a single request. - sonic [create persona(Unavailable)](https://docs.aimusicapi.ai/api-32136902.md): **Due to official restrictions, this is currently unavailable!** - sonic [sample](https://docs.aimusicapi.ai/api-32136903.md): Generate a complete song from a short audio sample or hummed melody. This endpoint uses a clip segment as inspiration to create a full-length track. - sonic [mashup](https://docs.aimusicapi.ai/api-32136904.md): Mix two existing songs together to create a new song. This endpoint combines elements from two source clips to generate a unique mashup. - sonic [get BPM](https://docs.aimusicapi.ai/api-32136905.md): Get the BPM (Beats Per Minute) information of a song. Returns average, maximum and minimum BPM values. - sonic [get VOX](https://docs.aimusicapi.ai/api-32136906.md): Extract vocal audio data from a song. You can optionally specify a time range (up to 30 seconds) to extract vocals from a specific portion. - sonic [get wav](https://docs.aimusicapi.ai/api-32136907.md): get wav url by song id - sonic [get midi](https://docs.aimusicapi.ai/api-32136908.md): Get the midi json data of the specified clip id, and the online url of the mid format we processed; - sonic [get lyrics timeline](https://docs.aimusicapi.ai/api-32136909.md): Get the lyric timeline for the specified clip_id. - sonic [upsample tags](https://docs.aimusicapi.ai/api-32136910.md): Enhance and expand music style tags using AI. This endpoint takes simple tags and returns more detailed, professional music style descriptions that can improve music generation quality. - sonic [concat music](https://docs.aimusicapi.ai/api-32136911.md): Get the complete song corresponding to the extend operation - sonic [stems basic](https://docs.aimusicapi.ai/api-32136912.md): You can convert songs generated by our platform into 2 tracks of vocals and instruments through this API. - sonic [stems full](https://docs.aimusicapi.ai/api-32136913.md): You can convert songs generated by our platform into 12 tracks of vocals and instruments through this API. - sonic [remaster](https://docs.aimusicapi.ai/api-32136914.md): Remaster the generated music, It is recommended to use clip id generated within 24 hours whenever possible. - sonic [replace section](https://docs.aimusicapi.ai/api-32136915.md): Replace a section of lyrics in an existing song to generate new music. The new lyrics should overlap with the original lyrics, and the timing should correspond appropriately. - sonic [add vocal](https://docs.aimusicapi.ai/api-32136916.md): Add vocals that match the original track to the music you've uploaded via our API by using custom parameters. Please note: this feature only works with tracks uploaded through our API.And the clip id must generated in 24h. - sonic [add instrumental](https://docs.aimusicapi.ai/api-32136917.md): Add instrumental that match the original track to the music you've uploaded via our API by using custom parameters. Please note: this feature only works with tracks uploaded through our API.And the clip id must generated in 24h. - sonic [upload music](https://docs.aimusicapi.ai/api-32136918.md): Upload local songs and get the clip id for subsequent operations. - sonic [create voice](https://docs.aimusicapi.ai/api-32136919.md): Create a custom voice persona from an audio file containing clear vocals. This is an async endpoint — submit the audio URL, receive a task_id, then poll for the result. - sonic [get music](https://docs.aimusicapi.ai/api-32136920.md): Use the obtained task ID to poll song data. Recommended polling interval: 15s-25s. - riffusion(Deprecated) [create music (with lyrics)](https://docs.aimusicapi.ai/api-32136921.md): - riffusion(Deprecated) [create music (with description)](https://docs.aimusicapi.ai/api-32136922.md): - riffusion(Deprecated) [cover music](https://docs.aimusicapi.ai/api-32136923.md): Generate a cover version of a song, support self-uploaded songs - riffusion(Deprecated) [extend music](https://docs.aimusicapi.ai/api-32136924.md): Generate an extended version of a song , support self-uploaded songs - riffusion(Deprecated) [replace music section](https://docs.aimusicapi.ai/api-32136925.md): Regenerate a specified area of ​​a song, support self-uploaded songs - riffusion(Deprecated) [swap music sound](https://docs.aimusicapi.ai/api-32136926.md): Reference documentation: https://www.riffusion.com/docs/create/stem-swaps, Describe the changes to the background music in the sound field, support self-uploaded songs - riffusion(Deprecated) [swap music vocals](https://docs.aimusicapi.ai/api-32136927.md): Reference documentation: https://www.riffusion.com/docs/create/stem-swaps, Describe the changes to the vocals in the sound field, support self-uploaded songs - riffusion(Deprecated) [upload](https://docs.aimusicapi.ai/api-32136928.md): Upload your own songs and get a clip id for subsequent operations - riffusion(Deprecated) [get music](https://docs.aimusicapi.ai/api-32136929.md): If the generation is complete, two songs will be returned. If you only receive one song, you can continue to poll. - producer [create music](https://docs.aimusicapi.ai/api-32136930.md): Create music with text prompt or custom lyrics. Each request generates one song. - producer [upload(Unavailable)](https://docs.aimusicapi.ai/api-32136931.md): Upload your music to producer and get the clip id, audio url and lyrics for subsequent replace/swap operations. - producer [download(Unavailable)](https://docs.aimusicapi.ai/api-32136932.md): Download music files in specified format (mp3/wav) by clip id. - producer [get music](https://docs.aimusicapi.ai/api-32136933.md): Query task status. If the generation is complete, the song data will be returned. - nuro [create vocal music](https://docs.aimusicapi.ai/api-32136934.md): - nuro [create instrument music](https://docs.aimusicapi.ai/api-32136935.md): - nuro [get music](https://docs.aimusicapi.ai/api-32136936.md): - lyrics generation [Make Lyrics](https://docs.aimusicapi.ai/api-32136937.md): The core API to generate your music lyrics. - [get-credits](https://docs.aimusicapi.ai/api-32136898.md): ## Schemas - [记录不存在](https://docs.aimusicapi.ai/schema-13945022.md): - [参数不正确](https://docs.aimusicapi.ai/schema-13945023.md):