Summary
Built-in image generation fails with HTTP 404 when Codex is routed through the OpenCodex gateway.
The same user request worked previously, but now a simple request such as “generate a cute cat” fails before an image is produced.
Environment
- OpenCodex.app: 1.1.0
- Gateway health:
CodexBridge Engine V2, version 1.1.0
- Codex model:
gpt-5.6-luna
- Managed base URL:
http://127.0.0.1:25777/v1
- macOS desktop installation
Reproduction
- Enable/use the OpenCodex-managed Codex provider.
- In Codex Desktop, invoke the built-in image generation tool with a minimal prompt, for example:
Generate one adorable, fluffy kitten.
- Observe:
image generation failed: http 404 Not Found
{"error":"Endpoint not found"}
The same response can be reproduced locally without invoking a real image model:
curl --noproxy '*' -i -X POST \
http://127.0.0.1:25777/v1/images/generations \
-H 'Content-Type: application/json' \
--data '{}'
Response:
{"error":"Endpoint not found"}
Evidence
- The active Codex configuration routes requests through the local gateway at
http://127.0.0.1:25777/v1.
- The installed gateway returns
{"error":"Endpoint not found"} for unmatched routes.
- The installed bundle contains a native image bridge, but it sends image requests to
https://chatgpt.com/backend-api/codex/responses.
- The bridge is only reached from the internal
/v1/responses flow after the provider emits the internal opencodex_generate_image tool call.
- There is no
/v1/images/generations route in the gateway.
Relevant installed bundle locations:
Contents/Resources/dist/server/gateway.js: fallback 404 route
Contents/Resources/dist/server/router.js: internal image-tool handling
Contents/Resources/dist/services/native_image_bridge.js: native image bridge
Expected behavior
Built-in image generation should either:
- be forwarded through the existing native
/v1/responses image bridge, or
- expose a compatible
POST /v1/images/generations route that translates the request to the native bridge.
Actual behavior
The built-in image-generation request reaches the local OpenCodex gateway, hits an unimplemented image endpoint, and fails with 404 before any image is generated.
This looks like a routing/compatibility regression introduced by the managed gateway path rather than a prompt, model quota, or API-key problem.
Summary
Built-in image generation fails with HTTP 404 when Codex is routed through the OpenCodex gateway.
The same user request worked previously, but now a simple request such as “generate a cute cat” fails before an image is produced.
Environment
CodexBridge Engine V2, version1.1.0gpt-5.6-lunahttp://127.0.0.1:25777/v1Reproduction
The same response can be reproduced locally without invoking a real image model:
Response:
HTTP/1.1 404 Not Found{"error":"Endpoint not found"}Evidence
http://127.0.0.1:25777/v1.{"error":"Endpoint not found"}for unmatched routes.https://chatgpt.com/backend-api/codex/responses./v1/responsesflow after the provider emits the internalopencodex_generate_imagetool call./v1/images/generationsroute in the gateway.Relevant installed bundle locations:
Contents/Resources/dist/server/gateway.js: fallback 404 routeContents/Resources/dist/server/router.js: internal image-tool handlingContents/Resources/dist/services/native_image_bridge.js: native image bridgeExpected behavior
Built-in image generation should either:
/v1/responsesimage bridge, orPOST /v1/images/generationsroute that translates the request to the native bridge.Actual behavior
The built-in image-generation request reaches the local OpenCodex gateway, hits an unimplemented image endpoint, and fails with 404 before any image is generated.
This looks like a routing/compatibility regression introduced by the managed gateway path rather than a prompt, model quota, or API-key problem.