Skip to content

OpenAI: GPT-5.1-Codex-Mini

OpenAI
openai/gpt-5.1-codex-mini

About this model

GPT-5.1-Codex-Mini is a smaller and faster version of GPT-5.1-Codex

Make a request

OpenAI-compatible: set the base URL and your Promptix API key, keep your existing SDK.

curl https://promptix.tn/api/v1/chat/completions \  -H "Authorization: Bearer $PROMPTIX_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "model": "openai/gpt-5.1-codex-mini",    "messages": [      {"role": "user", "content": "Hello! What can you do?"}    ]  }'

Pricing

In TND per 1M tokens. VAT and the platform fee are added at top-up.

Input tokens

0.831 TND

per 1M tokens

Output tokens

6.645 TND

per 1M tokens

1,000 requests with 1K input and 500 output tokens cost about 4.153 TND.

Specifications

Provider
OpenAI
Context window
400,000 tokens
Input modality
Text
Added
Nov 13, 2025
Supported parameters
include_reasoningmax_completion_tokensreasoningreasoning_effortresponse_formatseedstructured_outputstool_choice