OpenAI

image

4o Image API

Generate or edit images with AI

Pricing · 100 credits = $1

Input

(Required) Aspect ratio of the generated image. Must be one of the listed values.

(Optional) Text prompt that conveys the creative idea you want the 4o model to render. Required if neither `files_url` nor `file_url` is supplied. At least one of `prompt` or `files_url` must be provided.

(Optional, Deprecated) File URL, such as an image URL. If file_url is provided, 4o image may create based on this image. This parameter will be deprecated in the future, please use files_url instead.

(Optional) Up to 5 publicly reachable image URLs to serve as reference or source material. Use this when you want to edit or build upon an existing picture. Supported formats:.jfif,.pjpeg,.jpeg,.pjp,.jpg,.png,.webp. At least one of `prompt` or `files_url` must be provided.

Runs use your account credits. View this model’s prices100 credits = $1.00 USD · Charged for successful work.

Checking your session…

Output

A little curiosity. A new creation.

Give 4o Image an input and see what it can do. Your result will appear here.

Keep exploring

All models →