What is GPT Image-2 API?

GPT Image-2 API gives developers and teams access to AI image generation through the public model id `gpt-image-2-origin` on UniAll AI. It supports both text-to-image and image-to-image workflows, including reference-image generation for product visuals, posters, social media graphics, brand concepts, and creative automation.

The model is suitable for teams that need programmable image generation rather than one-off manual prompting. Common users include ecommerce operators, marketing teams, SaaS builders, design automation tools, agencies, and developers building AI image workflows.

Core capabilities

GPT Image-2 supports:

  • **Text-to-image**: generate images from a prompt.
  • **Image-to-image**: use one or more reference images with a prompt.
  • **Reference images**: upload PNG, JPEG, or WebP inputs, with support for up to 6 reference images in the API schema.
  • **Aspect ratio control**: `1:1`, `16:9`, `9:16`, `4:3`, `3:4`, `3:2`, `2:3`, and `4:5`.
  • **Resolution tiers**: `1K`, `2K`, and `4K`.
  • **Batch-style output count**: request 1, 2, or 4 images per call, with the interface allowing up to 8 where supported by configuration.
  • **Async generation**: requests are processed asynchronously, which is useful for production apps and workflow queues.

API usage

Use the UniAll AI image generation endpoint with model id `gpt-image-2-origin`.

```json { "model": "gpt-image-2-origin", "generation_mode": "image_to_image", "image_url": ["https://example.com/reference-1.png"], "prompt": "A premium product poster with clean lighting and sharp details.", "aspect_ratio": "1:1", "resolution": "1K", "num_images": 1 } ```

For text-to-image, omit `image_url` and set:

```json { "model": "gpt-image-2-origin", "generation_mode": "text_to_image", "prompt": "A modern ecommerce hero image for a minimalist skincare brand.", "aspect_ratio": "4:5", "resolution": "1K", "num_images": 1 } ```

Required fields by mode

| Mode | Required fields | |---|---| | `text_to_image` | `prompt` | | `image_to_image` | `prompt`, `image_url` |

The request interface also requires a size-related configuration through the supported output settings. In this model configuration, practical sizing is controlled through `aspect_ratio` and `resolution`.

Pricing angle

GPT Image-2 on UniAll AI is billed per generated image. Current listed user pricing starts at **$0.01836 per image for 1K** output.

Resolution-based pricing:

| Resolution | Price per image | |---|---:| | 1K | $0.01836 | | 2K | $0.05576 | | 4K | $0.11424 |

Because higher resolutions cost more, teams often prototype prompts at 1K, then generate final production assets at 2K or 4K after the creative direction is approved.

Best-fit use cases

GPT Image-2 is useful when you need repeatable image generation inside a product or business workflow:

  • Ecommerce main images and product posters
  • Product photography concepts
  • Brand visual exploration
  • Social media campaign assets
  • Multi-reference image generation
  • Character or style consistency experiments
  • Automated creative pipelines for agencies and SaaS apps

Reliability and production notes

The model supports async requests, retry-on-failure behavior, and refund-on-failure handling according to the UniAll AI model configuration. For production use, implement task polling or callback handling, store prompt and parameter versions, and retry only idempotent jobs to avoid duplicate creative outputs.

GPT Image-2 APIGPT Image-2 模型GPT Image-2 价格GPT Image-2 官方价格GPT Image-2 计费GPT Image-2 教程GPT Image-2 接口文档gpt-image-2-origin APIgpt-image-2-origin 模型GPT Image-2 图片模型GPT Image-2 国内可用GPT Image-2 海外可用GPT Image-2 API KeyGPT Image-2 在线生成

常见问题

What is the public model id for GPT Image-2 API?

The public model id is `gpt-image-2-origin`. Use this value in the `model` field when calling the UniAll AI image generation endpoint.

Does GPT Image-2 support both text-to-image and image-to-image?

Yes. GPT Image-2 supports `text_to_image` with a prompt and `image_to_image` with both a prompt and reference image URLs. The configuration supports PNG, JPEG, and WebP reference images.

How is GPT Image-2 priced?

GPT Image-2 is billed per generated image. Listed user pricing starts at $0.01836 per image for 1K, with higher prices for 2K and 4K output.

站内推荐路径

GPT Image-2 价格与接入指南:从单张成本到业务工作流的核算方法了解 GPT Image-2 价格评估方法、gpt-image-2-origin API 接入思路、文生图与图生图工作流、成本控制、风险边界和适合的业务场景。文章GPT Image-2 替代方案怎么选:从 API 接入、成本控制到业务交付面向开发者和业务团队的 GPT Image-2 替代方案指南,分析 gpt-image-2-origin API、文生图、图生图、成本控制、工作流接入与 UniAll AI 的业务适配思路。文章GPT Image-2 对比指南:从 API 接入、图生图工作流到成本控制的实战判断面向开发者与业务团队的 GPT Image-2 对比分析,覆盖 gpt-image-2-origin API、文生图、图生图、成本控制、适用场景、风险与接入建议。文章GPT Image-2 怎么用:从 API 接入到文生图、图生图与成本控制面向开发者和业务团队的 GPT Image-2 使用指南,覆盖 gpt-image-2-origin API 接入、参考图工作流、比例分辨率、画质参数、成本控制、风险与落地场景。文章GPT Image-2 APIGPT Image-2 可在 UniAll AI 调用,OpenAI 图片生成模型,支持参考图、比例、分辨率和画质参数。 价格参考:$0.018 / image。查看模型 ID、能力、价格和接入说明。模型Nano Banana 2 APINano Banana 2 可在 UniAll AI 调用,Nano Banana 2 图片生成模型,支持参考图创作和 1K/2K/4K 规格切换。 价格参考:$0.054 / image。查看模型 ID、能力、价格和接入说明。模型Nano Banana 2 0.5K APINano Banana 2 0.5K 可在 UniAll AI 调用,Nano Banana 2 图片生成模型,支持参考图创作和 0.5K/1K/2K/4K 规格切换。 价格参考:$0.041 / image。查看模型 ID、能力、价格和接入说明。模型Nano Banana 2 2K APINano Banana 2 2K 可在 UniAll AI 调用,Nano Banana 2 高清图片生成,适合海报、商品图和商业素材。 价格参考:$0.082 / image。查看模型 ID、能力、价格和接入说明。模型Nano Banana 2 4K APINano Banana 2 4K 可在 UniAll AI 调用,Nano Banana 2 4K 图片生成,面向精细视觉、高清物料和交付级素材。 价格参考:$0.109 / image。查看模型 ID、能力、价格和接入说明。模型Nano Banana Pro APINano Banana Pro 可在 UniAll AI 调用,高质量图片生成,支持参考图创作和 1K/2K/4K 规格切换。 价格参考:$0.102 / image。查看模型 ID、能力、价格和接入说明。模型