GPT 5.1 Codex
Neural Network
GPT-5.1-Codex is an OpenAI model for development: gpt-5.1-codex API for interactive sessions and long autonomous task execution.
Max answer length
(in tokens)
Context size
(in tokens)
Prompt cost
(per 1M tokens)
Answer cost
(per 1M tokens)
How it works GPT 5.1 Codex?
GPT-5.1-Codex is a specialized version of OpenAI's GPT-5.1, tuned for programming and engineering processes. Unlike the base GPT-5.1, it is optimized specifically for development: it maintains an interactive dialogue while you edit code step-by-step, and confidently handles long autonomous work on complex tasks that need to be completed without constant prompts. In BotHub, the model works from Russia without a VPN or foreign card, and you pay per token — no subscription, and tokens do not expire. With over 250 models available in one window, you can compare Codex's response with another model in a few clicks, and the unified OpenAI-compatible API allows you to switch models in production without rewriting the integration. Chats are encrypted via AES-GCM, data is not saved, and for companies, we offer contracts, invoices, electronic document management, and an admin panel with limits. It is useful when you need to analyze an unfamiliar repository, refactor an old module, find the cause of a floating bug, build a service or script from scratch, as well as review pull requests and cover code with tests.Frequently asked questions about GPT 5.1 Codex
You can use generated results for commercial purposes. You own all rights to the content you create. The only restriction: make sure your prompt does not include copyrighted third-party material. You are responsible for respecting the rights to any input data.
This is an OpenAI Codex model tailored for working with code: writing new modules, refactoring, finding bugs, and explaining someone else's project. A 400,000-token context allows you to upload a large codebase along with documentation. It is also suitable for engineering tasks, document analysis, and agent scenarios.
The output limit is 128,000 tokens per response. This is enough for a voluminous module, a large refactoring, or a detailed analysis with comments without breaking the task into parts. The input context is 400,000 tokens, so the response takes the entire submitted project into account.
Yes, reasoning before answering is supported: the model builds a chain of thought before providing a result. Settings for reasoning effort and response detail are available — for simple edits, you can save tokens, and for complex architectural tasks, you can let the model think longer.
Yes, the model can call functions and return structured JSON according to a given schema — this is the foundation for agents that trigger your tools and APIs themselves. In BotHub, everything works via a unified OpenAI-compatible API, so you can switch to another model without rewriting the integration.
In addition to text, the model accepts images and documents as input: a screenshot with an error, an architecture diagram, or a PDF with specifications. We have no information about audio and video support, so count on text, images, and files — for media formats, BotHub has specialized models.
We do not have specific data on language support, so we won't make any promises — it's easier to test it with your own task. The BotHub interface, support, and payment with Russian cards are available without a VPN, and tokens do not expire, so a test request costs nothing extra.