> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omniall.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 批量查询任务

> 按公开 task id 批量查询 Suno 任务。

**路径：** `POST https://api.omniall.ai/suno/fetch`

鉴权：`Authorization: Bearer sk-...`



## OpenAPI

````yaml zh-CN/openapi/suno-audio.yaml POST /suno/fetch
openapi: 3.1.0
info:
  title: Omniall AI — Suno音乐
  version: 1.0.0
  description: >-
    Suno 异步音乐 / 歌词。


    **创建：** `POST https://api.omniall.ai/suno/submit/music` · `POST
    /suno/submit/lyrics`


    **查询：** `GET /suno/fetch/{task_id}` · 批量 `POST /suno/fetch`


    计费模型 ID：`suno_music`、`suno_lyrics`（以[模型广场](https://omniall.ai/pricing)为准）。


    鉴权：`Authorization: Bearer sk-...`
servers:
  - url: https://api.omniall.ai
security: []
paths:
  /suno/fetch:
    post:
      tags:
        - Suno
      summary: 批量查询任务
      description: |-
        按公开 task id 批量查询 Suno 任务。

        **路径：** `POST https://api.omniall.ai/suno/fetch`

        鉴权：`Authorization: Bearer sk-...`
      operationId: sunoFetchBatch
      parameters:
        - name: Authorization
          in: header
          required: true
          schema:
            type: string
            example: Bearer sk-...
          description: Bearer API Key，例如 `Bearer sk-...`。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                ids:
                  type: array
                  items:
                    type: string
                  description: 公开 task id 列表。
                  example:
                    - task_xxxxxxxx
                    - task_yyyyyyyy
                action:
                  type: string
                  description: 可选过滤（如 `MUSIC`、`LYRICS`）。
            example:
              ids:
                - task_xxxxxxxx
                - task_yyyyyyyy
      responses:
        '200':
          description: 任务列表
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SunoFetchBatchResponse'
              example:
                code: success
                data:
                  - task_id: task_xxxxxxxx
                    action: MUSIC
                    status: SUCCESS
                  - task_id: task_yyyyyyyy
                    action: LYRICS
                    status: IN_PROGRESS
components:
  schemas:
    SunoFetchBatchResponse:
      type: object
      properties:
        code:
          type: string
        data:
          type: array
          items:
            type: object

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.