sub2api icon indicating copy to clipboard operation
sub2api copied to clipboard

不能直接通过codex 调用image2 模型

Open sims9527 opened this issue 7 months ago • 3 comments

POST /images/generations 调 gpt-image-2:现在是 502 POST /responses 把 model 设成 gpt-image-2:会退化成文本回答 POST /responses 用官方正确格式触发图像工具:后端会实际出图,但最终聚合 JSON 里 output 是空的 所以最准确的回答是:

你这家网关里,不能像标准 OpenAI 那样“直接调 gpt-image-2 然后稳定拿到完整图片结果”。

它现在的真实状态是:

模型挂出来了 图像后端也真的在跑 但网关封装没收好结果 如果你问“有没有完全不解析流、一步拿成图的方法”:

按我现在实测,没有 目前唯一可靠的直调用法是: 调 /responses 用 gpt-5.4 + image_generation tool 开 stream: true 从 SSE 里取 partial_image_b64 所以不是“完全不能直接调”,而是:

不能用你预期的标准成品接口直接拿图 只能直接调到底层流式结果

sims9527 avatar Apr 22 '26 12:04 sims9527

怎一股GPT味道 [滑稽]

specialpointcentral avatar Apr 22 '26 13:04 specialpointcentral

佬我也遇到了,最后有解吗?

sylarchen1389 avatar Apr 25 '26 01:04 sylarchen1389

最后有解吗?

wells974 avatar May 06 '26 02:05 wells974