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

# Kling タスクを一括照会

> このシリーズはOpenAIの動画生成形式をサポートしています（詳細はリンク [動画生成Sora互換形式](/api-reference/ja/video-generation-sora-compatible-format/create-video) を参照してください）。

作成エンドポイントで返される本サービスのタスクIDを使用します。task_idsには、カンマ区切りの1～100個の一意なIDを指定します。現在のトークンに紐づくユーザーのKling 4.0タスクのみを照会します。いずれかのIDが存在しない、現在のユーザーに属さない、またはKling 4.0タスクではない場合、全体として404が返されます。dataは常に配列であり、完了後のoutputsには動画URLが含まれます。external_task_idsおよびPOST /tasksによる一覧照会はサポートされていません。



## OpenAPI

````yaml api-reference/ja/openapi.json GET /tasks
openapi: 3.0.0
info:
  title: 出海营 API 参考ドキュメント
  version: 1.0.0
  description: Public AI Gateway API Reference
servers:
  - url: https://api.aiid.edu.kg
security:
  - BearerAuth: []
tags:
  - name: OpenAI形式(Chat)
  - name: OpenAI形式（Responses）
  - name: 画像生成Gemini形式
  - name: 画像生成OpenAI DALL-E形式
  - name: モデル一覧の取得
  - name: 動画生成HappyHorseとWan
  - name: 動画生成Kling形式
  - name: 動画生成OmniとVeo形式
  - name: Video generation Seedance
  - name: 動画生成Sora対応形式
  - name: Video generation Vidu
  - name: 音楽生成タスクの形式
paths:
  /tasks:
    get:
      tags:
        - 動画生成Kling形式
      summary: Kling タスクを一括照会
      description: >-
        このシリーズはOpenAIの動画生成形式をサポートしています（詳細はリンク
        [動画生成Sora互換形式](/api-reference/ja/video-generation-sora-compatible-format/create-video)
        を参照してください）。


        作成エンドポイントで返される本サービスのタスクIDを使用します。task_idsには、カンマ区切りの1～100個の一意なIDを指定します。現在のトークンに紐づくユーザーのKling
        4.0タスクのみを照会します。いずれかのIDが存在しない、現在のユーザーに属さない、またはKling
        4.0タスクではない場合、全体として404が返されます。dataは常に配列であり、完了後のoutputsには動画URLが含まれます。external_task_idsおよびPOST
        /tasksによる一覧照会はサポートされていません。
      operationId: query_kling4_native_tasks
      parameters:
        - name: task_ids
          in: query
          required: true
          schema:
            type: string
            example: task_example_1,task_example_2
      responses:
        '200':
          description: 成功
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - message
                  - request_id
                  - data
                properties:
                  code:
                    type: integer
                    example: 0
                  message:
                    type: string
                  request_id:
                    type: string
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: 本サイトのタスクID。照会時にそのまま渡します。
                        status:
                          type: string
                          enum:
                            - submitted
                            - processing
                            - succeeded
                            - failed
                        create_time:
                          type: integer
                          format: int64
                          description: 作成時刻（Unixミリ秒）。
                        update_time:
                          type: integer
                          format: int64
                          description: 更新時刻（Unixミリ秒）。
                        external_id:
                          type: string
                          maxLength: 0
                        message:
                          type: string
                          description: タスクのステータス説明。失敗した場合はエラーの原因。
                        outputs:
                          type: array
                          items:
                            type: object
                            properties:
                              type:
                                type: string
                                enum:
                                  - video
                              id:
                                type: string
                              url:
                                type: string
                                format: uri
                              duration:
                                type: string
                                description: 動画の長さ（秒）。
              examples:
                success:
                  summary: 成功
                  value:
                    code: 0
                    message: SUCCEED
                    request_id: request_example
                    data:
                      - id: task_example
                        status: succeeded
                        create_time: 1792710000000
                        update_time: 1792710000000
                        external_id: ''
                        message: ''
                        outputs:
                          - type: video
                            id: video_example
                            url: https://example.com/result.mp4
                            duration: '10'
        '400':
          description: task_ids が存在しないか、パラメータが無効です。
        '404':
          description: タスクが存在しないか、アクセスできません。
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: |-
        Bearer Token を使用して認証します。
        形式: `Authorization: Bearer sk-xxxxxx`

````

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