ccapi
🇺🇸English
  • 🇨🇳简体中文
  • 🇺🇸English
Home
Home
🇺🇸English
  • 🇨🇳简体中文
  • 🇺🇸English
🇺🇸English
  • 🇨🇳简体中文
  • 🇺🇸English
  1. Producer
  • 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
        POST
      • Generate Lyrics
        POST
      • Extend Music
        POST
      • Create Cover
        POST
      • Create Variation
        POST
      • Replace Segment
        POST
      • Vocals Swap
        POST
      • Instrumentals Swap
        POST
      • Stem Separation
        POST
      • Download Audio
        POST
      • Upload Audio
        POST
      • Generate Video
        POST
      • Fetch Task Status
        GET
      • Batch Fetch Tasks
        POST
    • Suno
      • Generate Music
      • Fetch Task Status
      • Generate Lyrics
      • Extend Music
      • Create Cover
      • Extract Stems
      • Extract All Stems
      • Add Vocals
      • Add Instrumental
      • Replace Section
      • Remaster Song
      • Mashup
      • Sample Section
      • Generate Sounds
      • Generate MIDI
      • Upload Audio
      • Concatenate Music
      • Get Aligned Lyrics
      • Generate Music Video
      • Export as WAV
      • Create Voice Persona(unavailable)
      • Detect BPM
      • Extract Vocals
      • Upsample Tags
      • Batch Fetch Tasks
  1. Producer

Batch Fetch Tasks

POST
https://api.ccapi.ai//producer/fetch
Batch query persisted CCAPI producer task records by public task IDs.

Request#

Send a JSON body like {"ids":["task_xxx","task_yyy"]}.

Notes#

Only tasks that belong to the current token owner are returned
The response keeps the same persisted task shape as single-task fetch
This endpoint is useful for dashboard polling or retries

请求参数

Authorization
or
Body 参数application/json必填

示例
{
    "ids": [
        "task_7f11c4b772f44710ac0fae0d5b3dc4c1",
        "task_922f8fc9f24a4277ae858eb18ca2d0ef"
    ]
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.ccapi.ai//producer/fetch' \
--header 'Content-Type: application/json' \
--data-raw '{
    "ids": [
        "task_7f11c4b772f44710ac0fae0d5b3dc4c1",
        "task_922f8fc9f24a4277ae858eb18ca2d0ef"
    ]
}'

返回响应

🟢200成功
application/json
Task list
Body

示例
{
    "code": "success",
    "message": "",
    "data": [
        {
            "id": 3,
            "created_at": 1773385820,
            "updated_at": 1773385828,
            "task_id": "task_BE5vsWPK0pWHyONbGVEXqsPqD6IkcBY6",
            "platform": "producer",
            "user_id": 3,
            "group": "producer-A",
            "channel_id": 28,
            "quota": 30000,
            "action": "MUSIC",
            "status": "IN_PROGRESS",
            "fail_reason": "",
            "submit_time": 1773385820,
            "start_time": 1773385828,
            "finish_time": 0,
            "progress": "20%",
            "properties": {
                "input": "",
                "upstream_model_name": "producer_music",
                "origin_model_name": "producer_music"
            },
            "data": {
                "progress": "20%",
                "status": "IN_PROGRESS",
                "task_id": "ef74a9d9-6c9f-47aa-a771-1006e987e331"
            }
        },
        {
            "id": 3,
            "created_at": 1773385820,
            "updated_at": 1773385875,
            "task_id": "task_BE5vsWPK0pWHyONbGVEXqsPqD6IkcBY6",
            "platform": "producer",
            "user_id": 3,
            "group": "producer-A",
            "channel_id": 28,
            "quota": 30000,
            "action": "MUSIC",
            "status": "SUCCESS",
            "fail_reason": "",
            "result_url": "https://storage.googleapis.com/producer-app-public/clips/b7555447-c981-4132-8a1e-2fe21bc70d36.m4a",
            "submit_time": 1773385820,
            "start_time": 1773385828,
            "finish_time": 1773385875,
            "progress": "100%",
            "properties": {
                "input": "",
                "upstream_model_name": "producer_music",
                "origin_model_name": "producer_music"
            },
            "data": {
                "clips": [
                    {
                        "clip_id": "b7555447-c981-4132-8a1e-2fe21bc70d36",
                        "state": "completed",
                        "title": "Weekend Morning",
                        "sound": "A warm acoustic pop song about a calm weekend morning, gentle rhythm, clean vocal.",
                        "lyrics": "sunlight on the window, coffee on the table...",
                        "image_url": "https://storage.googleapis.com/producer-app-public/assets/example-cover.jpg",
                        "audio_url": "https://storage.googleapis.com/producer-app-public/clips/b7555447-c981-4132-8a1e-2fe21bc70d36.m4a",
                        "video_url": null,
                        "created_at": "2026-03-13T07:10:57.379725Z",
                        "mv": "FUZZ-2.0",
                        "seed": null,
                        "duration": null
                    }
                ],
                "progress": "100%",
                "quota": "3"
            }
        }
    ]
}
🟠400请求有误
🟠401未认证
修改于 2026-03-27 07:48:23
上一页
Fetch Task Status
下一页
Generate Music
Built with