generate_image
Creates images from prompts via OpenAI Images API and saves them to a chosen file or folder, with options for quality, transparency, count, and cost confirmation.
Instructions
Erzeugt Bild(er) mit der OpenAI Images API und speichert sie als Datei.
- output_path: Zielordner (Standard: <Projekt>/assets/images) ODER kompletter Dateipfad.
- filename: Dateiname ohne Endung (Standard: aus dem Prompt abgeleitet).
- quality: Standard "medium". "high" NUR auf ausdrücklichen Wunsch der Person.
- transparent_background: true für Sprites/Charaktere (PNG mit Alpha).
- n: Anzahl Bilder (Obergrenze pro Anfrage siehe config).
- confirmed: erst true setzen, nachdem die Person Kosten über der Schwelle bestätigt hat.
- low_balance_ok: erst true, nachdem die Person bei kritischem Kontostand zugestimmt hat.
- project_dir: absoluter Projektpfad (für Standard-Zielordner assets/images).
Vorher der Person kurz sagen, was erzeugt wird und in welcher Qualität.
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 |
|---|---|---|---|
| n | No | ||
| size | No | 1024x1024 | |
| prompt | Yes | ||
| quality | No | medium | |
| filename | No | ||
| confirmed | No | ||
| output_path | No | ||
| project_dir | No | ||
| low_balance_ok | No | ||
| transparent_background | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |