AI Music API
Home
Home
  1. producer
  • Introduction
  • Credits Usage Guide
  • AI Music API FAQ & Troubleshooting
  • Special Scenarios
  • Error handling
  • Webhook Integration Guide
  • sonic
    • Sonic Instructions
    • create / extend / cover music
      POST
    • upload and extend music
      POST
    • upload and cover music
      POST
    • create persona(Unavailable)
      POST
    • sample
      POST
    • mashup
      POST
    • get BPM
      POST
    • get VOX
      POST
    • get wav
      POST
    • get midi
      POST
    • get lyrics timeline
      POST
    • upsample tags
      POST
    • concat music
      POST
    • stems basic
      POST
    • stems full
      POST
    • remaster
      POST
    • replace section
      POST
    • add vocal
      POST
    • add instrumental
      POST
    • upload music
      POST
    • create voice
      POST
    • get music
      GET
  • riffusion(Deprecated)
    • Riffusion instructions
    • create music (with lyrics)
    • create music (with description)
    • cover music
    • extend music
    • replace music section
    • swap music sound
    • swap music vocals
    • upload
    • get music
  • producer
    • Producer Instructions
    • Complete Request Example
    • create music
      POST
    • upload
      POST
    • download
      POST
    • get task / poll result
      GET
  • nuro
    • Nuro Instruction
    • Error handling
    • create vocal music
    • create instrument music
    • get music
  • lyrics generation
    • Make Lyrics
  • get-credits
    GET
  • Schemas
    • 记录不存在
    • ExtendMusicRequest
    • ReplaceMusicRequest
    • 参数不正确
    • CreateTaskAccepted
    • ErrorResponse
  1. producer

create music

POST
https://api.aimusicapi.ai/api/v1/producer/create
Generate a music clip from a text prompt and/or lyrics. Each request creates one asynchronous task — the response contains a task_id you poll via GET /api/v1/producer/task/{task_id}.
Cost: 10 credits per call. Credits are auto-refunded if the task fails.
Active task types: Only create_music is supported on this endpoint. The legacy cover_music, cover_upload_music, extend_music, extend_upload_music, replace_music, replace_upload_music, swap_music_vocals, swap_upload_music_vocals, swap_music_sound, swap_upload_music_sound, and music_variation task types have been permanently retired and now return HTTP 410 Gone. The recommended replacement is to call create_music with a fresh prompt.
For lyrics generation, call POST /api/v1/producer/lyrics-create (1 credit). For music videos, call POST /api/v1/producer/video-clip (5 credits).

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Body Params application/jsonRequired

Examples
{
    "task_type": "create_music",
    "sound": "warm cinematic ambient pad with light percussion"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
cURL
curl --location --request POST 'https://api.aimusicapi.ai/api/v1/producer/create' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "task_type": "create_music",
    "sound": "warm cinematic ambient pad with light percussion"
}'

Responses

🟢200
application/json
Task accepted. Use the returned task_id to poll GET /api/v1/producer/task/{task_id}.
Body

Example
{
    "message": "success",
    "task_id": "6d7253ac-916e-49a8-b288-91ffa7f8a8cd"
}
🟠400
🟠401
🟠402
🟠410
🟠429
🔴500
🔴502
Modified at 2026-04-27 17:09:53
Previous
Complete Request Example
Next
upload
Built with