Generate or edit an image
generate_imageCreate or edit images with a Modelflare image model, then save the result to the output directory. Usage is billed to your Modelflare balance by actual usage.
Instructions
Generates an image, or edits one with edit=true, using a Modelflare image model, and saves the result to the output directory. Billed to the Modelflare balance by actual usage.
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": {
"model": "<model>",
"prompt": "<prompt>"
},
"name": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edit | No | Use the edits route (OpenAI-compatible image models only). | |
| model | Yes | Image model ID from list_models. | |
| prompt | Yes | ||
| parameters | No | Model-specific request fields, sent unchanged. Read the model's docs page (from list_models) for the exact fields. |