gpt-5.1-codex-mini

GPT 5.1 · Per Token

gpt-5.1-codex-miniAvailableCache 90% off
Tool UseVisionPrompt CacheJSON Mode
Context Window: 272KMax Output Tokens: 128K

Pricing

Official PriceLemonData PriceDiscount
Input$0.25$0.0580%
Output$2.00$0.4080%
Cache Read$0.025$0.00580%

Parameters

Context Window
272K tokens
Max Output Tokens
128K tokens

Best For

Vision

Image understanding, document analysis, and visual reasoning

Cost Calculator

1M
0.5M
Estimated Monthly Cost$0.25

API Code Example

POST/v1/responses
API Format:
curl https://api.lemondata.cc/v1/responses \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-xxx" \
  -d '{
    "model": "gpt-5.1-codex-mini",
    "input": "Hello!"
  }'

FAQ

How much does gpt-5.1-codex-mini cost?

On LemonData, gpt-5.1-codex-mini costs $0.0500 per 1M input tokens and $0.4000 per 1M output tokens, with model-specific platform pricing.

What is gpt-5.1-codex-mini best for?

gpt-5.1-codex-mini excels at Tool Use, Vision, Prompt Cache. Access it through LemonData's unified API with a single API key.

How to use gpt-5.1-codex-mini API?

Get your API key from LemonData, then call https://api.lemondata.cc/v1/responses using any compatible SDK. See the code examples above for detailed integration.

Related Models