Generate image
generate_imageCreate images from text prompts using OpenAI or Google Gemini; each result saves as a PNG under ~/.polydev/images.
Instructions
Generate an image with OpenAI or Google Gemini. Uses your own API key if you added one at https://www.polydev.ai/dashboard/models; otherwise one image takes one request from your free allowance (provider default model, standard settings). Saves a PNG under ~/.polydev/images.
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>"
},
"name": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Image size (OpenAI with your own key only). Default: 1024x1024 | 1024x1024 |
| prompt | Yes | Description of the image to generate (e.g. 'a futuristic dashboard with neon lights', 'logo for a developer tools company') | |
| quality | No | Image quality (OpenAI with your own key only). Default: auto | auto |
| provider | No | Which provider to use (default: gemini) | gemini |
| user_token | No | Polydev token (starts with pd_). Optional when POLYDEV_USER_TOKEN is set or you have run the login tool. |