Skip to main content
POST
/
suno
/
v1
/
inspo
cURL
curl --request POST \
  --url https://api.ttapi.io/suno/v1/inspo \
  --header 'Content-Type: application/json' \
  --header 'TT-API-KEY: <api-key>' \
  --data '
{
  "mv": "chirp-v5",
  "audio_urls": [
    "https://example.com/reference-1.mp3"
  ],
  "prompt": "<string>",
  "title": "<string>",
  "tags": "rock, blues, hip-hop, r&b",
  "negative_tags": "<string>",
  "style_weight": 0.5,
  "weirdness_constraint": 0.5,
  "audio_weight": 0.5,
  "auto_lyrics": false,
  "isStorage": true,
  "hookUrl": "<string>"
}
'
import requests

url = "https://api.ttapi.io/suno/v1/inspo"

payload = {
    "mv": "chirp-v5",
    "audio_urls": ["https://example.com/reference-1.mp3"],
    "prompt": "<string>",
    "title": "<string>",
    "tags": "rock, blues, hip-hop, r&b",
    "negative_tags": "<string>",
    "style_weight": 0.5,
    "weirdness_constraint": 0.5,
    "audio_weight": 0.5,
    "auto_lyrics": False,
    "isStorage": True,
    "hookUrl": "<string>"
}
headers = {
    "TT-API-KEY": "<api-key>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
  method: 'POST',
  headers: {'TT-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
  body: JSON.stringify({
    mv: 'chirp-v5',
    audio_urls: ['https://example.com/reference-1.mp3'],
    prompt: '<string>',
    title: '<string>',
    tags: 'rock, blues, hip-hop, r&b',
    negative_tags: '<string>',
    style_weight: 0.5,
    weirdness_constraint: 0.5,
    audio_weight: 0.5,
    auto_lyrics: false,
    isStorage: true,
    hookUrl: '<string>'
  })
};

fetch('https://api.ttapi.io/suno/v1/inspo', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.ttapi.io/suno/v1/inspo",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'mv' => 'chirp-v5',
    'audio_urls' => [
        'https://example.com/reference-1.mp3'
    ],
    'prompt' => '<string>',
    'title' => '<string>',
    'tags' => 'rock, blues, hip-hop, r&b',
    'negative_tags' => '<string>',
    'style_weight' => 0.5,
    'weirdness_constraint' => 0.5,
    'audio_weight' => 0.5,
    'auto_lyrics' => false,
    'isStorage' => true,
    'hookUrl' => '<string>'
  ]),
  CURLOPT_HTTPHEADER => [
    "Content-Type: application/json",
    "TT-API-KEY: <api-key>"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.ttapi.io/suno/v1/inspo"

	payload := strings.NewReader("{\n  \"mv\": \"chirp-v5\",\n  \"audio_urls\": [\n    \"https://example.com/reference-1.mp3\"\n  ],\n  \"prompt\": \"<string>\",\n  \"title\": \"<string>\",\n  \"tags\": \"rock, blues, hip-hop, r&b\",\n  \"negative_tags\": \"<string>\",\n  \"style_weight\": 0.5,\n  \"weirdness_constraint\": 0.5,\n  \"audio_weight\": 0.5,\n  \"auto_lyrics\": false,\n  \"isStorage\": true,\n  \"hookUrl\": \"<string>\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("TT-API-KEY", "<api-key>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.ttapi.io/suno/v1/inspo")
  .header("TT-API-KEY", "<api-key>")
  .header("Content-Type", "application/json")
  .body("{\n  \"mv\": \"chirp-v5\",\n  \"audio_urls\": [\n    \"https://example.com/reference-1.mp3\"\n  ],\n  \"prompt\": \"<string>\",\n  \"title\": \"<string>\",\n  \"tags\": \"rock, blues, hip-hop, r&b\",\n  \"negative_tags\": \"<string>\",\n  \"style_weight\": 0.5,\n  \"weirdness_constraint\": 0.5,\n  \"audio_weight\": 0.5,\n  \"auto_lyrics\": false,\n  \"isStorage\": true,\n  \"hookUrl\": \"<string>\"\n}")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.ttapi.io/suno/v1/inspo")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["TT-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"mv\": \"chirp-v5\",\n  \"audio_urls\": [\n    \"https://example.com/reference-1.mp3\"\n  ],\n  \"prompt\": \"<string>\",\n  \"title\": \"<string>\",\n  \"tags\": \"rock, blues, hip-hop, r&b\",\n  \"negative_tags\": \"<string>\",\n  \"style_weight\": 0.5,\n  \"weirdness_constraint\": 0.5,\n  \"audio_weight\": 0.5,\n  \"auto_lyrics\": false,\n  \"isStorage\": true,\n  \"hookUrl\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
{
  "status": "SUCCESS",
  "message": "success",
  "data": {
    "jobId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  }
}
{
  "status": "FAILED",
  "message": "<string>",
  "data": {}
}
{
  "status": "FAILED",
  "message": "Wrong TT-API-KEY or email is not activated."
}

Authorizations

TT-API-KEY
string
header
required

You can obtain your API key from the TTAPI Dashboard.

Body

application/json
mv
enum<string>
default:chirp-v5
required

Model to use.

Available options:
chirp-v5-5,
chirp-v5,
chirp-v4-5+,
chirp-v4-5,
chirp-v4-5-all,
chirp-v4,
chirp-v3-5,
chirp-v3-0
audio_urls
string<uri>[]
required

Publicly accessible audio URLs used as inspiration references. Provide 1 to 4 audio files.

Required array length: 1 - 4 elements
Example:
["https://example.com/reference-1.mp3"]
prompt
string

Lyrics.

Used in custom mode (custom=true). Required when instrumental is false. The lyrics will be used and sung in the generated track. Maximum length: 5000 characters.

title
string

Music title.

Used in custom mode (custom=true). Maximum length: 80 characters.

tags
string

Music style or genre.

Used in custom mode (custom=true). Maximum length: 1000 characters.

Example:

"rock, blues, hip-hop, r&b"

negative_tags
string

Music styles or genres that should be excluded from generation.

Used in custom mode (custom=true).

style_weight
number

Music style weight, range: 0.00–1.00.

Used in custom mode. Valid range: 0 <= x <= 1.

Example:

0.5

weirdness_constraint
number

Audio creativity (weirdness) weight, range: 0.00–1.00.

Used in custom mode. Valid range: 0 <= x <= 1.

Example:

0.5

audio_weight
number

Audio weight, range: 0.00–1.00.

Used in custom mode. Valid range: 0 <= x <= 1.

Example:

0.5

auto_lyrics
boolean
default:false

Whether to automatically generate lyrics. Custom mode only.

  • true: The input lyrics will be creatively rewritten, similar to the inspiration mode prompt effect
  • false: Use the provided lyrics directly to generate the music
vocal_gender
enum<string>

Vocal gender.

  • Male: Male voice

  • Female: Female voice

Available options:
Male,
Female
isStorage
boolean
default:true

Whether to store the generated audio.

  • true: The audio will be stored and a TTAPI CDN URL will be returned
  • false: The original source URL will be returned
hookUrl
string

Callback notification URL

Response

Request successful

status
string
required
Example:

"SUCCESS"

message
string
required
Example:

"success"

data
object
required
Example:
{
  "jobId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
Last modified on June 10, 2026