openclaw 2026.5.18.beta-7
@split panther
I previously set up a paid credit api key for openai, so I could use the image generator and realtime voice model, before these were explicitly supported via oAuth in Openclaw.
But now, when I try to use the image generation tool with config:
"imageGenerationModel": {
"primary": "openai/gpt-image-2",
I get geo-blocked, but the returned message implies OC is using the wrong endpoint.
OpenClaw has two OpenAI image paths:
direct OpenAI Images API: https://api.openai.com/v1/images/generations,
Codex OAuth path: https://chatgpt.com/backend-api/codex/responses,
,
The direct path throws errors labelled OpenAI image generation failed.,
The Codex path throws errors labelled OpenAI Codex image generation failed.,
The failure event text said: OpenAI image generation failed (HTTP 403): Country, region, or territory not supported.,
Therefore it matched the direct Images API branch, not the Codex branch.,
Image generation succeeds when using codex cli directly. Or even when the agent uses codex cli tool to request the image.
Since the updates have refactored a lot of the config files... auth-profiles.json, for example, is almost empty now. I'm having trouble tracking down the auth flow and valid vs legacy config.
How can I stop OpenClaw from using the paid credit api endpoint when I have oAuth already set up, but I also have API key auth set up for other purposes?