GPT-5.1-Codex-Max
OpenAI's GPT-5.1-Codex-Max is a image-generation model. GPT-5.1-Codex-Max is OpenAI’s latest agentic coding model, designed for long-running, high-context software development tasks. It is based on an updated version of the 5.1 reasoning stack and trained on agentic...
by OpenAI · 400K token context window
Best for
- image generation from text
- creative design and ideation
Ways to use GPT-5.1-Codex-Max in osFoundry
Connect with your own key (BYOK)
Open the key dialog and paste your OpenAI API key. osFoundry discovers GPT-5.1-Codex-Max automatically — assign it to a Maestro role (router, direct, orchestrator, or fallback) in the Pipeline tab and it is live in every chat. Your key, your provider account — no token markup.
Use it in a Room App
Room Apps declare AI features in their manifest, then call them with invokeAI:
import { invokeAI } from '@osfoundry/app-sdk'
// 'summarize' is an AI feature declared in your app manifest.
const result = await invokeAI('summarize', userText)
Call it from your own apps
Once a model is wired into your workspace you can host it as an API and reach it from your own services, scripts, or CI — outside osFoundry.
GPT-5.1-Codex-Max vs similar models
| Model | Org | Params | Context | Input price | Self-host |
|---|
| GPT-5.1-Codex-Max | OpenAI | — | 400K | $ 1.25 /1M | API only |
| GLM 4.6V | Z.ai | — | 131K | $ 0.300 /1M | API only |
| Nova 2 Lite | Amazon | — | 1000K | $ 0.300 /1M | API only |
| Ministral 3 14B 2512 | Mistral | — | 262K | $ 0.200 /1M | API only |
Licence
Hosted — usage subject to provider terms — Hosted-only model — usage governed by the provider's API terms. Bring your own provider key.
No weights distributed; usage subject to provider terms.
Frequently asked about GPT-5.1-Codex-Max
How much does GPT-5.1-Codex-Max cost?
GPT-5.1-Codex-Max is metered at $ 1.25 /1M for input, and $ 10.00 /1M for output. Bring your own OpenAI API key — osFoundry passes through provider pricing without markup.
Can I use GPT-5.1-Codex-Max commercially?
Commercial use is allowed with conditions. Hosted-only model — usage governed by the provider's API terms. Bring your own provider key. No weights distributed; usage subject to provider terms.
What is the context window of GPT-5.1-Codex-Max?
GPT-5.1-Codex-Max supports a 400K token context window.
Can I run GPT-5.1-Codex-Max locally?
No — GPT-5.1-Codex-Max is hosted only and accessed via the OpenAI API.
What is GPT-5.1-Codex-Max best at?
GPT-5.1-Codex-Max is well-suited to image generation from text, creative design and ideation.
How do I use GPT-5.1-Codex-Max in osFoundry?
Paste your OpenAI API key in the key dialog (or deploy the open weights for self-hostable models), assign GPT-5.1-Codex-Max to a Maestro role in the Pipeline tab, then use it in chat, Room Apps via invokeAI, or your own apps.
Published by OpenAI on December 4, 2025. Source: https://openrouter.ai/openai/gpt-5.1-codex-max