Text To Music Price
text_to_music_priceCalculate the price of text-to-music generation before running a job. Enter a model, duration in seconds, and optional inference steps to get the estimated cost.
Instructions
Calculate price for text-to-music generation.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model": "<model>",
"duration": "<duration>"
},
"name": "text_to_music_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Music generation model name | |
| duration | Yes | Audio duration in seconds, as the job will send it | |
| inference_steps | No | Inference steps. Leave unset when the model fixes it |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||