MusicAPI
HomeDocs
HomeDocs
  1. sonic
  • Introduction
  • Credits Usage Guide
  • Music API FAQ & Troubleshooting
  • Special Scenarios
  • Error handling
  • Webhook Integration Guide
  • Get Your Suno API Key
  • API Changelog
  • sonic
    • Sonic Instructions
    • create / extend / cover / remaster / add vocals / add instrumental
      POST
    • upload and extend music
      POST
    • upload and cover music
      POST
    • create persona
      POST
    • sample
      POST
    • mashup
      POST
    • get BPM
      POST
    • get VOX
      POST
    • get wav
      POST
    • get midi
      POST
    • get lyrics timeline
      POST
    • upsample tags
      POST
    • stems basic
      POST
    • stems full
      POST
    • replace section
      POST
    • upload music
      POST
    • create voice
      POST
    • get music
      GET
    • download (mp3 / m4a / wav)
      POST
    • speech
      POST
    • video
      POST
  • producer
    • Producer instructions
    • Complete Request Examples
    • create music
    • upload
    • download
    • get music
    • Extend an existing music track
    • Replace a section of an existing music track
    • Cover an existing music track
  • studio(Unavailable)
    • Studio Instructions
    • description mode (Use case1)
    • extend mode (Use case2)
    • custom mode (Use case3)
    • instrumental mode (Use case4)
    • get music
  • lyrics generation
    • Make Lyrics
  • nuro
    • Nuro Instruction
    • Error handling
    • create vocal music
    • create instrument music
    • get music
  • get-credits
    GET
  1. sonic

video

POST
https://api.musicapi.ai/api/v1/sonic/video
Generate a short video (5–15 seconds) with Suno's video model. Start from a text prompt, steer the picture with a first frame, a first and last frame, or up to 9 reference images, and optionally use one of your generated songs as the soundtrack — with lip-sync.
This is an async endpoint — submit the request, receive a task_id, then poll for the result.
Credits cost: per second of duration — 70 credits/second at 480p, 140 credits/second at 720p. A 5-second 480p video costs 350 credits; a 15-second 720p video costs 2100 credits. Each request returns two videos. Credits are refunded automatically if the task fails.
Inputs you can combine:
Text only — prompt + duration.
First frame — first_frame_url.
First and last frame — first_frame_url + last_frame_url (cannot be combined with reference images).
Reference images — reference_image_urls (up to 9), alone or with a first frame.
Your song as the soundtrack — clip_id of a clip you generated, optional clip_start_s / clip_end_s to pick the part of the song, and lip_sync: true to sync a singer to it. If you send clip_end_s, clip_end_s - clip_start_s must equal duration.
Images must be public HTTP(S) URLs, JPEG or PNG, up to 10 MB each. Videos made from text and images alone have no audio track; with clip_id the MP4 carries the song audio.
Workflow:
1.
Submit the request
2.
Receive a task_id in the response
3.
Poll GET /api/v1/sonic/task/{task_id} until data.state is succeeded (HTTP 202 while processing; jobs usually finish in 15–60 seconds)
4.
The completed task returns two videos, each with video_url (MP4), poster_url, last_frame_url, width, height and duration
webhook_url is not supported for video yet — poll the task endpoint.

Polling Result
{
  "code": 200,
  "message": "success",
  "data": {
    "task_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "task_type": "video",
    "state": "succeeded",
    "videos": [
      {
        "video_id": "crt_01a20f98-6943-7225-a49b-6bd8bb889ddd",
        "state": "succeeded",
        "video_url": "https://files.musicapi.ai/media/video-crt_01a20f98-6943-7225-a49b-6bd8bb889ddd.mp4",
        "poster_url": "https://files.musicapi.ai/media/video-crt_01a20f98-6943-7225-a49b-6bd8bb889ddd-poster.jpg",
        "last_frame_url": "https://files.musicapi.ai/media/video-crt_01a20f98-6943-7225-a49b-6bd8bb889ddd-last-frame.jpg",
        "width": 480,
        "height": 840,
        "duration": 6.58
      }
    ]
  }
}
Failed task (credits refunded):
{
  "type": "failed",
  "error": "The video was blocked by content moderation. Please change the prompt or images and try again.",
  "reason_code": "moderation",
  "retriable": false,
  "refund_processed": true
}

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Body Params application/json

Example
{
  "prompt": "A young woman singing softly on a wooden dock at night, paper lanterns drifting behind her",
  "duration": 6,
  "resolution": "480p",
  "aspect_ratio": "9:16",
  "clip_id": "2b1dc115-877b-4d04-97d6-002c46359d30",
  "clip_start_s": 2,
  "lip_sync": true
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://api.musicapi.ai/api/v1/sonic/video' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
  "prompt": "A young woman singing softly on a wooden dock at night, paper lanterns drifting behind her",
  "duration": 6,
  "resolution": "480p",
  "aspect_ratio": "9:16",
  "clip_id": "2b1dc115-877b-4d04-97d6-002c46359d30",
  "clip_start_s": 2,
  "lip_sync": true
}'

Responses

🟢200OK
application/json
Bodyapplication/json

Example
{
    "message": "string",
    "task_id": "string",
    "consume_credits": 0
}
Modified at 2026-11-24 22:35:50
Previous
speech
Next
Producer instructions
Built with