# openai/gpt-image-2

![openai](<https://img.modellix.ai/modelix-models-image/20260515/openai.png?v=1&w=640&h=640>)[文档](<https://docs.modellix.ai/openai/gpt-image-2>)

[Schema](<https://www.modellix.ai/models/openai/gpt-image-2/api_schema>)

### OpenAI's text-to-image model for detailed portraits, product shots, and cinematic frames at high resolution. It renders preset sizes up to 4K, including 3840x2160 and vertical 2160x3840, at low, medium, or high quality.

~~官方价格: $0.0060\~$0.2110/img~~$0.0054\~$0.1899/img

text-to-image

## README

## What GPT Image 2 Does

GPT Image 2 is a state-of-the-art text-to-image generation model that turns text prompts into detailed, photorealistic images. It natively supports ultra-high resolution output up to 4K, making it a strong default choice whenever you need high-quality, true-to-life visuals.

## Key Features

- **Photorealistic Quality:** Excels at producing detailed, lifelike images with accurate textures, lighting, and composition.
- **Native 4K Resolution:** Supports ultra-high resolution output up to 3840x2160 (and 2160x3840) without external upscaling.
- **Flexible Sizes & Orientations:** Offers square, landscape, and portrait sizes from 1024x1024 up to 2048x2048 and 4K formats.
- **Selectable Quality Tiers:** Choose `low` for fast drafts, `medium` for balance, or `high` for best fidelity.
- **Long, Detailed Prompts:** Accepts prompts up to 32,000 characters for richly specified scenes.
- **Asynchronous Architecture:** Uses a “Create Task → Poll Result” API workflow for reliable, scalable generation.

## How to Use GPT Image 2

1. Write a detailed text prompt describing the subject, style, lighting, and composition you want.
2. Submit a `POST` request to the `/api/v1/openai/gpt-image-2` endpoint with your `prompt` and optional `size` and `quality` parameters.
3. Receive a `task_id` with a “pending” or “processing” status in the response.
4. Poll `GET /api/v1/tasks/{task_id}` to monitor progress.
5. Once the task succeeds, retrieve and download the generated image.

## Best Use Cases

- **Photorealistic Marketing Visuals:** Create high-fidelity product, lifestyle, and campaign imagery.
- **Editorial & Concept Art:** Generate detailed scenes and illustrations at print-ready 4K resolution.
- **Hero & Banner Imagery:** Produce large-format visuals for websites and ads without upscaling artifacts.
- **Design Mockups:** Visualize realistic environments, packaging, and scenes for client presentations.

## Tips for Better Results

- **Don’t Use It for Transparent Backgrounds:** GPT Image 2 has no `background: transparent` support — for icons or UI assets, route to GPT Image 1.5 instead.
- **Draft Low, Finalize High:** Iterate with `quality: low` for speed, then re-run your best prompt at `quality: high`.
- **Match Size to Output:** Pick a `size` that fits the final placement (e.g., 1536x1024 landscape, 1024x1536 portrait, 3840x2160 for 4K).
- **Be Specific About Realism:** Describe lighting, materials, camera lens, and mood to maximize photorealistic fidelity.
- **Use the Long Prompt Window:** Take advantage of the large character limit to fully specify complex scenes rather than leaving details to chance.

## 属性

- 提供商: [openai](<https://www.modellix.ai/zh_CN/providers/openai.md>)
- 类别: [文生图](<https://www.modellix.ai/zh_CN/category/text-to-image.md>)

### 系列

- [GPT Image](<https://www.modellix.ai/zh_CN/series/gpt-image.md>)

### 集合

- [AI Art Generator](<https://www.modellix.ai/zh_CN/collections/ai-art-generator.md>)
- [AI Portrait Generator](<https://www.modellix.ai/zh_CN/collections/ai-portrait-generator.md>)

## 参数

| 参数名 | 描述 | 类型 | 必填 | 枚举值 |
| --- | --- | --- | --- | --- |
| prompt | Image description text, supports up to 32,000 characters | string | 是 | \- |
| quality | Image quality level. ‘low’: fast draft (default), ‘medium’: balanced, ‘high’: best quality | string | 否 | `low`, `medium`, `high` |
| size | Output size as width x height, or ‘auto’ for model-selected size. Presets are valid under OpenAI constraints (total pixels 655360-8294400, edges multiples of 16). Mapping: 1:1 1K/2K; 3:2 1K/2K; 2:3 1K/2K; 4:3 1K/2K; 3:4 1K/2K; 16:9 2K/4K; 9:16 2K/4K. No 1K for 16:9/9:16; no 4K for non-widescreen ratios. | string | 否 | `auto`, `1024x1024`, `2048x2048`, `1536x1024`, `3072x2048`, `1024x1536`, `2048x3072`, `1024x768`, `2048x1536`, `768x1024`, `1536x2048`, `2048x1152`, `3840x2160`, `1152x2048`, `2160x3840` |

## 价格

| 维度 | 价格（$/img） |
| --- | --- |
| quality: low | 0.0054 |
| quality: medium | 0.0477 |
| quality: high | 0.1899 |

## 相关模型

- [openai/gpt-image-2.5-flare-edit](<https://www.modellix.ai/zh_CN/models/openai/gpt-image-2.5-flare-edit.md>): OpenAI’s fast image-editing model for everyday retouching, product changes, and masked local edits. It works from 1 to 16 reference images at 1K, 2K, or 4K, including transparent backgrounds, with lower latency than GPT Image 2 Edit.
- [openai/gpt-image-2.5-flare](<https://www.modellix.ai/zh_CN/models/openai/gpt-image-2.5-flare.md>): OpenAI’s fast text-to-image model for social content, product shots, and high-volume drafts, with higher image quality and lower latency than GPT Image 2. It renders at 1K, 2K, or 4K, including vertical 9:16 and ultrawide 21:9 frames, with transparent backgrounds and quality up to max.
- [openai/gpt-image-2.5-sunburst-edit](<https://www.modellix.ai/zh_CN/models/openai/gpt-image-2.5-sunburst-edit.md>): OpenAI’s most capable image-editing model for campaign changes, product retouching, and masked local edits. It works from 1 to 16 reference images at 1K, 2K, or 4K, including transparent backgrounds.
- [openai/gpt-image-2.5-sunburst](<https://www.modellix.ai/zh_CN/models/openai/gpt-image-2.5-sunburst.md>): OpenAI’s most capable text-to-image model for campaign creative, polished product imagery, and detailed illustrations. It renders at 1K, 2K, or 4K, including vertical 9:16 and ultrawide 21:9 frames, with transparent backgrounds and quality up to max.
- [openai/gpt-image-2-edit](<https://www.modellix.ai/zh_CN/models/openai/gpt-image-2-edit.md>): OpenAI’s image-editing model for high-resolution retouching, style changes, and masked local edits. It works from 1 to 16 source images and can return sizes up to 4K, including 3840x2160.
- [google/nano-banana-2](<https://www.modellix.ai/zh_CN/models/google/nano-banana-2.md>): Google’s fast text-to-image model for high-volume drafts, stylized graphics, and readable posters. It renders at 512, 1K, 2K, or 4K, including extra-wide and extra-tall frames.
- [google/nano-banana-pro](<https://www.modellix.ai/zh_CN/models/google/nano-banana-pro.md>): Google’s premium text-to-image model for professional assets, brand layouts, and complex instructions. It renders at 1K, 2K, or 4K, with precise text and consistent subjects.
- [kling/kling-v3-t2i](<https://www.modellix.ai/zh_CN/models/kling/kling-v3-t2i.md>): Kling’s text-to-image model for concept art and photorealistic stills. It returns up to 9 images at 1K or 2K, including vertical 9:16 and ultrawide 21:9 frames.
- [xai/grok-imagine-image-quality](<https://www.modellix.ai/zh_CN/models/xai/grok-imagine-image-quality.md>): xAI’s higher-fidelity text-to-image model for detailed concept art, marketing visuals, and scenes that need realistic texture, stronger rendered text, and tighter prompt following. It generates images at 1K or 2K across a wide set of aspect ratios.
- [bytedance/seedream-5.0-pro](<https://www.modellix.ai/zh_CN/models/bytedance/seedream-5.0-pro.md>): ByteDance’s flagship text-to-image model for professional design, photorealistic shots, and brand visuals. It returns one finished image at up to 2K, with precise placement, readable text, and consistent quality.
- [alibaba/qwen-image-3.0-pro](<https://www.modellix.ai/zh_CN/models/alibaba/qwen-image-3.0-pro.md>): Alibaba’s text-to-image model for newspapers, storyboards, menus, and other dense layouts. It renders small multilingual text and photographic detail, and can return up to six images at up to 2K.
- [microsoft/mai-image-2.6](<https://www.modellix.ai/zh_CN/models/microsoft/mai-image-2.6.md>): Microsoft’s text-to-image model for marketing visuals, product shots, portraits, and posters that need readable text. It improves text rendering, portraits, and photorealistic commercial images over MAI Image 2.5, with each side from 768 to 1365 pixels.
- [microsoft/mai-image-2.6-flash](<https://www.modellix.ai/zh_CN/models/microsoft/mai-image-2.6-flash.md>): Microsoft’s faster text-to-image model for high-volume drafts, interactive tools, and production pipelines, with lower latency than MAI Image 2.6. It keeps the same text rendering and portrait range, with each side from 768 to 1365 pixels.
- [google/nano-banana-2.1](<https://www.modellix.ai/zh_CN/models/google/nano-banana-2.1.md>): Google’s fast text-to-image model for high-volume production, readable posters and diagrams, and rapid iteration. It keeps Flash-level speed at 1K, 2K, and 4K, with stronger visual quality, text rendering, and real-world knowledge than Nano Banana 2.
- [bytedance/seedream-5.5](<https://www.modellix.ai/zh_CN/models/bytedance/seedream-5.5.md>): ByteDance’s text-to-image model for product visuals, posters, stickers, and design assets. It follows detailed composition prompts and generates native transparent or translucent backgrounds for elements that can be reused in larger designs.
- [bytedance/seedream-5.0-lite](<https://www.modellix.ai/zh_CN/models/bytedance/seedream-5.0-lite.md>): ByteDance’s reasoning text-to-image model for infographics, text-heavy designs, and images that draw on current knowledge. It renders at 2K or 3K and can return a set of related images.

## 相关资源

[**GPT Image**](<https://www.modellix.ai/zh_CN/series/gpt-image.md>)

Series

[**AI Art Generator**](<https://www.modellix.ai/zh_CN/collections/ai-art-generator.md>)

Collection

[**AI Portrait Generator**](<https://www.modellix.ai/zh_CN/collections/ai-portrait-generator.md>)

Collection

[**openai/gpt-image-2.5-flare-edit**](<https://www.modellix.ai/zh_CN/models/openai/gpt-image-2.5-flare-edit.md>)

image-to-image

[**openai/gpt-image-2.5-flare**](<https://www.modellix.ai/zh_CN/models/openai/gpt-image-2.5-flare.md>)

text-to-image

[**openai/gpt-image-2.5-sunburst-edit**](<https://www.modellix.ai/zh_CN/models/openai/gpt-image-2.5-sunburst-edit.md>)

image-to-image

[**openai/gpt-image-2.5-sunburst**](<https://www.modellix.ai/zh_CN/models/openai/gpt-image-2.5-sunburst.md>)

text-to-image

[**openai/gpt-image-2-edit**](<https://www.modellix.ai/zh_CN/models/openai/gpt-image-2-edit.md>)

image-to-image
