> ## 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 Video Generation API

> Generate videos from text, images, or Suno reference audio, and use Fetch V2 to retrieve asynchronous results.

## Input Methods

| Generation Method | Image Parameters |
| - | - |
| Text to video | Provide only a prompt and duration; optionally set the resolution, model, and aspect ratio |
| From a first frame | `first_frame_url` |
| First and last frames | `first_frame_url` and `last_frame_url` |
| Reference images | `reference_image_urls`, up to 9 images |
| First frame with reference images | `first_frame_url` and `reference_image_urls` |

Image URLs must be publicly accessible over HTTP(S). JPEG and PNG are supported, with a maximum of 10 MiB per image.

You can add Suno reference audio to any generation method. After providing `song_id`, use `song_window.start_s` and `song_window.end_s` to specify a reference window whose length must equal `duration`. If no window is provided, the required duration is taken from the beginning of the song. `lip_sync: true` requires `song_id`.


## OpenAPI

````yaml openapi/en/suno.json POST /suno/v1/video/generate
openapi: 3.1.0
info:
  title: TTAPI API DOCS
  version: 1.0.0
  description: Suno AI Music API
servers:
  - url: https://api.ttapi.io
security: []
paths:
  /suno/v1/video/generate:
    post:
      summary: Generate Video
      description: >-
        Submit an asynchronous video generation job. Provide text, images, or a
        Suno song as a reference. Generation and result queries require an API
        key with Suno Video permission.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SunoVideoGenerateRequest'
            examples:
              text:
                summary: Text to Video
                value:
                  prompt: >-
                    A paper lantern slowly rises into the starry sky as the
                    camera follows it upward.
                  duration: 5
                  resolution: 480p
                  aspect_ratio: '9:16'
                  hookUrl: https://example.com/webhooks/suno-video
              media:
                summary: First Frame, Reference Images, and Reference Audio
                value:
                  prompt: >-
                    Start from the first frame and move the camera forward,
                    preserving the color palette of the reference image.
                  duration: 5
                  resolution: 720p
                  aspect_ratio: '16:9'
                  first_frame_url: https://example.com/first-frame.jpg
                  reference_image_urls:
                    - https://example.com/reference.jpg
                  song_id: 01234567-89ab-4cde-8f01-23456789abcd
                  song_window:
                    start_s: 2
                    end_s: 7
                  lip_sync: true
      responses:
        '200':
          description: Job accepted. Use data.jobId to query the result.
          content:
            application/json:
              schema:
                type: object
                required:
                  - status
                  - message
                  - data
                properties:
                  status:
                    type: string
                    enum:
                      - SUCCESS
                  message:
                    type: string
                    description: Job acceptance message.
                  data:
                    type: object
                    required:
                      - jobId
                    properties:
                      jobId:
                        type: string
                        description: Job ID for subsequent result queries.
                        pattern: ^video-
              example:
                status: SUCCESS
                message: success
                data:
                  jobId: video-9c64b7e1-f00d-456e-8c56-a0227f5128fb
        '400':
          $ref: '#/components/responses/400Response'
        '401':
          $ref: '#/components/responses/401Response'
        '403':
          description: >-
            The API key lacks the required product permission, or the request
            violates account access restrictions.
      security:
        - CustomApiKey: []
components:
  schemas:
    SunoVideoGenerateRequest:
      title: Video Generation Parameters
      type: object
      required:
        - prompt
        - duration
      properties:
        prompt:
          type: string
          description: Describe the scene, camera movement, and style.
          minLength: 1
          maxLength: 30000
        duration:
          type: integer
          minimum: 5
          maximum: 15
          description: Generation duration in seconds.
        resolution:
          type:
            - string
            - 'null'
          description: >-
            Output resolution. 480p corresponds to fast; 720p corresponds to
            standard.
          enum:
            - 480p
            - 720p
          default: 480p
        aspect_ratio:
          type:
            - string
            - 'null'
          description: Video aspect ratio.
          enum:
            - '1:1'
            - '9:16'
            - '16:9'
            - '4:3'
            - '3:4'
          default: '9:16'
        first_frame_url:
          type: string
          description: >-
            Public HTTP(S) URL of the first-frame image. Can be used alone, with
            a last frame, or with reference images.
          format: uri
        last_frame_url:
          type: string
          description: >-
            Public HTTP(S) URL of the last-frame image. Requires a first frame;
            the first-and-last-frame combination does not support reference
            images.
          format: uri
        reference_image_urls:
          type: array
          maxItems: 9
          items:
            type: string
            description: Public HTTP(S) URL of a reference image.
            format: uri
          description: Up to 9 images. Can be used alone or with a first frame.
        song_id:
          type: string
          description: Suno song ID for reference audio. Can be combined with image inputs.
        song_window:
          type: object
          description: >-
            Reference audio window. Requires song_id. If omitted, uses a segment
            starting at second 0 with the same duration as the video.
          properties:
            start_s:
              type: number
              minimum: 0
              default: 0
              description: Start time in seconds. Fractional values are allowed.
            end_s:
              type: number
              minimum: 0
              description: >-
                End time in seconds. Defaults to start_s + duration. If
                specified explicitly, the window length must equal duration.
        lip_sync:
          type: boolean
          default: false
          description: Enable lip sync. Requires song_id when set to true.
        hookUrl:
          type: string
          format: uri
          description: >-
            Optional webhook callback URL. Sent via HTTP POST when the job
            finishes; the body matches the video job Fetch V2 response.
  responses:
    400Response:
      description: Parameter error
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                example: FAILED
              message:
                type: string
              data:
                type: object
            required:
              - status
              - message
    401Response:
      description: Authorization failed
      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: >-
        You can obtain your API key from the <a
        href='https://dashboard.ttapi.io' target='_blank'>TTAPI Dashboard</a>.

````

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