OpenAI
GPT-6.2 Astra
最大上下文
1.1M
最大输出
128K
发布日期
暂无
gpt-image-2-editImage 2 是 OpenAI 的先进图像生成与编辑模型,可提供高质量视觉、精准遵循指令、准确渲染文字,并灵活进行图像编辑。
上下文窗口
0 Token
发布日期
2026年4月21日
模态
| 分辨率 | Low | Medium | High |
|---|---|---|---|
| 1K | $0.02 | $0.07 | $0.23 |
| 2K | $0.03 | $0.11 | $0.41 |
| 4K | $0.04 | $0.19 | $0.73 |
推理
工具调用
Temperature 参数
附件
知识库
Endpoint 协议
GPT-Image-2 Edit 对应 GPT-Image-2 的图像编辑工作流,结合文本引导修改、高保真图像输入和灵活的输出尺寸。
开发者可使用自然语言指令修改输入图像,简化反复迭代的创意工作流。
高保真图像处理有助于在应用所需修改时保留原图的重要细节。
灵活的图像尺寸便于将编辑后的素材适配不同版式、展示位置和发布渠道。
GPT-Image-2 Edit 适合产品图修饰、创意素材适配和视觉概念迭代优化。
在保留产品原图重要细节的同时,调整背景、光线、构图或展示方式。
为横幅、方形帖子或其他展示位置重新构图,同时保留素材的关键视觉元素。
通过连续指令修改颜色、物体、氛围和版式,使视觉概念逐步接近目标效果。
SUBMIT_RESPONSE=$(curl 'https://us-api.tokenhub.com/generation/tasks' \
-X 'POST' \
-H "Authorization: Bearer $TOKENHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"aspect_ratio": "1:1",
"images": [
"https://example.com/input-product.png"
],
"mask_url": "https://example.com/mask.png",
"model": "gpt-image-2-edit",
"output_format": "png",
"quality": "high",
"response_format": "url"
}')
TASK_ID=$(printf '%s' "$SUBMIT_RESPONSE" | python -c "import json,sys; print(json.load(sys.stdin)['data']['task_id'])")
ENCODED_TASK_ID=$(TASK_ID="$TASK_ID" python -c 'import os,urllib.parse; print(urllib.parse.quote(os.environ["TASK_ID"], safe=""))')
for attempt in 1 2 3 4 5 6 7 8 9 10; do
TASK_RESPONSE=$(curl 'https://us-api.tokenhub.com/generation/tasks/'"${ENCODED_TASK_ID}" \
-H "Authorization: Bearer $TOKENHUB_API_KEY")
printf '%s\n' "$TASK_RESPONSE"
# Stop polling here when the response reports a terminal status.
[ "$attempt" -eq 10 ] || sleep 2
done关于在 TokenHub 使用 GPT Image 2 Edit 编辑图像的实用问答。
此 TokenHub 条目用于基于 GPT Image 2 的图像编辑工作流。OpenAI 将 gpt-image-2 定义为支持文本与图像输入、输出图像的高质量图像生成和编辑模型。
它适合对象替换或移除、背景与光照调整、产品样机、虚拟试穿、图像合成、风格转换,以及需要保留原图关键部分的编辑任务。
其优势包括高质量编辑、灵活的输出尺寸、高保真图像输入、局部重绘支持、较强的合成能力,以及对详细指令和文字密集型设计的良好处理。
复杂编辑仍可能改变本应保留的细节,文字、人物特征、几何结构或精细边缘也可能需要多次迭代。提示词应明确说明允许修改和必须保持不变的内容,并审核重要结果。
在 TokenHub 请求中选择 GPT Image 2 Edit,提供原始图像和明确的编辑提示词,并使用账户分配的接口地址与凭据。支持的选项应以 TokenHub 当前请求格式为准。
图像费用可能随输出尺寸、质量和其他请求设置变化。TokenHub 的价格、配额、支持选项以及地区或账户可用性可能调整,生产使用前请查看当前模型页面和账户限制。
当编辑质量、指令遵循、灵活尺寸、图像合成或原图细节保留比最低成本更重要时,可优先选择它。如果吞吐量和预算是主要限制,则应与更轻量的替代模型比较。
通过一个 API Key 接入 GPT Image 2 Edit 与更多 AI 模型。
Gpt-image-2-edit 媒体、演示与评测
精选的 GPT Image 2 公开动态、实用演示、横向对比、教程和客观评测。
X (Twitter)
leo 🐾 ·
GPT Image 2 has been stealth launched on ChatGPT for all image generations Was previously appearing as a common A/B test but now all gens appear to be getting routed to the new model!
查看原文David Hendrickson ·
😮 Rumors are that GPT Image 2 has already been launched on ChatGPT. 👀 While I cannot confirm this, the image generation for InfoGraphics is NanoBanana 2 quality in my opinion. Text is not garbled, and coherence is much better! Nanobana 2 Prompt: "Infographic which shows the https://t.co/OkFznKAKiA
https://pbs.twimg.com/media/HFFGR_abQAAQZ9e.jpg查看原文すぐる | ChatGPTガチ勢 𝕏 ·
【速報】OpenAIの次世代画像生成AI 「GPT-Image-2」あまりにも性能が高すぎて話題に... ㅤ ①テキスト描画の精度が異次元 →曲面の上でも文字が崩れない ②世界知識(地図・解剖図)が大幅向上 →ラベルの位置がまともになった ③写実性がNano Banana Pro超え https://t.co/SM6ljreFZH
https://pbs.twimg.com/media/HFDSVnnbwAEjL9w.jpghttps://pbs.twimg.com/media/HFDSV6Ta4AAC9J_.jpghttps://pbs.twimg.com/media/HFDSWOqacAAQZSr.jpghttps://pbs.twimg.com/media/HFDSWnDbkAASCsZ.jpg查看原文Reddit
Tutorial: How to use GPT Image 2 in the same way as ChatGPT - but with a visual twist
Low-Entropy ·
展开全文
GPT Image 2 is out for a while now, and has been blowing everyone's mind, including mine. It is more responsive and "understanding" to prompts, tasks, specific demands than any other AI image generator I tried so far. It's so smart and advanced that you can actually use it... or rather, talk to, in a very similar way as you talk to ChatGPT - and use it for most of the tasks that you set for ChatGPT, too! But with a visual twist. And that is the big, big game changer. Because, so far, the various AI models were separated by their mode. We had large language models like ChatGPT or Gemini, AI image generators, AI sound generators, AI video... But GPT Image 2 more or less merges the power of ChatGPT and image generators into one. So, you can talk to the AI, just like you would talk with ChatGPT. The only difference is that this time, the AI does not respond with text, words, chatting, or at least not directly. It responds in a visual way. So let us start with some examples: Prompt: Rank the 5 tastiest italian dishes. Give a reason for each. r/OpenAI - Tutorial: How to use GPT Image 2 in the same way as ChatGPT - but with a visual twist (https://preview.redd.it/tutorial-how-to-use-gpt-image-2-in-the-same-way-as-chatgpt-v0-3oe7g9ajo7bh1.jpg?width=1024&format=pjpg&auto=webp&s=6c260e2bb87686d87c497fca7dc5a16b2084ebe7) Prompt: Create a pixel art design, in which nikola tesla explains his invention of alternating current. r/OpenAI - Tutorial: How to use GPT Image 2 in the same way as ChatGPT - but with a visual twist (https://preview.redd.it/tutorial-how-to-use-gpt-image-2-in-the-same-way-as-chatgpt-v0-0pwln5ajo7bh1.jpg?width=1024&format=pjpg&auto=webp&s=fcff7051ffa49171e7bd10ca244b1da2f2b89b12) Prompt: Create an info graphic explaining the australian emu war. The graphic should look like it is actually from the 1930s. r/OpenAI - Tutorial: How to use GPT Image 2 in the same way as ChatGPT - but with a visual twist (https://preview.redd.it/tutorial-how-to-use-gpt-image-2-in-the-same-way-as-chatgpt-v0-aa73z5ajo7bh1.jpg?width=1024&format=pjpg&auto=webp&s=7a99f2f979286533e50919a4b0e0b50e8c43dbdf) Create an info graphic that explains the differences between a trebuchet and a catapult. Make it look like it's from the medieval era. r/OpenAI - Tutorial: How to use GPT Image 2 in the same way as ChatGPT - but with a visual twist (https://preview.redd.it/tutorial-how-to-use-gpt-image-2-in-the-same-way-as-chatgpt-v0-55t356ajo7bh1.jpg?width=1024&format=pjpg&auto=webp&s=f57628c1f6c22978f5f693349d2293fcb99dc9ba) Explain what a labyrinth. The letters should be arranged like a labyrinth or maze themselves. r/OpenAI - Tutorial: How to use GPT Image 2 in the same way as ChatGPT - but with a visual twist (https://preview.redd.it/tutorial-how-to-use-gpt-image-2-in-the-same-way-as-chatgpt-v0-1y9v0r0vo7bh1.jpg?width=1024&format=pjpg&auto=webp&s=d4f0ab010811f502b7fe448f175f5eac897b7e89) Tell me a good italian spaghetti recipe with which i can impress my guest. make the recipe look like it was written on a medieval scroll. r/OpenAI - Tutorial: How to use GPT Image 2 in the same way as ChatGPT - but with a visual twist (https://preview.redd.it/tutorial-how-to-use-gpt-image-2-in-the-same-way-as-chatgpt-v0-kbv3jmfvo7bh1.jpg?width=1024&format=pjpg&auto=webp&s=bac289e6c6a1e7718e1046d2608275efee54d4f0) Create a pixel art design that shows a space station control room. There should be a screen, and the screen should show 5 interesting facts that people rarely know about english grammar. r/OpenAI - Tutorial: How to use GPT Image 2 in the same way as ChatGPT - but with a visual twist (https://preview.redd.it/tutorial-how-to-use-gpt-image-2-in-the-same-way-as-chatgpt-v0-xjufbpsvo7bh1.jpg?width=1024&format=pjpg&auto=webp&s=3d70cd5d9af846fed9aab4885addcb6f4a8ba572) What is the use for this method of talking to GPT Image 2? Well, at the most basic level, there are at least 3 potential use cases: 1: "spicing" up your text output. Want to create a promo text for your new steampunk metroidvania game? then let it create the text *in the visual style* of the game. 2: creating very specific artworks and visuals, with long and fancy texts, sentences, passages... 3: creating images where the visual arrangement of texts is actually vital to the image. crossword puzzle designs, labyrinth structures made up of sentences... These are just some basic examples. I think there are still boundless other uses possible... there is still a lot of research that can be done!
GPT Image 2 vs GPT Image 1.5
Important-Respect-12 ·
查看原文GPT Image 2 is amazing for a lot of things, but for nature it is not...
anonymousStrang3r ·
查看原文YouTube
Introducing ChatGPT Images 2.0
OpenAI
查看原文OpenAI Image 2 is Nuts. Here are 10 Ways to Use it.
Nate Herk | AI Automation
查看原文Nano Banana Finally Dethroned. GPT-Image 2.0 FULLY tested
Futurepedia
查看原文