fix(image): use standalone Codex Images API (#6177)

* fix(image): use standalone Codex Images API

* docs(image): keep Codex setup focused on user actions
This commit is contained in:
chengyongru authored and GitHub committed 2026-10-12 17:05:38 +08:00
1 parent 73af08efab
commit bdfc8f7bd4
4 files changed
+126 -383

No files matched your search

+20
View File
@@ -96,6 +96,26 @@ OpenRouter uses a chat-completions style image response. Configure:
Use a model that supports image generation and image editing if you want reference-image edits.
### OpenAI Codex
Log in with `nanobot provider login openai-codex`, then select **OpenAI Codex** and `gpt-image-2` under **Settings → Image**. Image generation uses your Codex subscription.
For manual configuration:
```json
{
"tools": {
"imageGeneration": {
"enabled": true,
"provider": "openai_codex",
"model": "gpt-image-2"
}
}
}
```
Use Codex to generate images from text or edit existing images with reference images.
### Custom (OpenAI-compatible)
The `custom` image provider fits services that implement the synchronous OpenAI Images API: