Developer Docs/Suno Music API

Suno Music API

Build Suno Music integrations with A2E. Review authentication, request parameters, task creation, status, and result endpoints.

Overview

Build Suno Music integrations with A2E. Review authentication, request parameters, task creation, status, and result endpoints.

Primary Endpoint

POST/api/v1/suno/start

The operation catalog lists required fields and current prices. Every available operation costs at least 3 A2E coins, including Voice validation, regeneration and creation; check whether a Voice is ready from its voice_create task status. Cover art, Persona and audio recovery operations are temporarily unavailable. A paid operation charges the quoted price when accepted; a failed task is refunded. Poll the detail endpoint for completion. Failed tasks expose a sanitized failed_code (including UPSTREAM_TIMEOUT for recognized provider timeouts) and failed_message. The input object contains only fields allowed for the selected operation. To retry a failed voice_create task with its saved validation task and recording, send operation voice_create, retry_task_id set to your failed A2E task ID, and an empty input object. Once the failed task's refund is complete, retry charges the current voice_create price and the same A2E task returns to processing; its earlier charge and refund remain in your billing history. ### Request - Send a valid bearer token. The server evaluates the operation in the authenticated caller's access context. - Send an `application/json` body. Required fields: `operation`, `input`. - API-token callers may include `webhook_url` and `webhook_token` for best-effort terminal-state notifications; ordinary JWT/cookie calls ignore these fields. ### Behavior - This is an asynchronous operation: a successful submission creates a task and returns before processing finishes. - Persist the returned task identifier and use the corresponding detail or list operation to observe progress. - Treat the detail endpoint as the source of truth even when webhook delivery is enabled. ### Response - A `200` response confirms task acceptance; it does not by itself mean media generation has completed. - Retain the returned identifier and wait for a documented terminal status before using output URLs. - JSON object responses, including error responses, normally carry a top-level `trace_id` string for this request; include it when contacting support. It is not a task identifier. - Do not infer undocumented fields or statuses; clients should tolerate additional response properties. ### Errors - `401` — Unauthorized - Invalid or missing JWT token. - `422` — Invalid operation or input. Code 1003 means content moderation rejected the request because it involves a minor. ### Related Operations - `GET /api/v1/suno/allRecords` — List current user's Suno tasks. - `GET /api/v1/suno/{_id}` — Get one own Suno task. - `DELETE /api/v1/suno/{_id}` — Delete one own Suno task. Authentication: set header Authorization: Bearer <token> (supports user JWT or sk_ API token).

Request Parameters

NameTypeRequiredDescription
ai_sharing_consentobjectNoConsent receipt for newer native apps. Legacy native requests may omit this field and continue without a consent record. If present, null, malformed, expired or incomplete receipts return AI_SHARING_CONSENT_REQUIRED before generation. Valid receipts cover all actual AI recipients, including safety providers and intermediaries, and constrain later fallback. Content safety checks remain required for native requests. Web and legacy API behavior is unchanged. When supplied, receipts must include A2E, Alibaba Cloud, KIE and Suno.
ai_sharing_consent.versionenum: 2026-11-12Yes-
ai_sharing_consent.recipientsarray<string>Yes-
operationenum: generate | extend | sounds | lyrics | boost_style | upload_extend | upload_cover | mashup | add_vocals | add_instrumental | replace_section | separate_vocals | midi | timestamped_lyrics | wav | music_video | voice_validate | voice_regenerate | voice_createYes-
namestringNomaxLength: 120
retry_task_idstringNoYour failed voice_create A2E task ID. Only valid with voice_create and an empty input object. After the prior refund completes, a retry charges the current price and the same task returns to processing.
webhook_urlstringNo-
webhook_tokenstringNo-
inputobjectYesFields and requiredness vary by operation; GET /api/v1/suno/catalog is the authoritative runtime field list.
input.custom_modebooleanNo-
input.instrumentalbooleanNo-
input.modelenum: V6 | V6_MINI | V6_WILDNo-
input.promptstringNomaxLength: 12000
input.stylestringNomaxLength: 12000
input.titlestringNomaxLength: 12000
input.lyricsstringNomaxLength: 12000
input.negative_tagsstringNomaxLength: 12000
input.durationnumberNo-
input.image_urlsarray<string>NomaxItems: 10
input.audio_urlsarray<string>NoReference audio for generate; non-empty values require custom_mode=false. Invalid combinations return 422 before charging.; maxItems: 10
input.video_urlsarray<string>NomaxItems: 10
input.vocal_genderenum: m | fNo-
input.style_weightnumberNo-
input.weirdness_constraintnumberNo-
input.audio_weightnumberNo-
input.varietynumberNo-
input.persona_idstringNoA2E task ID (`_id`) of your own completed style Persona or Voice creation task.
input.persona_modelenum: style_persona | voice_personaNo-
input.source_task_idstringNoA2E task ID (`_id`) of your own completed source task.
input.audio_idstringNoTrack reference copied from the source task's `tracks[].id`.
input.continue_atnumberNo-
input.sound_loopbooleanNo-
input.sound_temponumberNo-
input.sound_keystringNo-
input.grab_lyricsbooleanNo-
input.contentstringNo-
input.upload_urlstringNo-
input.upload_url_listarray<string>NoExactly two HTTPS audio URLs to mash up; used only by the mashup operation.; minItems: 2; maxItems: 2
input.tagsstringNo-
input.infill_start_snumberNo-
input.infill_end_snumberNo-
input.full_lyricsstringNo-
input.audio_urlstringNo-
input.typeenum: separate_vocal | split_stem | split_stem_advancedNo-
input.stem_namestringNo-
input.authorstringNo-
input.domain_namestringNo-
input.namestringNo-
input.descriptionstringNo-
input.vocal_startnumberNo-
input.vocal_endnumberNo-
input.voice_urlstringNo-
input.vocal_start_snumberNo-
input.vocal_end_snumberNo-
input.languagestringNo-
input.verify_urlstringNo-
input.voice_namestringNo-
input.singer_skill_levelstringNo-
Request schema and conditional rules
{
  "allOf": [
    {
      "type": "object",
      "properties": {
        "ai_sharing_consent": {
          "type": "object",
          "description": "Consent receipt for newer native apps. Legacy native requests may omit this field and continue without a consent record. If present, null, malformed, expired or incomplete receipts return AI_SHARING_CONSENT_REQUIRED before generation. Valid receipts cover all actual AI recipients, including safety providers and intermediaries, and constrain later fallback. Content safety checks remain required for native requests. Web and legacy API behavior is unchanged. When supplied, receipts must include A2E, Alibaba Cloud, KIE and Suno.",
          "required": [
            "version",
            "recipients"
          ],
          "properties": {
            "version": {
              "type": "string",
              "enum": [
                "2026-11-12"
              ]
            },
            "recipients": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "example": [
                "A2E",
                "Alibaba Cloud",
                "KIE",
                "Suno"
              ]
            }
          }
        },
        "operation": {
          "type": "string",
          "enum": [
            "generate",
            "extend",
            "sounds",
            "lyrics",
            "boost_style",
            "upload_extend",
            "upload_cover",
            "mashup",
            "add_vocals",
            "add_instrumental",
            "replace_section",
            "separate_vocals",
            "midi",
            "timestamped_lyrics",
            "wav",
            "music_video",
            "voice_validate",
            "voice_regenerate",
            "voice_create"
          ]
        },
        "name": {
          "type": "string",
          "maxLength": 120
        },
        "retry_task_id": {
          "type": "string",
          "description": "Your failed voice_create A2E task ID. Only valid with voice_create and an empty input object. After the prior refund completes, a retry charges the current price and the same task returns to processing."
        },
        "webhook_url": {
          "type": "string",
          "format": "uri"
        },
        "webhook_token": {
          "type": "string"
        },
        "input": {
          "type": "object",
          "additionalProperties": false,
          "description": "Fields and requiredness vary by operation; GET /api/v1/suno/catalog is the authoritative runtime field list.",
          "properties": {
            "custom_mode": {
              "type": "boolean"
            },
            "instrumental": {
              "type": "boolean"
            },
            "model": {
              "type": "string",
              "enum": [
                "V6",
                "V6_MINI",
                "V6_WILD"
              ]
            },
            "prompt": {
              "type": "string",
              "maxLength": 12000
            },
            "style": {
              "type": "string",
              "maxLength": 12000
            },
            "title": {
              "type": "string",
              "maxLength": 12000
            },
            "lyrics": {
              "type": "string",
              "maxLength": 12000
            },
            "negative_tags": {
              "type": "string",
              "maxLength": 12000
            },
            "duration": {
              "type": "number"
            },
            "image_urls": {
              "type": "array",
              "maxItems": 10,
              "items": {
                "type": "string",
                "format": "uri"
              }
            },
            "audio_urls": {
              "type": "array",
              "maxItems": 10,
              "description": "Reference audio for generate; non-empty values require custom_mode=false. Invalid combinations return 422 before charging.",
              "items": {
                "type": "string",
                "format": "uri"
              }
            },
            "video_urls": {
              "type": "array",
              "maxItems": 10,
              "items": {
                "type": "string",
                "format": "uri"
              }
            },
            "vocal_gender": {
              "type": "string",
              "enum": [
                "m",
                "f"
              ]
            },
            "style_weight": {
              "type": "number"
            },
            "weirdness_constraint": {
              "type": "number"
            },
            "audio_weight": {
              "type": "number"
            },
            "variety": {
              "type": "number"
            },
            "persona_id": {
              "type": "string",
              "description": "A2E task ID (`_id`) of your own completed style Persona or Voice creation task."
            },
            "persona_model": {
              "type": "string",
              "enum": [
                "style_persona",
                "voice_persona"
              ]
            },
            "source_task_id": {
              "type": "string",
              "description": "A2E task ID (`_id`) of your own completed source task."
            },
            "audio_id": {
              "type": "string",
              "description": "Track reference copied from the source task's `tracks[].id`."
            },
            "continue_at": {
              "type": "number"
            },
            "sound_loop": {
              "type": "boolean"
            },
            "sound_tempo": {
              "type": "number"
            },
            "sound_key": {
              "type": "string"
            },
            "grab_lyrics": {
              "type": "boolean"
            },
            "content": {
              "type": "string"
            },
            "upload_url": {
              "type": "string",
              "format": "uri"
            },
            "upload_url_list": {
              "type": "array",
              "minItems": 2,
              "maxItems": 2,
              "description": "Exactly two HTTPS audio URLs to mash up; used only by the mashup operation.",
              "items": {
                "type": "string",
                "format": "uri"
              }
            },
            "tags": {
              "type": "string"
            },
            "infill_start_s": {
              "type": "number"
            },
            "infill_end_s": {
              "type": "number"
            },
            "full_lyrics": {
              "type": "string"
            },
            "audio_url": {
              "type": "string",
              "format": "uri"
            },
            "type": {
              "type": "string",
              "enum": [
                "separate_vocal",
                "split_stem",
                "split_stem_advanced"
              ]
            },
            "stem_name": {
              "type": "string"
            },
            "author": {
              "type": "string"
            },
            "domain_name": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "description": {
              "type": "string"
            },
            "vocal_start": {
              "type": "number"
            },
            "vocal_end": {
              "type": "number"
            },
            "voice_url": {
              "type": "string",
              "format": "uri"
            },
            "vocal_start_s": {
              "type": "number"
            },
            "vocal_end_s": {
              "type": "number"
            },
            "language": {
              "type": "string"
            },
            "verify_url": {
              "type": "string",
              "format": "uri"
            },
            "voice_name": {
              "type": "string"
            },
            "singer_skill_level": {
              "type": "string"
            }
          }
        }
      },
      "required": [
        "operation",
        "input"
      ]
    },
    {
      "$ref": "#/components/schemas/WebhookInput"
    }
  ]
}

Response Fields

code: integer
message: string
data: object
data._id: string
A2E task ID, usable as source_task_id or persona_id in a follow-up task
data.name: string
data.operation: string
data.input: object
Submitted text and option fields; media URLs and source references are omitted
data.current_status: enum: initialized | processing | completed | failed
data.is_previewed: boolean
data.source_available: boolean
Whether this task can be used as a follow-up source
data.used_for_voice: boolean
For voice validation phrase tasks in the voice list, whether a completed Voice already uses this phrase
data.tracks: array<object>
data.tracks[].id: string
Track reference for audio_id in a follow-up task; empty when the track cannot be reused
data.tracks[].title: string
data.tracks[].audio_url: string
data.tracks[].image_url: string
data.tracks[].video_url: string
data.tracks[].duration: number
Track duration in seconds
data.tracks[].lyrics: string
data.result: object
Text result of non-media operations: lyrics, styles, text, available, words or instruments
data.result_url: string
First stored media URL, empty until completed
data.cover_url: string
data.coins: number
Credits charged for this task
data.failed_code: enum: | TASK_FAILED | TASK_TIMEOUT | SUBMISSION_TIMEOUT | UPSTREAM_TIMEOUT | VOICE_VERIFICATION_FAILED
data.failed_message: string
data.failed_reason: string
Public failure reason, present only when the task failed
data.hasRefundCoin: boolean
true: refund recorded; false: explicitly not refunded; omitted: unknown
data.createdAt: string
data.updatedAt: string
data.remainingDays: integer
data.expirationDate: string
data.isExpired: boolean
data.expirationDays: integer
trace_id: string
Trace ID of this HTTP request. Include it when contacting support about this request. It is generated per request and is not a task identifier; use the returned task `_id` to query results.

Request Example

curl -X POST "https://www.a2e.com.cn/api/v1/suno/start" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operation": "generate",
  "input": {
    "prompt": "high quality, clear, cinematic"
  }
}'

Related Endpoints

Responses

200

Accepted task. The response contains A2E task and track references, transferred media URLs, and user-facing result content only. Lyrics use result.lyrics and style suggestions use result.styles.

401

Unauthorized - Invalid or missing bearer token

422

Invalid operation or input. Code 1003 means content moderation rejected the request because it involves a minor.