Skip to main content

Overview

gpt-image-2-all is a GPT image generation reverse-engineered model available on the API易 platform. With extremely competitive pricing at $0.03/image per call, it generates images in about 30 seconds and supports text-to-image / single-image editing / multi-image fusion / natural-language editing — with high text-rendering fidelity, fewer content restrictions, and native support for Chinese prompts.
🎨 Highlights: Reliable reverse-engineered channel with a flat $0.03/image rate. No need to worry about size/quality/n parameters — just describe size and style in the prompt. Perfect for out-of-the-box image generation use cases.

Text-to-Image API

Generate images from text prompts. Includes an interactive playground for online testing.

Image Editing API

Upload reference images + edit/fusion instructions (multipart/form-data).

Core Features

Highly Competitive Pricing

Flat per-call pricing of $0.03/image, no resolution tiers, predictable costs

High Text Rendering

Stable rendering of Chinese/English text, signs, and poster text — ideal for infographics and marketing assets

Chinese Prompt Friendly

Native understanding of Chinese descriptions without translation

Multi-Image Fusion

Supports multiple reference images; prompts can reference them as “image1/image2/image3”

Fewer Content Restrictions

More permissive for creative content than some official models, higher success rate

R2 CDN Accelerated

Default returns R2 CDN URLs for global low-latency downloads. Can switch to b64_json.

Natural-Language Editing

Edit via conversational descriptions, no masks required, supports multi-turn iteration

Triple Endpoint Support

Compatible with /images/generations, /images/edits, and /chat/completions

Pricing

ModelBillingPriceOutput
gpt-image-2-allPer-call$0.03 / image1 image per call
Billing notes:
  • Flat pricing; no tiers by resolution, quality, or prompt length
  • Failed requests are not charged (auth failures, parameter validation errors)
  • For N images, call the API N times in parallel

Technical Specs

AttributeValue
Model namegpt-image-2-all
Channel typeOfficial reverse-engineered
Pricing$0.03 / image, per-call
Generation time~30 seconds
Output resolutionNo explicit size parameter; adaptive (describe in prompt)
Default response formaturl (R2 CDN accelerated link)
Alternative formatb64_json (already prefixed with data:image/png;base64,)
Chinese prompts✅ Natively supported
CapabilitiesText-to-image, single-image editing, multi-image fusion, natural-language editing

Endpoints

EndpointPurposeContent-Type
POST /v1/images/generationsText-to-imageapplication/json
POST /v1/images/editsImage editing (single/multi)multipart/form-data
POST /v1/chat/completionsChat-based (multi-turn + reference images)application/json
Domain options: api.apiyi.com is the main domain. You can also use alternate gateway domains such as b.apiyi.com / vip.apiyi.com. Response behavior is identical.

Size and Aspect Ratio Control

This model has no size parameter — size is described in the prompt. Proven-stable phrasings:
NeedSuggested Phrasing
Square1024×1024 square / 1:1 square composition
LandscapeLandscape 16:9 / Widescreen 16:9 cinematic
PortraitPortrait 9:16 / Phone poster 9:16
Ultra-wideBanner 21:9 ultra-widescreen
Classic print4:3 standard / 3:2 classic
Tip: Put size/composition words at the beginning of the prompt for better adherence. Pair with style descriptors (e.g., cinematic, phone poster, square composition) for more consistent results.

Best Practices

1

Put size at the start of the prompt

Ratio, resolution, and composition words at the front yield better adherence.
2

Use text elements confidently

Text rendering fidelity is a key selling point — signs, posters, infographics with Chinese/English text all work well.
3

Annotate multi-image order

image[] order is meaningful. Reference explicitly as “image1/image2/image3” in the prompt.
4

Choose response format by need

Use b64_json for direct web rendering; url for server-side storage/forwarding.
5

Use ≥120s timeout

Typical generation is ~30s, but set timeouts to at least 120s to absorb tail latency.
6

Don't send unused fields

size, n, quality, aspect_ratio have no effect; sending them may trigger validation errors.

Error Codes and Retries

StatusMeaningSuggestion
401Invalid tokenCheck Bearer Token
429Rate limit / quota exhaustedExponential backoff retry
5xxTransient gateway/backend errorRetry 1–2 times
TimeoutOccasional during peak hoursUse ≥120s client timeout
Client recommendations:
  • Request timeout starting at 120 seconds (typical ~30s, leaves 4× buffer for tails)
  • Use exponential backoff for 5xx and timeouts (2–3 retries recommended)
  • Log the request-id response header for debugging

FAQ

No. This model returns 1 image per call. For N images, call the API N times in parallel. Each call is billed independently at $0.03.
No. The b64_json field already includes the prefix. You can use it directly as <img src> or write it to a file. If your code follows the old “prepend prefix” pattern, you’ll produce a broken data URL — add a startsWith('data:') check first.
Adaptive models treat size descriptions as “guidance” rather than “forced”. To improve adherence: put size/composition words at the very start of the prompt, and combine with style descriptors (e.g., cinematic, phone poster, square composition).
Recommended ≤ 10MB per image, formats png / jpg / webp. Overly large images may hit gateway limits. Each image in multi-image fusion must meet this limit.
No. This model returns the image in one shot; streaming is not supported. If latency matters, show a “generating…” progress indicator on the client side and configure a 120s timeout.
Yes. Point base_url to https://api.apiyi.com/v1 and set api_key to your API易 token. However, client.images.generate() sends size/n by default — we recommend:
  • Use client.chat.completions.create() instead; or
  • Make raw HTTP calls with requests / fetch.
This model natively supports Chinese, and results are comparable. For Chinese-specific scenarios (calligraphy, traditional festival elements), Chinese phrasing feels more natural.
gpt-image-2-all is a reverse-engineered channel. Behavior is aligned but pricing/capabilities may not fully match the official version. For the official direct version, see GPT-Image-1.5.