---
title: "GPT Image 2 Text-to-Image API & Playground - Comfy"
description: "GPT Image 2 Text-to-Image by OpenAI: Generates or edits an image with top-tier text rendering, 1K/2K/4K output, reference images, and optional mask inpainting."
canonical: https://comfy.org/hub/models/gpt-image-2-text-to-image/
lang: en
index: https://comfy.org/llms.txt
---

[Back to all models](https://comfy.org/hub/models/)

OpenAI

[Generate images](https://comfy.org/hub/models/?useCase=generate-images)

# GPT Image 2 Text-to-Image

Generates or edits an image with top-tier text rendering, 1K/2K/4K output, reference images, and optional mask inpainting.

Cost depends on your settings.

- [text-rendering](https://comfy.org/hub/models/?q=text-rendering)
- [editing](https://comfy.org/hub/models/?q=editing)
- [typography](https://comfy.org/hub/models/?q=typography)
-

[Read docs](https://docs.comfy.org/development/comfy-router/models#openai)

Input

Prompt

Image size

Advanced settings

Background

Compression

Set compression for JPEG or WebP output, from 0 to 100.

Output format

Quality

Output

![GPT Image 2 Text-to-Image: Kinetic gravity poster](https://media.comfy.org/website/workshop/openai/gpt-image-2/kinetic-gravity-poster.png)

Example

## Try an example

- High-energy commercial poster, wide format. A skateboarder in a black hoodie and orange socks leaps through a wall of massive 3D chrome letters reading "GRAVITY" that shatter into mirrored shards around him, captured in extreme low-angle forced perspective against a flat cobalt-blue backdrop. Shards and dust hang in mid-air suspension, halftone grain across the sky, a radial speed-line burst behind the letters. A small white badge in the bottom-left corner reads "ISSUE 04". Bare-flash lighting with crisp highlights on the chrome, high-contrast, glossy and matte surfaces distinct, every letter perfectly formed.

## More from OpenAI

[Browse all Browse all models](https://comfy.org/hub/models/)

- [OpenAI

  ### GPT Image 2.5 Flare

  Text to Image

  openai gpt-image text-rendering editing typography photorealistic 4k high-resolution image-to-image](https://comfy.org/hub/models/gpt-image-2-5-flare-text-to-image/)
- [OpenAI

  ### GPT Image 2.5 Sunburst

  Text to Image

  openai gpt-image text-rendering editing typography photorealistic 4k high-resolution image-to-image](https://comfy.org/hub/models/gpt-image-2-5-sunburst-text-to-image/)
- [OpenAI

  ### GPT Image 1 Image Edit

  Text to Image

  openai gpt-image text-rendering editing image-to-image](https://comfy.org/hub/models/gpt-image-1-image-edit/)
- [OpenAI

  ### GPT Image 1.5 Image Edit

  Text to Image

  openai gpt-image text-rendering editing image-to-image](https://comfy.org/hub/models/gpt-image-1-5-image-edit/)
