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

> ## Agent Instructions
> Send API requests to https://api.ttapi.io with the TT-API-KEY header. Midjourney account hosting uses https://hold.ttapi.io. Claude Code uses https://cc.ttapi.io.
> Most generation endpoints are asynchronous. The submit response returns a job id. Poll that product's fetch endpoint, or pass a webhook on the submit request. A fetch call does not start a new generation.
> 1 USD = 100 quota. Check the pricing page for that product before estimating cost.
> This file lists the English docs. Follow every /_llms/ link recursively for the API reference, Chinese, and Russian. Open a page's .md URL for the endpoint schema.

# Suno 视频延伸 API

> 基于已交付的 Suno 视频继续生成，使用 Fetch V2 获取延伸后的完整成片。



## OpenAPI

````yaml openapi/cn/suno.json POST /suno/v1/video/extend
openapi: 3.1.0
info:
  title: TTAPI API DOCS
  version: 1.0.0
  description: Suno 音乐生成相关接口
servers:
  - url: https://api.ttapi.io
security: []
paths:
  /suno/v1/video/extend:
    post:
      summary: 延伸视频
      description: >-
        基于已交付的源视频提交异步延伸任务。成功后返回两条完整成片，每条包含源视频及对应的新增片段。需要具备 Suno Video 权限的 API
        密钥。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SunoVideoExtendRequest'
            examples:
              basic:
                summary: 沿用源视频设置
                value:
                  jobId: video-9c64b7e1-f00d-456e-8c56-a0227f5128fb
                  creation_id: crt_0187b131-a1c0-7151-a92e-cd8645e4bb01
                  prompt: 镜头继续跟随纸灯笼向上移动，逐渐拉远，露出更多星星。
              reference:
                summary: 使用参考图并指定时长和分辨率
                value:
                  jobId: video-9c64b7e1-f00d-456e-8c56-a0227f5128fb
                  creation_id: crt_0187b131-a1c0-7151-a92e-cd8645e4bb01
                  prompt: 镜头继续跟随纸灯笼向上移动，逐渐拉远，露出更多星星。
                  duration: 5
                  resolution: 480p
                  reference_image_urls:
                    - https://example.com/reference.jpg
                  hookUrl: https://example.com/webhooks/suno-video
      responses:
        '200':
          description: 延伸任务已受理。使用返回的新 data.jobId 查询本次任务。
          content:
            application/json:
              schema:
                type: object
                required:
                  - status
                  - message
                  - data
                properties:
                  status:
                    type: string
                    enum:
                      - SUCCESS
                  message:
                    type: string
                    description: 受理提示。
                  data:
                    type: object
                    required:
                      - jobId
                    properties:
                      jobId:
                        type: string
                        description: 本次延伸任务的新 ID，用于 Fetch V2 查询。
                        pattern: ^video-
              example:
                status: SUCCESS
                message: success
                data:
                  jobId: video-f26fc3e4-59da-4fc4-a6e0-4c6ce579a9d8
        '400':
          $ref: '#/components/responses/400Response'
        '401':
          $ref: '#/components/responses/401Response'
        '403':
          description: API 密钥缺少对应产品权限，或请求不符合账号访问限制。
      security:
        - CustomApiKey: []
components:
  schemas:
    SunoVideoExtendRequest:
      title: 视频延伸参数
      type: object
      additionalProperties: false
      required:
        - jobId
        - creation_id
        - prompt
      properties:
        jobId:
          type: string
          description: 源视频任务 ID，可来自生成任务或此前的延伸任务。
          maxLength: 64
        creation_id:
          type: string
          description: 源任务查询结果中所选视频的 `data.videos[].creation_id`。
          minLength: 1
          maxLength: 128
        prompt:
          type: string
          description: 视频延伸提示词
          minLength: 1
          maxLength: 30000
        duration:
          type:
            - integer
          description: 延伸时长
          minimum: 5
          maximum: 15
        resolution:
          type:
            - string
          description: 目标分辨率。省略或传 null 时沿用源任务的分辨率。
          enum:
            - 480p
            - 720p
        reference_image_urls:
          type: array
          maxItems: 9
          items:
            type: string
            format: uri
          description: 参考图的公网 HTTP(S) URL，最多 9 张。支持 JPEG 和 PNG，每张最多 10 MiB。
        hookUrl:
          type: string
          format: uri
          description: 可选的 Webhook 回调地址。任务结束后通过 HTTP POST 发送，正文与视频任务 Fetch V2 响应一致。
  responses:
    400Response:
      description: 参数错误
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                example: FAILED
              message:
                type: string
              data:
                type: object
            required:
              - status
              - message
    401Response:
      description: 授权失败
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                example: FAILED
              message:
                type: string
                example: Wrong TT-API-KEY or email is not activated.
            required:
              - status
              - message
  securitySchemes:
    CustomApiKey:
      type: apiKey
      in: header
      name: TT-API-KEY
      description: >-
        请前往 <a href='https://dashboard.ttapi.io' target='_blank'>TTAPI 控制台</a>
        获取 API 密钥。

````

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