Haimaker.ai Logo
OpenAI logo

GPT 5.1 Codex

openai/gpt-5.1-codex
Responses
OpenAI|
Function CallingVisionReasoningWeb Search

GPT 5.1 Codex (openai/gpt-5.1-codex) is an AI model from OpenAI with a 272,000-token context window and 128,000 max output tokens, priced at $1.25/1M input and $10.00/1M output tokens. Available via the haimaker.ai OpenAI-compatible API.

Context Window
272K
tokens
Max Output
128K
tokens
Input Price
$1.25
/1M tokens
Output Price
$10.00
/1M tokens

Overview

OpenAI's Codex model specialized for code generation, software engineering, and agentic coding tasks.

Features & Capabilities

Moderesponses
Context Window272,000 tokens
Max Output128,000 tokens
Function CallingSupported
VisionSupported
ReasoningSupported
Web SearchSupported
Url Context-

API Usage

from openai import OpenAI

client = OpenAI(
    base_url="https://api.haimaker.ai/v1",
    api_key="YOUR_API_KEY",
)

response = client.chat.completions.create(
    model="openai/gpt-5.1-codex",
    messages=[
        {"role": "user", "content": "Hello, how are you?"}
    ],
)

print(response.choices[0].message.content)

Frequently Asked Questions

What is the context window of GPT 5.1 Codex?

GPT 5.1 Codex (openai/gpt-5.1-codex) has a 272,000-token context window and supports up to 128,000 output tokens per request.

How much does GPT 5.1 Codex cost?

GPT 5.1 Codex is priced at $1.25 per 1M input tokens and $10.00 per 1M output tokens when accessed via the haimaker.ai OpenAI-compatible API.

What features does GPT 5.1 Codex support?

GPT 5.1 Codex supports function calling, vision, reasoning, web search.

How do I use GPT 5.1 Codex via API?

Send requests to https://api.haimaker.ai/v1/chat/completions with model "openai/gpt-5.1-codex" using any OpenAI-compatible SDK. Authentication uses a Bearer API key from https://app.haimaker.ai.

Use GPT 5.1 Codex with the haimaker API

OpenAI-compatible endpoint. Start building in minutes.

Get API Access

More from OpenAI