Skip to main content
POST
cURL
Estimate the cost of a text-to-music job before submitting it.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Accept
enum<string>
default:application/json
required
Available options:
application/json

Body

application/json

Music generation parameters for price calculation.

model
string
required

The model to use for music generation. Available models can be retrieved via the GET /api/v1/client/models endpoint.

Example:

"ACE-Step-v1.5-turbo"

duration
number
required

Duration in seconds (10-600)

Example:

30

inference_steps
integer
required

Number of diffusion inference steps (1-100). Use 8 for turbo models, 32+ for base models.

Example:

8

Response

Calculated price for text2music inference.

data
object