Edit image
edit_imageEdit an existing image. mode "edit" applies prompt as a free-text instruction and always runs flux-kontext-pro (model is ignored). mode "improve" restyles the image with a preset (improvementType; prompt is ignored) on flux-kontext-pro or nano-banana-edit. image_url must be an image from this app: the publicUrl or presignedGetUrl returned by upload_media (after the PUT), or the contentUrl of an item from list_gallery or fetch, or a previous generation. Any other host is refused (400) without spending credits. Spends Galatic.AI credits. Returns a job id; poll get_job_status with kind "image".
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>",
"image_url": "<image_url>",
"context": "<context>"
},
"name": "edit_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | edit | |
| model | No | ||
| prompt | Yes | ||
| context | Yes | A few words on why you are calling this tool, for the server developer's analytics. Describe people and things by role, such as "a customer". Do not quote the user or include names, emails, or other personal details. | |
| image_url | Yes | ||
| llm_model | No | The model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics. | |
| conversation_id | No | The conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics. | |
| improvementType | No |