Text To Image Price
text_to_image_priceCalculate the exact cost of a text-to-image generation job before running it. Pass the same parameters the job will use, including quality, so the quote matches the actual charge.
Instructions
Calculate price for text-to-image generation.
Pass the same parameters the generation call will use. Fields that affect
the charge — quality above all — change the quote, so omitting them here
produces a number the job will not honour.
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": {
"prompt": "<prompt>",
"model": "<model>"
},
"name": "text_to_image_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Random seed the job will use | |
| loras | No | LoRA adapters the job will use: [{'name': str, 'weight': float}] | |
| model | Yes | AI model name | |
| steps | No | Number of diffusion steps. Limits per model (see the model list) | |
| width | No | Image width in pixels. Limits per model (see the model list) | |
| height | No | Image height in pixels. Limits per model (see the model list) | |
| prompt | Yes | Text description for price calculation | |
| quality | No | Quality tier, e.g. 'low', 'medium', 'high'. On gpt-image-1.5 the tiers differ ~14x in price, so quoting without it can be badly wrong | |
| guidance_scale | No | Guidance the job will use. Defaults to the model's own value; limits per model (see the model list) | |
| negative_prompt | No | Things to exclude — quote it if the job will use it |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||