POST
Text to Music
Set engine to choose an option below, or omit it for automatic selection.

Engines

Authorizations

Authorization
string
header
required

Bearer API_key, can be found in Account Management > API Keys.

Headers

X-Stack-Id
string
default:stk_jmqog66ha0mugmro
required

Supplied automatically by the documentation playground.

Body

application/json
prompt
string
required

Describe what to create.

Required string length: 1 - 400
engine
enum<string>
default:auto

Optional engine selection.

Available options:
auto,
v6,
v3,
v2,
v2.1,
v2.2,
v2.3,
3.5,
2.5
lyrics
string

Lyrics with optional section markers.

Maximum string length: 5000
title
string
Maximum string length: 100
make_instrumental
boolean
default:false

Response

Generation result. The data fields depend on the selected capability.

data
object
trace_id
string