AnyInt Docs
API Reference

AI Music API

Suno-compatible music routes for song generation, audio transforms, task polling, and webhook-based completion.

AI Music routes are Suno-compatible asset-generation APIs. They are not chat-completion endpoints. Most routes create asynchronous tasks, return a taskId, and complete through polling or webhook callbacks.

Base URL and auth

https://gateway.api.anyint.ai
Authorization: Bearer <ANYINT_API_KEY>
Content-Type: application/json

Creation routes

RoutePurpose
POST /suno/generateCreate a new song
POST /suno/extendExtend an existing generated song
POST /suno/generate-lyricsGenerate lyrics from a prompt
POST /suno/timestamped-lyricsFetch aligned word timings for a completed song
POST /suno/style-generateExpand a rough style hint into richer style text
POST /suno/generate-coverGenerate cover art for a completed music task

Transform and export routes

RoutePurpose
POST /suno/upload-coverUpload audio and create an AI cover
POST /suno/upload-extendUpload audio and continue it
POST /suno/add-vocalsAdd vocals to an instrumental
POST /suno/add-instrumentalAdd accompaniment to vocals
POST /suno/generate-personaCreate a reusable voice identity from a completed song
POST /suno/vocal-removalSplit vocals and accompaniment or produce multitrack stems
POST /suno/split-stemSplit stems from an existing audio result
POST /suno/replace-sectionReplace a section of an existing audio result
POST /suno/wav-generateExport a completed song as WAV
POST /suno/mp4-generateCreate a music video from a completed song

Query routes

RoutePurpose
GET /suno/query/task?taskId={taskId}Song generation and cover tasks
GET /suno/query/lyrics?taskId={taskId}Lyrics tasks
GET /suno/query/vocal-removal?taskId={taskId}Stem or vocal-removal tasks
GET /suno/query/wav?taskId={taskId}WAV conversion tasks
GET /suno/query/mp4?taskId={taskId}MV generation tasks
GET /suno/query/cover?taskId={taskId}Cover-art tasks

Generate a song

curl -X POST "https://gateway.api.anyint.ai/suno/generate" \
  -H "Authorization: Bearer $ANYINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "customMode": false,
    "instrumental": false,
    "model": "V5",
    "prompt": "A bright summer pop song about travel and freedom",
    "callBackUrl": "https://your-domain.com/callback"
  }'

Key fields:

FieldTypeRequiredMeaningExample
customModebooleanYesfalse for simple prompt mode; true when you provide custom lyrics, style, and title.false
instrumentalbooleanYestrue for instrumental music; false for vocals.false
modelstringYesMusic model version. Supported values can change by account.V5
callBackUrlstringYesPublic HTTPS callback URL for task completion events. Keep polling as a fallback.https://your-domain.com/callback
promptstringConditionalIn simple mode, a song description. In custom mode, lyric text.A bright summer pop song...
stylestringConditionalRequired in custom mode; describes genre, mood, vocals, and instrumentation.pop, upbeat, female vocal
titlestringConditionalRequired in custom mode; song title.Summer Roads
personaIdstringNoReuse a saved voice persona when your account and model support it.persona_123

Transform request fields

RouteImportant fieldsMeaning
POST /suno/extendtaskId, audioId, prompt, continueAt, callBackUrlContinue or extend an existing generated song.
POST /suno/upload-coveruploadUrl or uploaded audio reference, style, title, callBackUrlCreate an AI cover from uploaded audio.
POST /suno/upload-extenduploaded audio reference, prompt, continueAt, callBackUrlContinue an uploaded audio clip.
POST /suno/add-vocalssource task or audio reference, vocal prompt fields, callBackUrlAdd vocals to an instrumental.
POST /suno/add-instrumentalsource task or audio reference, style fields, callBackUrlAdd accompaniment to vocals.
POST /suno/vocal-removalsource task or audio reference, callBackUrlSplit vocals and accompaniment or produce stems.
POST /suno/split-stemsource task or audio reference, callBackUrlSplit stems from an existing result when supported by the account.
POST /suno/replace-sectionsource task or audio reference, section timing fields, replacement prompt fields, callBackUrlReplace a section of an existing track when supported by the account.
POST /suno/wav-generatesource task or audio ID, callBackUrlExport a completed song as WAV.
POST /suno/mp4-generatesource task or audio ID, callBackUrlCreate a music video from a completed song.

Exact transform fields can vary by workflow. Use the route-specific example from the product page when available and verify the selected workflow in your account before production.

Task states

StatusMeaning
PENDINGqueued
TEXT_SUCCESStext or lyric stage completed
FIRST_SUCCESSfirst audio finished
SUCCESSfull job completed
CREATE_TASK_FAILEDtask creation failed
GENERATE_AUDIO_FAILEDgeneration failed

Webhook callbacks

All async music routes can call your callBackUrl.

callbackTypeMeaning
texttext or lyric stage completed
firstfirst audio result is ready
completefull workflow completed

Callback handling requirements

RequirementGuidance
Public HTTPS URLThe callback URL must be reachable from AnyInt.
IdempotencyStore taskId and ignore duplicate callbacks safely.
Fast responseReturn quickly and move heavy media processing to a queue.
Polling fallbackKeep polling the query route if a callback is delayed.
Ownership checkConfirm the callback task ID belongs to a task your application created.

Error codes

CodeMeaning
400invalid parameters
401authentication failed
405frequency limit exceeded
413text too long
429quota exhausted
430request rate too high
455system maintenance
500server error

On this page