quote
What a generation would cost, in credits, without making it. Tell the user before generating.
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>"
},
"name": "quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | the model id from list_models | |
| prompt | No | what to make; for speech models the text to read | |
| parameters | No | the model's settings by key (get_model); any left out take the model's default | |
| references | No | uploaded files the model works from |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| usd | Yes | credits in US dollars at 1 credit = 0.01 USD | |
| exact | Yes | true when the price is fixed; false when the model decides part of it, or a speech model charges by the length it actually speaks, and only up to credits is charged | |
| model | Yes | ||
| credits | Yes | what is reserved; for a fixed price also what is charged; for a speech model priced by length, the most it charges | |
| estimated_credits | Yes |