Image To Image Price
image_to_image_priceCalculate price for image-to-image transformation.
Pass the same parameters and source image(s) the edit call will use:
quality and the input size both change the charge on some models, so a
quote without them may not match the job.
Available models:
Flux_2_Klein_4B_BF16: steps=4 (fixed), size=256-1536x256-1536, up to 3 input image(s), no negative_promptQwenImageEdit_Plus_NF4: steps=1-50 (default 40), size=256-1024x256-1024, output size = input size, up to 1 input image(s)gpt-image-2.6(test model): size=640-3840x640-3840, w/h rounded down to a multiple of 16, ≤8.29Mpx, side≤3840, aspect≤3, up to 5 input image(s), quality: low|medium|high|auto (default medium), no negative_promptnano-banana-2.1(test model): size=352-11712x352-11712, w/h rounded down to a multiple of 16, ≤17.20Mpx, side≤11712, aspect≤8.4, up to 5 input image(s), no negative_promptgpt-image-2.5(test model): size=640-3840x640-3840, w/h rounded down to a multiple of 16, ≤8.29Mpx, side≤3840, aspect≤3, up to 5 input image(s), quality: low|medium|high|auto (default high), no negative_promptgpt-image-2(test model): size=512-2048x512-2048, output size = input size, up to 2 input image(s), quality: low|medium|high|auto (default medium), no negative_promptgpt-image-1.5(test model): size=1024-1536x1024-1536, output size = input size, up to 2 input image(s), quality: low|medium|high (default medium), no negative_prompt Models marked (test model) are experimental: they may change or disappear. Prefer an unmarked model unless the caller asks for one of them.
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": "image_to_image_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Random seed the job will use | |
| image | No | Source image (URL, data URI or base64). Some models price by its size, so pass the one 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 | Output width the job will use. Limits per model (see the model list) | |
| height | No | Output height the job will use. Limits per model (see the model list) | |
| images | No | Several source images, as the job will send them. Mutually exclusive with 'image' | |
| prompt | Yes | Transformation description | |
| quality | No | Quality tier, e.g. 'low', 'medium', 'high'. Tiers differ sharply in price, so omitting it can misquote badly | |
| 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 | |||