ccapi
🇺🇸English
  • 🇨🇳简体中文
  • 🇺🇸English
Home
Home
🇺🇸English
  • 🇨🇳简体中文
  • 🇺🇸English
🇺🇸English
  • 🇨🇳简体中文
  • 🇺🇸English
  1. Suno
  • OpenClaw + CCAPI LLM Integration Guide
  • claude code integration
  • codex cli integration
  • gemini cli integration
  • Chat
    • OpenAI
      • Create Chat Completion
      • Create Response
    • Google
      • Generate Content
      • Stream Generate Content
    • Anthropic
      • Create Message
    • DeepSeek
      • Create Chat Completion
    • MiniMax
      • Create Chat Completion
  • Image
    • nano banana
      • Generate Image
    • z-image-turbo
      • integration docs
    • seedream
      • integration doc
  • Video
    • seedance
    • vidu
  • Audio
    • Producer
      • Generate Music
      • Generate Lyrics
      • Extend Music
      • Create Cover
      • Create Variation
      • Replace Segment
      • Vocals Swap
      • Instrumentals Swap
      • Stem Separation
      • Download Audio
      • Upload Audio
      • Generate Video
      • Fetch Task Status
      • Batch Fetch Tasks
    • Suno
      • Generate Music
        POST
      • Fetch Task Status
        GET
      • Generate Lyrics
        POST
      • Extend Music
        POST
      • Create Cover
        POST
      • Extract Stems
        POST
      • Extract All Stems
        POST
      • Add Vocals
        POST
      • Add Instrumental
        POST
      • Replace Section
        POST
      • Remaster Song
        POST
      • Mashup
        POST
      • Sample Section
        POST
      • Generate Sounds
        POST
      • Generate MIDI
        POST
      • Upload Audio
        POST
      • Concatenate Music
        POST
      • Get Aligned Lyrics
        POST
      • Generate Music Video
        POST
      • Export as WAV
        POST
      • Create Voice Persona(unavailable)
        POST
      • Detect BPM
        POST
      • Extract Vocals
        POST
      • Upsample Tags
        POST
      • Batch Fetch Tasks
        POST
  1. Suno

Generate Music

POST
https://api.ccapi.ai//suno/submit/MUSIC
Generate music from a text description or custom lyrics.

CCAPI Task Workflow#

1.
Submit -> POST /suno/submit/MUSIC -> {"code":"success","data":"task_xxx"}
2.
Fetch -> GET /suno/fetch/{id} or POST /suno/fetch -> inspect data.status and data.data
3.
Complete -> when data.status = "SUCCESS", data.data contains the normalized result payload

Billing#

Reference price: $0.08
Actual deduction still follows the current CCAPI pricing, group ratio, and channel configuration
Failed tasks are auto-refunded

Notes#

Authenticate with Authorization: Bearer <CCAPI token>
Submit endpoints always return the public task_xxx ID instead of exposing the upstream job ID
Fetch endpoints return the persisted CCAPI task record (TaskDto) with normalized data payload
In simple mode (custom=false), you can pass just prompt as the song description

请求参数

Authorization
or
Body 参数application/json

示例
{
    "custom": false,
    "mv": "chirp-v4",
    "prompt": "A cheerful pop song about coding and debugging"
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
cURL
curl --location --request POST 'https://api.ccapi.ai//suno/submit/MUSIC' \
--header 'Content-Type: application/json' \
--data-raw '{
    "custom": false,
    "mv": "chirp-v4",
    "prompt": "A cheerful pop song about coding and debugging"
}'

返回响应

🟢200成功
application/json
Task submitted
Body

示例
{
    "code": "success",
    "message": "task submitted successfully",
    "data": "task_7f11c4b772f44710ac0fae0d5b3dc4c1"
}
🟠400请求有误
🟠401未认证
🟠403权限不足
🔴500服务器内部错误
修改于 2026-03-27 07:49:06
上一页
Batch Fetch Tasks
下一页
Fetch Task Status
Built with