Futures
Access hundreds of perpetual contracts
CFD
Gold
One platform for global traditional assets
Options
Hot
Trade European-style vanilla options
Unified Account
Maximize your capital efficiency
Demo Trading
Introduction to Futures Trading
Learn the basics of futures trading
Futures Events
Join events to earn rewards
Demo Trading
Use virtual funds to practice risk-free trading
CFD
Stock CFD Derivatives
US Stocks
Access real US stocks and ETFs
HK Stocks
Trade quality Hong Kong-listed stocks
Korean Stocks
SK Hynix
Real Korean stocks and top assets
Stock Futures
High leverage, 24/7 trading
Tokenized Stocks
Backed by real stock assets
IPO Access
Unlock full access to global stock IPOs
GUSD
3.8%
Mint GUSD for Treasury RWA yields
Stocks Activities
Trade Popular Stocks and Unlock Generous Airdrops
Launch
CandyDrop
Collect candies to earn airdrops
Launchpool
Quick staking, earn potential new tokens
HODLer Airdrop
Hold GT and get massive airdrops for free
IPO Access
Unlock full access to global stock IPOs
Alpha Points
Trade on-chain assets and earn airdrops
Futures Points
Earn futures points and claim airdrop rewards
Promotions
AI
Gate AI
Your all-in-one conversational AI partner
Gate AI Bot
Use Gate AI directly in your social App
GateClaw
Gate Blue Lobster, ready to go
Gate for AI Agent
AI infrastructure, Gate MCP, Skills, and CLI
Gate Skills Hub
10K+ Skills
From office tasks to trading, the all-in-one skill hub makes AI even more useful.
The new Codex App uses a third-party API and can’t generate images—here’s the fix.
Recently, many people should have run into this problem:
After integrating the relay station API in the new Codex App, when calling the built-in imagegen skill, the model seems to have already finished generating the image, but the image simply won’t display in the client.
At first I thought the third-party API didn’t return the image correctly. Later, after analyzing Codex’s configuration and request logic, I found that the issue lies in the new client’s permission validation for third-party providers.
It seems there isn’t a relatively complete public solution online yet, so I’ll share the methods we tested that work.
Method 1: Manually modify config.toml
First, find Codex’s configuration file:
Windows:
C:\Users\Administrator\.codex\config.toml
Note: “Administrator” here needs to be replaced with your own Windows username.
For example, if your username is zhang, the path is:
C:\Users\zhang\.codex\config.toml
macOS / Linux / WSL:
~/.codex/config.toml
Before modifying, it’s recommended to back up the original config.toml.
Then change the configuration to:
model_provider = "custom"
model = "gpt-5.6-sol"
review_model = "gpt-5.6-sol"
model_reasoning_effort = "high"
model_context_window = 372000
model_auto_compact_token_limit = 372000
[model_providers.custom]
name = "
wire_api = "responses"
base_url = "Here change to the relay station API URL"
requires_openai_auth = false
experimental_bearer_token = "Here change to the relay station API key"
http_headers = { "x-openai-actor-authorization" = " }
In short, the key is these two settings:
requires_openai_auth = false
http_headers = { "x-openai-actor-authorization" = " }
The former disables the OpenAI official account authentication requirement, and the latter adds the request header that the Codex client needs when outputting the generated image.
Method 2: Use open-source software: CodeStudio-lite to configure
Open-source repository address:
Download address:
This software is made by our team’s tech teammate. They developed an AI tools desktop control console.
It puts local AI tool detection, installation updates, configuration writing, usage queries, and desktop patch processes all into a single application. It can also switch each tool among different vendors and models without repeatedly editing configuration files manually.
At the same time, it was the first to resolve the issue where the new codex app can’t generate images. It’s a good fit for people who don’t want to bother with configuration.
In addition, it also supports a Chinese localization feature for the Claude desktop version.
These are the contents I’ve been able to find so far, and it seems that no one has publicly explained the new Codex App issue where third-party APIs can’t generate images, along with the full modification method, in such detail.
If you run into the same problem, you can try it. Remember to thoroughly restart the Codex App after you finish the changes.