Codex Model Selection
Codex supports multiple models; understand the characteristics of each and choose the appropriate model based on the scenario.
In the desktop version, you can switch at the bottom-right of the input box:

In Codex CLI, you can switch with the /model command:

Available models
Codex currently supports the following models:
| Model | Type | Feature | Applicable scenarios |
|---|---|---|---|
| gpt-5.4 | Flagship | Strongest capabilities, deep reasoning | Complex tasks, architecture design |
| gpt-5.4-mini | Lightweight | Fast response, lower cost | Simple tasks, rapid iteration |
| gpt-5.3-codex | Professional | Optimized for programming, code-specialized | Code writing, bug fixing |
| gpt-5.3-codex-spark | Quick | Ultra-fast response, high-frequency interaction | Real-time collaboration, quick Q&A |
Detailed Model Features
GPT-5.4
The flagship model, with the strongest reasoning and creative capabilities.
| Feature | Description |
|---|---|
| Reasoning depth | Deep analysis of complex problems |
| Context understanding | Understanding large codebase structures |
| Multi-step tasks | Handling complex workflows |
| : Probing the file type may require reading the file content, which may have a performance impact for large files | High accuracy, reducing rework |
Applicable scenarios
- Architecture design and refactoring
- Complex bug analysis and fixing
- Multi-module coordinated development
- Code review and quality analysis
GPT-5.4-mini
A lightweight model with fast response, suitable for daily development.
| Feature | Description |
|---|---|
| Response speed | Faster than the flagship model |
| Cost-effectiveness | Lower token consumption |
| Daily tasks | Suitable for routine development operations |
Applicable scenarios
- Simple feature implementation
- Code formatting and refactoring
- Documentation writing
- Quick Q&A
GPT-5.3-Codex
A model specifically optimized for programming tasks.
| Feature | Description |
|---|---|
| Code specialization | Trained specifically for programming tasks |
| Language coverage | Support for multiple programming languages |
| Code quality | Generates high-quality code |
Applicable scenarios
- Code writing and generation
- Bug fixing and debugging
- Code Refactoring
- Test writing
GPT-5.3-Codex-Spark
An ultra-fast response model, suitable for high-frequency interaction scenarios.
| Feature | Description |
|---|---|
| Ultra-fast response | The fastest response speed |
| Real-time collaboration | Suitable for interactive development |
| Pro exclusive | Available only with the Pro plan |
Applicable scenarios
- Real-time code Q&A
- Rapid prototype validation
- High-frequency iterative development
Reasoning Effort Configuration
You can adjust the model's reasoning effort to balance speed and depth.
Reasoning effort levels
| Level | Description | Feature |
|---|---|---|
minimal |
Minimal reasoning | Fastest response, suitable for simple tasks |
low |
Low reasoning effort | Fast with some analysis |
medium |
Medium reasoning | Balances speed and depth (default) |
high |
High reasoning effort | Deep analysis, suitable for complex tasks |
xhigh |
Extra-high reasoning | Strongest reasoning, slowest response |
Configure reasoning effort
Reasoning Effort Settings
Specify via CLI
codex
--reasoning-effort
high
Configuration file
[
mycode4
type
=
"toml"
]
model_reasoning_effort =
"high"
Switch in session /model gpt-5.4 --reasoning-effort xhigh [/mycode4]
Reasoning summaries
Controls how much detail Codex shows about the reasoning process.
Summary Mode
| Mode | Description |
|---|---|
auto |
Automatically decide the level of detail (default) |
concise |
Brief summary |
detailed |
Detailed reasoning process |
none |
Do not show reasoning summary |
Reasoning summary settings
~/.codex/config.toml
model_reasoning_summary = "detailed"
Model switching
Switch between different models in different scenarios.
Switching Method
Switching models
CLI slash commands
/
model gpt-
5.4
/
model gpt-
5.4
-mini
/
model gpt-
5.3
-codex
With reasoning effort
/
model gpt-
5.4
--reasoning-effort
high
Switch in the app
Click the model selector and choose the target model
Scenario switching suggestions
| Scenario | Recommended model | Reasoning effort |
|---|---|---|
| Architecture design | gpt-5.4 | high/xhigh |
| Complex refactoring | gpt-5.4 | high |
| Bug fixes | gpt-5.3-codex | medium |
| Daily coding | gpt-5.4-mini | low/medium |
| Quick Q&A | gpt-5.4-mini | minimal |
| Real-time collaboration | gpt-5.3-codex-spark | minimal |
Service tiers
Choosing different service tiers affects response priority.
Service tier options
| Level | Description |
|---|---|
flex |
Flexible service, responses may be slightly slower (default) |
fast |
Priority service, faster responses |
Service tier settings
~/.codex/config.toml
service_tier = "fast"
Models and plans
Different plans have different model support:
| Plan | Available models |
|---|---|
| Free | Basic models |
| Plus | gpt-5.4, gpt-5.4-mini, gpt-5.3-codex |
| Pro | All models + Spark + higher limits |
| API Key | Pay per token, supports mainstream models |
Cost considerations
Token consumption comparison
| Model | Relative cost |
|---|---|
| gpt-5.4 | Highest |
| gpt-5.3-codex | Medium-high |
| gpt-5.4-mini | Lower |
| gpt-5.3-codex-spark | Low |
Cost Optimization Tips
- Use mini or Spark models for simple tasks
- Use medium reasoning effort for daily development
- Use flagship models and high reasoning effort only for complex tasks
- Use /compact to compress context and reduce token consumption
Best Practices
Model selection principles
- Choose models based on task complexity
- Balance response speed and reasoning depth
- Prioritize accuracy for complex tasks
- Prioritize response speed for high-frequency interactions
Configuration recommendations
Recommended configuration
Daily development configuration
model = "gpt-5.4-mini"
model_reasoning_effort = "medium"
model_reasoning_summary = "auto"
Temporary switching for complex tasks
/model gpt-5.4 --reasoning-effort high
Common questions
Q: Which model is best for coding?
gpt-5.3-codex is optimized for programming tasks and suits most coding scenarios.
Q: How to balance speed and quality?
Use gpt-5.4-mini + medium reasoning effort for daily tasks, switch to gpt-5.4 + high reasoning effort for complex tasks.
Q: What are the advantages of the Spark model?
The Spark model responds fastest, ideal for high-frequency interactions and real-time collaboration, available only on the Pro plan.
Q: How does reasoning effort affect results?
Higher reasoning effort means Codex performs deeper analysis, but response times will be longer.