refine_image
Refine an existing generated image by appending prompt modifications to the original prompt. Use free retries to adjust details and dimensions without additional cost.
Instructions
Refine or modify an existing generated image for 0 credits (up to 5 free retries per parent prompt ID). Appends prompt modifications to the locked base prompt.
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": {
"parent_prompt_id": "<parent_prompt_id>",
"prompt_update": "<prompt_update>"
},
"name": "refine_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Optional width override in pixels. | |
| height | No | Optional height override in pixels. | |
| quality | No | Optional quality level override. | |
| prompt_update | Yes | Additional text instructions or modifications to append to the base prompt. | |
| parent_prompt_id | Yes | The prompt_id or generation_id of the original image generation. |