Models

GPT Image 2 Text-to-Image

Generates images from text at low, medium or high quality, with transparent or opaque backgrounds and sizes up to 3840×2160.

Cost depends on your settings.

Playground

Input
Advanced settings

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

Output
GPT Image 2 Text-to-Image: Kinetic gravity poster
Example

Try an example

Call this model from your code

Sends your Playground inputs to Comfy Router.

API docs (opens in a new tab)
  1. Get an API key

    Needs a paid Cloud plan with credits.

  2. Install the SDK

    Python 3.10+. Also on npm as @comfyorg/sdk.

    pip install comfy-sdk==0.2.0
  3. Run it

    Calls Comfy Router at this endpoint with your COMFY_API_KEY.

    POST /v2/models/openai/gpt-image-2

Fill in the Playground inputs to generate a request.

More from OpenAI

Compare OpenAI's other models. Price is the default setting; resolution and duration show the full range each model offers.