UniAll AI SEO/GEO · GPT Image-2 · 2026-05-31

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:

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:

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 海外可用

常见问题

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.