Overview
Build Suno Music integrations with A2E. Review authentication, request parameters, task creation, status, and result endpoints.
Primary Endpoint
/api/v1/suno/startThe 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
| Name | Type | Required | Description |
|---|---|---|---|
| ai_sharing_consent | object | No | 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. |
| ai_sharing_consent.version | enum: 2026-11-12 | Yes | - |
| ai_sharing_consent.recipients | array<string> | Yes | - |
| operation | 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 | Yes | - |
| name | string | No | maxLength: 120 |
| retry_task_id | string | No | 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 | string | No | - |
| webhook_token | string | No | - |
| input | object | Yes | Fields and requiredness vary by operation; GET /api/v1/suno/catalog is the authoritative runtime field list. |
| input.custom_mode | boolean | No | - |
| input.instrumental | boolean | No | - |
| input.model | enum: V6 | V6_MINI | V6_WILD | No | - |
| input.prompt | string | No | maxLength: 12000 |
| input.style | string | No | maxLength: 12000 |
| input.title | string | No | maxLength: 12000 |
| input.lyrics | string | No | maxLength: 12000 |
| input.negative_tags | string | No | maxLength: 12000 |
| input.duration | number | No | - |
| input.image_urls | array<string> | No | maxItems: 10 |
| input.audio_urls | array<string> | No | Reference audio for generate; non-empty values require custom_mode=false. Invalid combinations return 422 before charging.; maxItems: 10 |
| input.video_urls | array<string> | No | maxItems: 10 |
| input.vocal_gender | enum: m | f | No | - |
| input.style_weight | number | No | - |
| input.weirdness_constraint | number | No | - |
| input.audio_weight | number | No | - |
| input.variety | number | No | - |
| input.persona_id | string | No | A2E task ID (`_id`) of your own completed style Persona or Voice creation task. |
| input.persona_model | enum: style_persona | voice_persona | No | - |
| input.source_task_id | string | No | A2E task ID (`_id`) of your own completed source task. |
| input.audio_id | string | No | Track reference copied from the source task's `tracks[].id`. |
| input.continue_at | number | No | - |
| input.sound_loop | boolean | No | - |
| input.sound_tempo | number | No | - |
| input.sound_key | string | No | - |
| input.grab_lyrics | boolean | No | - |
| input.content | string | No | - |
| input.upload_url | string | No | - |
| input.upload_url_list | array<string> | No | Exactly two HTTPS audio URLs to mash up; used only by the mashup operation.; minItems: 2; maxItems: 2 |
| input.tags | string | No | - |
| input.infill_start_s | number | No | - |
| input.infill_end_s | number | No | - |
| input.full_lyrics | string | No | - |
| input.audio_url | string | No | - |
| input.type | enum: separate_vocal | split_stem | split_stem_advanced | No | - |
| input.stem_name | string | No | - |
| input.author | string | No | - |
| input.domain_name | string | No | - |
| input.name | string | No | - |
| input.description | string | No | - |
| input.vocal_start | number | No | - |
| input.vocal_end | number | No | - |
| input.voice_url | string | No | - |
| input.vocal_start_s | number | No | - |
| input.vocal_end_s | number | No | - |
| input.language | string | No | - |
| input.verify_url | string | No | - |
| input.voice_name | string | No | - |
| input.singer_skill_level | string | No | - |
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
/api/v1/suno/{_id}Get one own Suno task
/api/v1/suno/catalogList music operations, fields and current prices
/api/v1/suno/startStart a Suno music or audio task
/api/v1/suno/allRecordsList current user's Suno tasks
/api/v1/suno/batchDetailQuery up to 200 own Suno tasks
/api/v1/suno/{_id}Delete one own Suno task
Responses
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.
Unauthorized - Invalid or missing bearer token
Invalid operation or input. Code 1003 means content moderation rejected the request because it involves a minor.