Quote a Playground image generation
playground_image_quoteRead the current credit cost for one image and up to three image references. Does not submit a job. Returns model pricing and the quoted image settings.
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": {
"projectId": "<projectId>",
"modelId": "<modelId>"
},
"name": "playground_image_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| modelId | Yes | Canonical model ID returned by model discovery or resolution; preserve the user’s selected model. | |
| projectId | Yes | ID of the Playground project chosen for this task; obtain it from project creation, an explicit project link or current context. | |
| aspectRatio | No | Output width-to-height ratio supported by the selected model, such as 1:1 or 9:16. | |
| inputImageCount | No | Number of reference images that will be supplied to the image model for this quote. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| credits | Yes | ||
| modelId | Yes | ||
| modelName | Yes | ||
| aspectRatio | No |