Skip to content

GPT Image 1

openai/gpt-image-1

GPT Image 1 is OpenAI's image generation model available through the API, capable of creating, editing, and generating variations of images from text descriptions with high fidelity and detail.

Image Gen
index.ts
import { experimental_generateImage as generateImage } from 'ai';
const result = await generateImage({
model: 'openai/gpt-image-1',
prompt: 'A red balloon on a wooden table.'
});

What To Consider When Choosing a Provider

  • Zero Data Retention

    AI Gateway does not currently support Zero Data Retention for this model. See the documentation for models that support ZDR.

    Authentication

    AI Gateway authenticates requests using an API key or OIDC token. You do not need to manage provider credentials directly.

GPT Image 1 is a generation-focused model, not a language model. It produces images from text descriptions rather than text from text. Pricing is per image generated rather than per token.

The model integrates into applications through the images API endpoint, accepting text prompts and returning generated images.

When to Use GPT Image 1

Best For

  • Product imagery:

    Generating product photos, mockups, and marketing visuals from descriptions

  • Content creation:

    Illustrations, thumbnails, and visual content for blogs and social media

  • Design iteration:

    Rapidly exploring visual concepts from text descriptions

  • Custom asset generation:

    Creating unique icons, backgrounds, and UI elements programmatically

  • Creative tools:

    Building image generation features into creative applications

Consider Alternatives When

  • Text tasks:

    Any GPT model for text generation, analysis, or coding

  • Image understanding:

    GPT-4o or GPT-4.1 for analyzing existing images rather than generating new ones

  • Video generation:

    Specialized video models for motion content

  • Photo-realistic editing:

    Specialized tools for precise photo manipulation

Conclusion

GPT Image 1 brings high-quality image generation to the API. You can build applications that create visual content programmatically through AI Gateway, alongside text-focused models.

FAQ

It creates images from text descriptions, supporting a wide range of subjects, styles, and compositions including photorealistic scenes, illustrations, diagrams, and artistic styles.

Yes. It supports image editing operations where you provide an existing image and describe the changes you want.

Pricing is per image generated, with costs varying by resolution and quality settings. Check the pricing section of this page for current rates.

Yes. The API accepts resolution and quality parameters that control the output characteristics.

AI Gateway accepts a single API key or OIDC token for all requests. You don't embed OpenAI credentials in your application; AI Gateway routes and authenticates on your behalf.

This page shows live performance metrics measured across real AI Gateway traffic.