{"slug":"gpt-chat-latest","name":"GPT Chat Latest","family":"openai","family_name":"OpenAI","developer":"OpenAI","color":"#10a37f","status":"active","released":"2026-05-05","snapshot_of":null,"open":false,"context":400000,"max_output":128000,"knowledge_cutoff":null,"modalities":["text","image","file"],"output_modalities":["text"],"reasoning":false,"tools":true,"structured_output":true,"huggingface":null,"speed":94,"latency":1.1,"short":"A closed, large-context model from OpenAI, released May 2026, with tool calling and structured output. It is priced well above the registry median and has no benchmark results.","strengths":["400k token context window","Accepts text, image and file inputs","Supports tool calling and structured output","Available from OpenAI and OpenRouter"],"weaknesses":["Blended price $11.25 per million tokens, far above the registry median of about $1","Output costs $30 per million tokens, 178th of 194 on price rank","No benchmark results, so capability cannot be compared with other models"],"best_for":"Agents that need a large context window and structured tool use with multimodal input, where cost is less of a concern.","long":"GPT Chat Latest is a closed-weights model from OpenAI, released in May 2026. It offers a 400k token context window and responses up to 128k tokens, and it accepts text, image and file inputs. Tool calling and structured output are both supported, though reasoning mode is not.\n\nCost is the main consideration. Input tokens are priced at $5 per million and output at $30 per million, giving a blended rate of $11.25 per million tokens. That is well above the registry median blended price of about $1, and its price rank of 178 of 194 places it near the expensive end of the registry. Its popularity rank is 169 of 194.\n\nThe registry holds no benchmark results for this model, and no intelligence index score, so its quality cannot be judged against other models here. It is available from OpenAI and OpenRouter.","described":true,"gateway":true,"byok":true,"string":"gateway/openai:gpt-chat-latest","input":5,"output":30,"cache_read":0.5,"blended":11.25,"efficiency":null,"bench":{},"offers":[{"provider":"openai","name":"OpenAI","model_id":"gpt-chat-latest","api":["openai"],"input":5,"output":30,"cache_read":0.5,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":null,"deprecated":false,"gateway":true,"gateway_route":"openai","byok":true,"string":"openai:gpt-chat-latest","gateway_string":"gateway/openai:gpt-chat-latest"},{"provider":"openrouter","name":"OpenRouter","model_id":"openai/gpt-chat-latest","api":["openai"],"input":5,"output":30,"cache_read":0.5,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":400000,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"openrouter:openai/gpt-chat-latest","gateway_string":null}],"ranks":{"intelligence":null,"popularity":169,"efficiency":null,"speed":47,"price":178},"top_score":0.05,"about":["A closed, large-context model from OpenAI, released May 2026, with tool calling and structured output. It is priced well above the registry median and has no benchmark results.","GPT Chat Latest is a closed-weights model from OpenAI, released in May 2026. It offers a 400k token context window and responses up to 128k tokens, and it accepts text, image and file inputs. Tool calling and structured output are both supported, though reasoning mode is not.","Cost is the main consideration. Input tokens are priced at $5 per million and output at $30 per million, giving a blended rate of $11.25 per million tokens. That is well above the registry median blended price of about $1, and its price rank of 178 of 194 places it near the expensive end of the registry. Its popularity rank is 169 of 194.","The registry holds no benchmark results for this model, and no intelligence index score, so its quality cannot be judged against other models here. It is available from OpenAI and OpenRouter."],"examples":[{"file":"hello.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport os\n\nfrom pydantic_ai import Agent\n\nos.environ['PYDANTIC_AI_GATEWAY_API_KEY'] = '...'\n\nagent = Agent('gateway/openai:gpt-chat-latest', instructions='Be concise, reply with one sentence.')\n\nresult = agent.run_sync('Where does \"hello world\" come from?')\nprint(result.output)","soon":false},{"file":"structured_output.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport os\n\nfrom pydantic import BaseModel\nfrom pydantic_ai import Agent\n\nos.environ['PYDANTIC_AI_GATEWAY_API_KEY'] = '...'\n\n\nclass CityLocation(BaseModel):\n    city: str\n    country: str\n\n\nagent = Agent('gateway/openai:gpt-chat-latest', output_type=CityLocation)\n\nresult = agent.run_sync('Where were the olympics held in 2012?')\nprint(result.output)\n#> city='London' country='United Kingdom'","soon":false},{"file":"tools.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport os\nimport random\n\nfrom pydantic_ai import Agent, RunContext\n\nos.environ['PYDANTIC_AI_GATEWAY_API_KEY'] = '...'\n\nagent = Agent(\n    'gateway/openai:gpt-chat-latest',\n    deps_type=str,\n    instructions=\"You're a dice game, roll the die and see if it matches the user's guess.\",\n)\n\n\n@agent.tool_plain\ndef roll_dice() -> str:\n    \"\"\"Roll a six-sided die and return the result.\"\"\"\n    return str(random.randint(1, 6))\n\n\n@agent.tool\ndef get_player_name(ctx: RunContext[str]) -> str:\n    \"\"\"Get the player's name.\"\"\"\n    return ctx.deps\n\n\nresult = agent.run_sync('My guess is 4', deps='Anne')\nprint(result.output)","soon":false},{"file":"streaming.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport asyncio\nimport os\n\nfrom pydantic_ai import Agent\n\nos.environ['PYDANTIC_AI_GATEWAY_API_KEY'] = '...'\n\nagent = Agent('gateway/openai:gpt-chat-latest')\n\n\nasync def main():\n    async with agent.run_stream('Explain prompt caching in three bullet points.') as response:\n        async for text in response.stream_text(delta=True):\n            print(text, end='', flush=True)\n\n\nasyncio.run(main())","soon":false},{"file":"pax.sh","lang":"sh","code":"export PYDANTIC_AI_GATEWAY_API_KEY='...'\n\nuvx pax --model 'gateway/openai:gpt-chat-latest'","soon":true},{"file":"pi.sh","lang":"sh","code":"# npm install -g @earendil-works/pi-coding-agent\nexport PYDANTIC_AI_GATEWAY_API_KEY='...'\n\n# pi has no built-in Gateway provider, so register one.\n# Merge this by hand if you already have a models.json.\nmkdir -p ~/.pi/agent\ncat > ~/.pi/agent/models.json <<'EOF'\n{\n  \"providers\": {\n    \"pydantic-ai-gateway\": {\n      \"baseUrl\": \"https://gateway.pydantic.dev/proxy/openai/v1\",\n      \"api\": \"openai-responses\",\n      \"apiKey\": \"$PYDANTIC_AI_GATEWAY_API_KEY\",\n      \"models\": [\n        {\n          \"id\": \"gpt-chat-latest\"\n        }\n      ]\n    }\n  }\n}\nEOF\n\npi --provider pydantic-ai-gateway --model 'gpt-chat-latest'","soon":false},{"file":"codex.sh","lang":"sh","code":"# npm install -g @openai/codex\nexport PYDANTIC_AI_GATEWAY_API_KEY='...'\n\ncodex --model 'gpt-chat-latest' \\\n  -c model_provider='gateway' \\\n  -c model_providers.gateway.name='Pydantic AI Gateway' \\\n  -c model_providers.gateway.base_url='https://gateway.pydantic.dev/proxy/openai/v1' \\\n  -c model_providers.gateway.env_key='PYDANTIC_AI_GATEWAY_API_KEY'","soon":false},{"file":"ai_sdk.ts","lang":"ts","code":"// npm install ai @ai-sdk/openai\nimport { createOpenAI } from '@ai-sdk/openai'\nimport { generateText } from 'ai'\n\nprocess.env.PYDANTIC_AI_GATEWAY_API_KEY = '...'\n\nconst openai = createOpenAI({\n  baseURL: 'https://gateway.pydantic.dev/proxy/openai',\n  apiKey: process.env.PYDANTIC_AI_GATEWAY_API_KEY,\n})\n\nconst { text } = await generateText({\n  model: openai('gpt-chat-latest'),\n  system: 'Be concise, reply with one sentence.',\n  prompt: 'Where does \"hello world\" come from?',\n})\nconsole.log(text)","soon":false}],"benchmarks":[],"generated":"2026-11-25","gaps":{"speed":3,"index":80,"description":0}}