GPT Image 2 API
Image APIHOTGPT Image 2 API is built for production image generation workflows that need prompt-driven creation, reference image editing, and predictable API payloads. Use it to create campaign visuals, product shots, social creatives, and design mockups without leaving the SdanceAI generation flow.
The current integration exposes Text to Image and Image to Image variants with 1K, 2K, and 4K pricing tiers, plus common aspect ratios for square, vertical, horizontal, and portrait outputs.
Lowest cost starts at $0.015/image
1K: 3 credits - Text to Image - Fixed per generation
2K: 5 credits - Text to Image - Fixed per generation
4K: 8 credits - Text to Image - Fixed per generation
USD estimates use $0.005/credit with the best annual plan. Final billing follows the selected resolution and model variant.
Core request fields
Use a compact payload for prompt, source images, aspect ratio, resolution, callback, and safety settings.
{
"model": "gpt-image-2-text-to-image",
"input": {
"prompt": "A cinematic night city poster with neon reflections on a rainy street.",
"aspect_ratio": "auto"
}
}Use Text to Image for generation
The playground, request sample, request fields, and pricing on this page follow the selected model type.
View detailed API docsOpen the full API documentation for endpoints, authentication, task polling, and payload details. /models/gpt-image-2.md
promptstringText prompt. Required, maximum 20,000 characters.aspect_ratioenumThe aspect ratio of the generated image is set to auto by default. (auto, 1:1, 3:2, 2:3, 4:3, 3:4, 5:4, 4:5, 16:9, 9:16, 2:1, 1:2, 3:1, 1:3, 21:9, 9:21)resolutionenumImage resolution: Note: Images with a 1:1 aspect ratio cannot be converted to 4K images. Images with the aspect ratio set to "auto" or without a specified aspect ratio parameter will only be converted to 1K images; otherwise, the task will fail to create. (1K, 2K, 4K)What GPT Image 2 API adds to your image workflow
The page follows the same API-first structure as the reference: test the model, understand the fields, then move into integration.
Text-to-image creation
Turn structured prompts into production-ready visuals for posters, ads, thumbnails, concept art, and product scenes.
Reference image editing
Use image inputs to preserve subject context while changing style, background, layout, lighting, or product presentation.
Resolution tiers
Select 1K, 2K, or 4K output tiers to balance iteration cost, preview quality, and final asset sharpness.
API-ready payloads
Work with model IDs, callback URLs, prompt text, input image URLs, aspect ratios, and resolution fields in one predictable request.
From prompt test to image API request
A direct path for teams that want to validate image quality before wiring generation into an app or content pipeline.
1. Choose a mode
Select Text to Image for new visuals or Image to Image when you want reference-guided edits.
2. Submit generation
Call the API with your account key, model ID, prompt, optional input image URLs, aspect ratio, and resolution.
3. Poll and use
Track the task until it succeeds, then use the generated image result in your app, campaign, or asset library.
What you can create with GPT Image 2 API
Use the API when your product needs repeatable, high-quality image generation rather than one-off manual exports.
Successful GPT Image 2 generations from the community
Browse public GPT Image 2 outputs that finished successfully, then open any case to inspect the prompt, settings, and result.

GPT Image-2 - Text to Image
文章标题:org_b_admin 前台隔离测试标题 20 核心关键词:org_b_admin 测试关键词 20 文章摘要:org b admin 前台隔离测试标题 20 核心摘要 文档类型 :面向决策的榜单型对比文章,适合快速筛选、摘要引用和方案比较。 推荐对象 :正在评估 org b admin 测试关键词 20 相关方案的产品、技术、测试或运营团队,尤其是需要做前台隔离、环境区分或权限边界验证的人群。 TOP Pick : 方案1:独立前台隔离 + 统一后台管控 。它通常在 请生成一张文章封面图,横向构图,适合资讯/博客封面,主体明确,真实、清晰、专业,不要出现文字、水印或 logo。

GPT Image-2 - Text to Image
聖人都是窮光蛋。 姜子牙釣的不是魚,是周文王。 諸葛亮等的不是雨,是劉備。 孔子週遊18年,餓到絕糧。 21世紀的聖人,也在茅屋等一個人。 但他們手裡永遠握著光。

GPT Image-2 - Text to Image
拍攝一張金色時刻的暖色調光線,模特是一位美麗的女士,使用提供的照片中的面部特徵和髮型。她身穿一件奢華的黑色蕾絲吊帶,袖子上有一個時尚的鏤空設計。優雅自信的姿態,她回眸一瞥,眼神優雅而神秘。她有一雙灰色的眼睛,一頭烏黑的長髮如瀑布般傾瀉而下。

GPT Image-2 - Text to Image
Female-oriented Chinese web novel cover, romantic military marriage story, 1980s Chinese period romance, soft anime illustration style, manga promotional poster style, vertical book cover composition, close-up portrait of the main couple, title theme “替嫁糙汉军官后,娇娇军医被宠透”, author “顾翠微”. An anime-style illustration featuring a young couple in a warm nostalgic military romance setting. On the left, a tall rugged young military officer with short slightly messy black hair, sun-tanned skin, sharp eyebrows, deep dark eyes, and a faint restrained smile. He has a masculine, rough, protective temperament, wearing a fictional retro green military-style jacket with no real military insignia or political symbols. His body is angled slightly away, but his eyes look toward the viewer with calm confidence and hidden tenderness. To the right and slightly in front of him, a delicate young female military doctor with fair soft skin, large expressive dark eyes, and long black hair tied neatly with a few gentle loose strands. She wears a light cream blouse under a simple white medical coat, holding a vintage medical kit close to her chest. Her expression is shy, gentle, and slightly nervous, with a soft blush, but her eyes also reveal quiet resilience and kindness. The male officer stands close behind her in a protective posture, creating a strong contrast between his rugged strength and her soft medical beauty. Their relationship feels intimate but restrained, sweet but not overly explicit, full of hidden affection, arranged marriage romance, protective love, healing romance, “rough military husband spoils delicate doctor wife” atmosphere. Background: a soft blurred retro military compound and small-town hospital courtyard, pale sky, warm sunlight, faint green trees, old wooden windows, subtle nostalgic 1980s Chinese period details. The composition focuses on their faces and upper bodies, romantic close-up portrait, gentle pastel colors mixed with warm cream, soft green, pale blue, and light peach tones. Soft diffused lighting, warm backlight, dreamy atmosphere, shallow depth of field, clean and beautiful female-oriented web novel cover style. High-quality anime illustration, delicate line art, beautiful facial features, expressive eyes, soft romantic atmosphere, elegant commercial novel cover, popular Chinese romance manhua style, warm and sweet emotional tension, vertical composition, space reserved at the top for the book title and at the bottom for the author name, high detail, 4K, polished promotional art.

GPT Image-2 - Text to Image
Female-oriented Chinese web novel cover, romantic military marriage drama, 1980s Chinese period romance, cinematic TV drama poster style, vertical book cover composition, title theme “替嫁糙汉军官后,娇娇军医被宠透”. A delicate young female military doctor, soft and beautiful, fair translucent skin, gentle yet resilient eyes, black hair neatly tied with a few loose strands, wearing a clean white medical coat over a light-colored blouse, holding a vintage medical kit in her hands. Beside her stands a tall rugged military officer, masculine, broad shoulders, sun-tanned skin, sharp jawline, calm and protective expression, wearing a fictional retro military-style uniform with no real insignia, slightly rough but deeply affectionate temperament. The male officer stands close behind her in a protective posture, one hand lightly holding her wrist or shielding her from the wind, creating a strong contrast between his rugged strength and her soft medical beauty. Their expressions are restrained but full of hidden affection, intimate but not overly explicit, sweet tension, arranged marriage romance, protective love, healing romance, warm and emotional atmosphere. Background: a retro military compound or small-town hospital in the 1980s, muted green walls, old wooden windows, warm sunset light, faint shadows of military barracks and trees in the distance, subtle nostalgic Chinese period details, clean and cinematic environment. Soft golden sunlight mixed with gentle backlight, shallow depth of field, realistic skin texture, natural facial details, high-end romantic drama poster look, emotional but restrained, warm, sweet, protective, dramatic composition. Ultra-realistic, cinematic still, official TV drama poster style, 85mm movie lens, shallow depth of field, soft background blur, delicate natural skin texture, studio-grade lighting, high detail, 4K, vertical composition, popular Chinese romance novel cover, elegant and commercial, warm romantic atmosphere.

GPT Image-2 - Text to Image
Create an explanatory slide ({argument name="format" default="ponchi-e diagram"}) for {argument name="theme" default="Momotaro"} that fuses the gentle atmosphere of "Irasutoya" with the overwhelming information density of "Kasumigaseki slides". 做出宝可梦的内容 全部中文
Built for real image API workflows
Account-gated execution
Users sign in, submit jobs, and consume credits through the existing SdanceAI generation flow.
Input image handling
Image to Image accepts source image URLs, so teams can keep references in their own asset pipeline while generating new variations.
Cost-aware resolution
Start with 1K for fast iteration, then move to 2K or 4K when the prompt and visual direction are ready.
GPT Image 2 API questions
What is GPT Image 2 API best for?
It is best for prompt-based image generation and reference-guided image editing, including product visuals, ads, social creatives, posters, and design mockups.
What is the difference between Text to Image and Image to Image?
Text to Image starts from a prompt only. Image to Image uses one or more source image URLs plus a prompt, making it better for edits, variations, and reference-preserving workflows.
Which resolutions are available?
The current API configuration includes 1K, 2K, and 4K pricing tiers. Choose lower resolution for iteration and higher resolution for final assets.
Which aspect ratios can I use?
The available aspect ratios include auto, 1:1, 9:16, 16:9, 4:3, and 3:4. Match the ratio to your target channel before generating final assets.
How many input images can Image to Image use?
The configured image-to-image payload supports input image URL arrays, with up to 16 source images.
Where can I test it before integrating?
Use the playground on this page to test prompts, input image URLs, aspect ratio, resolution, and API payload behavior before moving into production.
Can I use GPT Image 2 API for commercial workflows?
This page is configured for production image workflows. For commercial use, review your account plan, credit balance, model availability, and applicable content policy requirements.
Does the API support callbacks?
Yes. The request schema includes an optional callback URL so your service can receive task completion notifications.
How should I manage cost?
Use 1K for prompt exploration and bulk drafts, then regenerate selected winners at 2K or 4K when you need sharper final output.
Can I edit existing product photos?
Yes. Use Image to Image with source image URLs and a prompt that describes the exact background, lighting, layout, or styling changes you need.
Turn GPT Image 2 into your image workflow
Open the generator, test a prompt or reference image, then use the API docs when you are ready to connect GPT Image 2 to production.