G
GetLLMs

OpenAI GPT Image

Discover OpenAI GPT Image, a powerful tool for high-quality image generation. Ready to experience the power of AI? Start your journey here!

Platform: Replicate
Image GenerationMultimodal ModelCreative ContentText-to-Image
77.9k runs
1 per thousand output images
Commercial

🚀Function Overview

A multimodal model that generates high-quality images from text prompts and image inputs, featuring safety controls, custom styling, and precise output formatting.

Key Features

  • Generates images from textual descriptions
  • Accepts multimodal inputs (text + images)
  • Renders embedded text accurately
  • Adjustable safety moderation levels
  • Custom aspect ratio and output control

Use Cases

  • Creating promotional visuals from descriptions
  • Adding/modifying elements in existing images
  • Generating artwork in specific styles
  • Producing images with embedded text elements

⚙️Input Parameters

openai_api_key

string

Your OpenAI API key

prompt

string

A text description of the desired image

aspect_ratio

string

The aspect ratio of the generated image

input_images

array

A list of images to use as input for the generation

number_of_images

integer

Number of images to generate (1-10)

quality

string

The quality of the generated image

background

string

Set whether the background is transparent or opaque or choose automatically

output_compression

integer

Compression level (0-100%)

output_format

string

Output format

moderation

string

Content moderation level

user_id

string

An optional unique identifier representing your end-user. This helps OpenAI monitor and detect abuse.

💡Usage Examples

Example 1

Input Parameters

{
  "prompt": "Add the floral pattern to the vase",
  "quality": "auto",
  "background": "auto",
  "moderation": "auto",
  "aspect_ratio": "1:1",
  "input_images": [
    "https://replicate.delivery/pbxt/MusWuQJm1RJPu1Cj0ajRmoMnHyYNPk6ljT1QCU4DbHMsqDTF/53541851-62f3-44a7-b075-ef053ae2f324.jpg",
    "https://replicate.delivery/pbxt/MusWuPkfcvyZQuuXeMIbQXEMe9K2G8rDCNraQffAt0OzMRaT/colored-flower-pattern-free-vector.jpg"
  ],
  "output_format": "webp",
  "openai_api_key": "[REDACTED]",
  "number_of_images": 1,
  "output_compression": 90
}

Output Results

https://replicate.delivery/xezq/hEcJpm50O9ouFVu506qf6wAjLKc4MH1oFeRZ4PORmTqVqVnUA/tmpfkxavg8q.png