GPT-4o Image API
Build with GPT-4o image generation for text-to-image, image-to-image, and inpainting workflows. EvoLink routes requests asynchronously, returns task IDs, and delivers time-limited image URLs.
Upload reference images
Click to upload or drag and drop
Supported formats: JPG, JPEG, PNG, WEBP
Maximum file size: 10MB; Maximum files: 10

History
Max 20 items0 running · 0 completed
GPT-4o Image API: text-accurate visuals and controllable edits
Create marketing graphics, product shots, and design assets with improved text rendering and instruction following. Use masks for precise edits, iterate with image-to-image, and pick sizes like 1024x1024, 1024x1536, or 1536x1024.

What can you build with the GPT-4o Image API?
Readable text in real designs
Generate posters, menus, UI mockups, and slides where copy stays legible and aligned to your layout.

Product and brand imagery at scale
Create consistent product shots and lifestyle scenes, then iterate with image-to-image for fast variations.

Targeted edits with masks
Submit a base image plus a transparency mask to replace or refine only the region you need.

Why developers choose the GPT-4o Image API
A single endpoint for generation and edits, backed by GPT-4o image generation. Async task IDs, flexible sizes, and reference-image guidance help teams ship faster.
Text fidelity for real-world assets
GPT-4o image generation is designed to improve text rendering and instruction adherence for production-ready visuals.
Unified modes in one API
Text-to-image, image-to-image, and image editing workflows share the same endpoint with a simple payload.
Reference-image guidance
Use uploaded images as visual references to keep details and style aligned across iterations.
How to integrate the GPT-4o Image API
Create, edit, and retrieve images through an async task flow.
Step 1 - Choose mode and size
Set your model to `gpt-4o-image`, then pick `1:1`, `2:3`, `3:2` or pixel sizes like `1024x1024`, `1024x1536`, and `1536x1024`.
Step 2 - Provide prompt and inputs
Send detailed instructions. For edits, include a base image and a mask so only the target region changes.
Step 3 - Poll task and download
Receive a task ID, query status, and download results. Image links are temporary, so save them promptly.
Core API Capabilities
Powered by GPT-4o image generation
Text-Accurate Rendering
Designed to improve legible text in images and reduce spelling errors.
Image-to-Image and Editing
Support for text-to-image, image-to-image, and mask-based edits in one endpoint.
Flexible Aspect Ratios
Use `1:1`, `2:3`, `3:2` or explicit pixel sizes like `1024x1536`.
Async Task Workflow
Receive task IDs for generation and edits, then poll for completion.
Reference Image Guidance
Use uploaded images as references to guide composition and detail.
Prompt Length Control
Prompts support up to 2000 tokens for detailed instructions.
GPT-4o Image API - Frequently Asked Questions
Everything you need to know about the product and billing.
API Reference
Select endpoint
Authentication
All APIs require Bearer Token authentication.
Authorization:
Bearer YOUR_API_KEY/v1/images/generationsGenerate Image
Create an image generation task using text prompts or reference images. Supports text-to-image, image-to-image, and image editing modes.
Asynchronous processing mode, use the returned task ID to .
Generated image links are valid for 24 hours, please save them promptly.
Request Parameters
modelstringRequiredDefault: gpt-4o-imageImage generation model name.
gpt-4o-imagepromptstringRequiredPrompt describing the image to be generated or how to edit the input image.
Notes
- Limited to 2000 tokens
A cat playing in the grasssizestringOptionalSize of the generated image. Supports ratio format and pixel format.
| Value | Description |
|---|---|
| 1:1 | Square ratio |
| 2:3 | Portrait ratio |
| 3:2 | Landscape ratio |
| 1024x1024 | Square (1024×1024) |
| 1024x1536 | Portrait (1024×1536) |
| 1536x1024 | Landscape (1536×1024) |
1024x1024nintegerOptionalNumber of images to generate.
| Value | Description |
|---|---|
| 1 | Generate 1 image |
| 2 | Generate 2 images |
| 4 | Generate 4 images |
Notes
- Pre-charged based on n value, actual charge based on generated count
1image_urlsarrayOptionalReference image URL list for image-to-image and image editing functions.
Notes
- Max 5 images per request
- Max size: 10MB per image
- Formats: .jpeg, .jpg, .png, .webp
- URLs must be directly accessible by the server
https://example.com/image1.pngmask_urlstringOptionalMask image URL for image editing.
Notes
- Mask and reference image must be PNG format with same dimensions
- Max size: 4MB
- Cannot be used when image_urls contains more than 1 image
https://example.com/mask.pngcallback_urlstringOptionalHTTPS callback address after task completion.
Notes
- Triggered on completion, failure, or cancellation
- Sent after billing confirmation
- HTTPS only, no internal IPs
- Max length: 2048 chars
- Timeout: 10s, Max 3 retries
https://your-domain.com/webhooks/image-task-completed