API base
https://api.openai.com/v1Env key
OPENAI_API_KEYGPT-4o
gpt-4oContext
128K
Max output
16K
Flagship multimodal model for everyday tasks.
in: textin: imageout: texttoolsvisionstreamingjson_modestructured_outputs
GPT-4o mini
gpt-4o-miniContext
128K
Max output
16K
Small, fast, low-cost multimodal model.
in: textin: imageout: texttoolsvisionstreamingjson_modestructured_outputs
GPT-4.1
gpt-4.1Context
1,048K
Max output
33K
Long-context model with strong coding and instruction following.
in: textin: imageout: texttoolsvisionstreamingjson_modestructured_outputs
GPT-4.1 mini
gpt-4.1-miniContext
1,048K
Max output
33K
in: textin: imageout: texttoolsvisionstreamingjson_modestructured_outputs
GPT-4.1 nano
gpt-4.1-nanoContext
1,048K
Max output
33K
in: textin: imageout: texttoolsvisionstreamingjson_modestructured_outputs
o3
o3Context
200K
Max output
100K
Reasoning model for complex, multi-step problems.
in: textin: imageout: texttoolsreasoningvisionstructured_outputs
o4-mini
o4-miniContext
200K
Max output
100K
Fast, cost-efficient reasoning model.
in: textin: imageout: texttoolsreasoningvisionstructured_outputs
GPT 5.1
gpt-5.1Context
400K
Max output
128K
GPT 5.1
in: textout: textprompt_cachingstreaming
GPT 5.1 Chat
gpt-5.1-chatContext
128K
Max output
128K
GPT 5.1 Chat
in: textout: textprompt_cachingstreaming
GPT 5.1 Codex
gpt-5.1-codexContext
400K
Max output
128K
GPT 5.1 Codex
in: textout: textprompt_cachingstreaming
GPT 5.1 Codex mini
gpt-5.1-codex-miniContext
400K
Max output
128K
GPT 5.1 Codex mini
in: textout: textprompt_cachingstreaming
GPT o1
o1Context
200K
Max output
100K
GPT o1
in: textout: textprompt_cachingstreaming
GPT o3 mini
o3-miniContext
200K
Max output
100K
GPT o3 mini
in: textout: textprompt_cachingstreaming
GPT o3 pro
o3-proContext
200K
Max output
100K
GPT o3 pro
in: textout: textprompt_cachingstreaming
GPT 5
gpt-5Context
400K
Max output
131K
GPT 5
in: textout: textprompt_cachingstreaming
GPT 5 Chat
gpt-5-chatContext
128K
Max output
131K
GPT 5 Chat
in: textout: textprompt_cachingstreaming
GPT 5 Codex
gpt-5-codexContext
400K
Max output
131K
GPT 5 Codex
in: textout: textprompt_cachingstreaming
GPT 5 mini
gpt-5-miniContext
400K
Max output
131K
GPT 5 mini
in: textout: textprompt_cachingstreaming
GPT 5 nano
gpt-5-nanoContext
400K
Max output
131K
GPT 5 nano
in: textout: textprompt_cachingstreaming
GPT 5 pro
gpt-5-proContext
400K
Max output
131K
GPT 5 pro
in: textout: textprompt_cachingstreaming
GPT 5.1 Codex max
gpt-5.1-codex-maxContext
400K
Max output
128K
GPT 5.1 Codex max
in: textout: textprompt_cachingstreaming
GPT 5.2
gpt-5.2Context
400K
Max output
128K
GPT 5.2
in: textout: textprompt_cachingstreaming
GPT 5.2 Chat
gpt-5.2-chatContext
128K
Max output
16K
GPT 5.2 Chat
in: textout: textprompt_cachingstreaming
GPT 5.2 Codex
gpt-5.2-codexContext
400K
Max output
128K
GPT 5.2 Codex
in: textout: textprompt_cachingstreaming
GPT 5.3 Codex
gpt-5.3-codexContext
400K
Max output
128K
GPT 5.3 Codex
in: textout: textprompt_cachingstreaming
GPT 5.4
gpt-5.4Context
400K
Max output
128K
GPT 5.4
in: textout: textprompt_cachingstreaming
GPT Image 2
gpt-image-2Context
1,048K
Max output
33K
GPT Image 2
in: textout: textprompt_cachingstreaming
GPT 5.5
gpt-5.5Context
1,050K
Max output
128K
GPT 5.5
in: textout: textprompt_cachingstreaming
GPT 5.4 mini
gpt-5.4-miniContext
400K
Max output
131K
GPT 5.4 mini
in: textout: textprompt_cachingstreaming
GPT 5.4 nano
gpt-5.4-nanoContext
400K
Max output
131K
GPT 5.4 nano
in: textout: textprompt_cachingstreaming