fotoai_quote
The exact price of a FotoAI generation in the user's FotoAI credits, and their balance. Nothing is spent.
Tell the user the price (credits) and ask before calling fotoai_generate with the returned quote_id; it is valid for 10 minutes. If insufficient is true, give the user the topup_url instead of 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": "fotoai_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | A model id from fotoai_list_models. | |
| aspect | No | Aspect ratio, e.g. "1:1", "4:5", "9:16", "16:9", from the model params. | |
| params | No | Other model parameters by key, e.g. { "resolution": "2K" }. | |
| prompt | No | What to generate, in any language. | |
| duration | No | Video length in seconds (video models only). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| output | No |