create_image
Generate or edit images from text prompts, edit existing image files, or continue a ChatGPT image session for iterative changes.
Instructions
Generate or edit an image via a logged-in web session. For a new image pass prompt; in local stdio mode, edit an existing image by passing its absolute path in file and describing the changes. To continue editing a ChatGPT-generated image in the same chat, pass the returned session back. Local stdio and the local hosted bridge save the result and return its path; use path to choose the local destination. Direct hosted HTTP returns inline artifacts without writing server paths.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Absolute paths of images/files to attach (local stdio only, not hosted HTTP). Use this to edit an existing/generated image. | |
| path | No | Local destination for stdio or the local hosted bridge. With a path, return the saved path without inline bytes; otherwise save under the local Fetchira home and include bytes. Direct hosted HTTP returns inline artifacts and never writes caller-supplied server paths. | |
| prompt | Yes | What to draw, or how to edit the attached image. | |
| session | No | Resume a ChatGPT image conversation to edit its previous image. | |
| provider | No | Force a specific provider (gemini_web / grok_web generate in-process over HTTP; chatgpt_web drives the browser). Otherwise the priority order applies, with failover. |