cURL
Audio
Text-to-Music Price Calculation
Estimate the price of a text-to-music generation request. Requires duration and inference_steps parameters.
POST
cURL
Estimate the cost of a text-to-music job before submitting it.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Available options:
application/json Body
application/json
Music generation parameters for price calculation.
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 in seconds (10-600)
Example:
30
Number of diffusion inference steps (1-100). Use 8 for turbo models, 32+ for base models.
Example:
8
Response
Calculated price for text2music inference.