o4-mini

o4 · Per Token

o4-miniAvailableCache 75% off
ChatVisionTool UsePrompt CacheJSON ModeFastContext Window: 200KMax Output Tokens: 100K

Pricing

Official PriceLemonData Price
Input$1.10$0.77
Output$4.40$3.08
Cache Read$0.275$0.275
Cache WriteFreeFree

Parameters

Context Window
200K tokens
Max Output Tokens
100K tokens

Best For

Chat

Conversational AI, customer support, and Q&A

Vision

Image understanding, document analysis, and visual reasoning

Cost Calculator

1M
0.5M
Estimated Monthly Cost$2.31

API Code Example

POST/v1/chat/completions
curl https://api.lemondata.cc/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-xxx" \
  -d '{
    "model": "o4-mini",
    "messages": [
      {"role": "user", "content": "Hello!"}
    ]
  }'

FAQ

How much does o4-mini cost?

On LemonData, o4-mini costs $0.7700 per 1M input tokens and $3.0800 per 1M output tokens, which is up to 30% off the official pricing.

What is o4-mini best for?

o4-mini excels at Chat, Vision, Tool Use. Access it through LemonData's unified API with a single API key.

How to use o4-mini API?

Get your API key from LemonData, set the base URL to api.lemondata.cc/v1, and use any OpenAI-compatible SDK. See the code examples above.

Related Models

o4-mini - API Pricing & Details - LemonData