Prerequisites
- An OpenAI account with API access and billing enabled
- An OpenAI API key with Images API permissions
- For edit/variation: source images as base64 PNG (DALL-E 2) or supported formats for gpt-image-1
- project_contributor access in AgentRuntime
Connect in AgentRuntime
1
Get an OpenAI API key
Create a key at platform.openai.com. Ensure your organization can use image models.
2
Create a connection
Go to Connections and click New custom connection to create an API key connection with
APIKey. Optionally set DefaultModel (e.g. gpt-image-1 or dall-e-3) and APIBase.3
Add openaiimage MCP instance
Go to MCP, click Add instance for openaiimage, wire your connection on Instance config, set the profile active, and save.
4
Generate a test image
Run mcp_call →
openai_text_to_image with a short prompt to confirm billing and model access.What you can build
- Marketing assets — LLM writes creative brief →
openai_text_to_image→ upload to Google Drive or S3. - Product mockups — Reference screenshot base64 →
openai_edit_imagewith style instructions. - A/B variants —
openai_image_variationon approved hero image → human_task picks winner. - Report illustrations — Workflow data → LLM prompt → image embedded in PDF via Browserless.
Tools
Example
Generate a social image from an LLM-crafted prompt:Configuration
Troubleshooting
Related
- Integrations quickstart
- Gemini Images connector — Google image generation
- Connector catalog
- Troubleshooting