OpenAI: GPT-5.2 Codex
Chatopenai/gpt-5.2-codexGPT-5.2-Codex is an upgraded version of GPT-5.1-Codex optimized for software engineering and coding workflows. It is designed for both interactive development sessions and long, independent execution of complex engineering tasks. The model supports building projects from scratch, feature development, debugging, large-scale refactoring, and code review. Compared to GPT-5.1-Codex, 5.2-Codex is more steerable, adheres closely to developer instructions, and produces cleaner, higher-quality code outputs. Reasoning effort can be adjusted with the reasoning.effort parameter.
512K kontextfenster
128K max. ausgabe-tokens
Veröffentlicht: 2026-01-14
Unterstützte Protokolle:openai
Verfügbare Anbieter:Azure
Fähigkeiten:VisionFunction CallingReasoningPrompt CachingWebsucheAudio-EingabeVideo-EingabePDF-Eingabe
Preise
| Typ | Preis |
|---|---|
| Eingabe-Tokens | $1.75/M |
| Ausgabe-Tokens | $14/M |
| Cache-Lesen | $0.18/M |
| Websuche | $0.01/R |
Code-Beispiele
from openai import OpenAIclient = OpenAI(base_url="https://api.ofox.ai/v1",api_key="YOUR_OFOX_API_KEY",)response = client.chat.completions.create(model="openai/gpt-5.2-codex",messages=[{"role": "user", "content": "Hello!"}],)print(response.choices[0].message.content)
Verwandte Modelle
Häufig gestellte Fragen
OpenAI: GPT-5.2 Codex auf Ofox.ai kostet $1.75/M pro Million Eingabe-Tokens und $14/M pro Million Ausgabe-Tokens. Pay-as-you-go, keine monatlichen Gebühren.
OpenAI: GPT-5.2 Codex unterstützt ein Kontextfenster von 512K Tokens mit max. Ausgabe von 128K Tokens, was die Verarbeitung großer Dokumente und lange Konversationen ermöglicht.
Einfach Ihre Base-URL auf https://api.ofox.ai/v1 setzen und Ihren Ofox API Key verwenden. Die API ist OpenAI-kompatibel — einfach Base-URL und API Key in Ihrem bestehenden Code ändern.
OpenAI: GPT-5.2 Codex unterstützt folgende Fähigkeiten: Vision, Function Calling, Reasoning, Prompt Caching, Websuche, Audio-Eingabe, Video-Eingabe, PDF-Eingabe. Zugriff auf alle Features über die einheitliche Ofox.ai API.