Generate Image Asset
generate_image_assetGenerate an image from a text prompt via OpenAI, save it into Context Bridge staging, and return the local file path and metadata.
Instructions
Generate an image with OpenAI image generation, save it into Context Bridge staging, and return the local staged file path plus manifest metadata. Requires OPENAI_API_KEY. Does not publish media.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Generated image size. | 1024x1024 |
| model | No | OpenAI GPT image model to use. | gpt-image-1.5 |
| prompt | Yes | Text prompt for OpenAI image generation. | |
| quality | No | Generated image quality. | auto |
| background | No | Background handling for supported formats. | auto |
| moderation | No | Content moderation level for GPT image models. | auto |
| output_format | No | File format to save in staging. | png |
| source_chat_id | No | Optional staged chat ID associated with the generated image. | |
| response_format | No | Output format: markdown or json. | markdown |
| usage_rights_note | No | Usage rights or publication review note. | |
| suggested_homebase_folder | No | Suggested Homebase media folder. |