LLM API
OpenAIText generationReleased November 12, 2025Deprecated

GPT-5.1 Codex Mini

GPT-5.1 Codex Mini costs $0.25 per 1M input tokens and $2 per 1M output tokens on LLM API, with a 400K-token context window.

Pricing

Served by Azure, the only provider.

GPT-5.1 Codex Mini prices on LLM API
Input$0.25per 1M tokens
Output$2per 1M tokens
Cache read$0.025per 1M tokens
Web search$0.01per search

Features

  • ToolsYes
  • Parallel tool callsNo
  • Image inputYes
  • ReasoningYes

    Levels: none, low, medium, high

  • Prompt cachingYes
  • Structured outputsYes
  • JSON modeYes
  • StreamingYes
  • Web searchYes

Call GPT-5.1 Codex Mini

POST /v1/responsesSet LLMAPI_KEY to your LLM API key.Responses docs

import os

from openai import OpenAI

client = OpenAI(
    base_url="https://api.llmapi.ai/v1",
    api_key=os.environ["LLMAPI_KEY"],
)

response = client.responses.create(
    model="gpt-5.1-codex-mini",
    input="Hello",
)
print(response.output_text)

More from OpenAI

All OpenAI text models

Prices synced .

You've been invited to LLM API

Top up $50 or more and the friend who invited you gets $20 in credits. We pay the $20; your credits stay yours. Referral terms

Sign up