Generate image
generate_imageGenerate images from a prompt. model is required by the server (400 without it): a model id from list_models, such as "flux-pro"; video models are refused. count makes 1-4 images and is charged per image. imageUrls is used only by image-to-image models, which require it; text-to-image models ignore it. Most models run in the background and return the id as job_id; a few answer at once with { images } already saved to the library. With count above 1, the status poll reports complete after the first image; find the rest with list_gallery. 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>",
"context": "<context>"
},
"name": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | 1-4 images, each charged. | |
| model | No | Required by the server: an image model id from list_models. | |
| style | No | Optional style preset applied to the prompt. | |
| prompt | Yes | What to draw. | |
| 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. | |
| settings | No | Model-specific options, e.g. aspect ratio. | |
| imageUrls | No | Source images, for image-to-image models only. | |
| 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. |