Skip to main content
Core.Today
|
OpenAIFastUltra

OpenAI o4-mini

Fast, cost-effective reasoning model optimized for coding and STEM tasks. Provides strong reasoning at a fraction of the cost of larger reasoning models.

2 credits
per 1K tokens (avg)
Optimized for coding/STEM
200K context window
100K max output tokens
Fast reasoning
Cost-effective reasoning

Run it right now

Test this model instantly in the Console Playground โ€” no code required

Sign in to try

Use with AI Assistant

Copy usage instructions for Claude, ChatGPT, or other AI

llms.txt

Model Specifications

Context Window
200K
tokens
Max Output
100K
tokens
Training Cutoff
2025-03
Compatible SDK
OpenAI

Capabilities

Vision
Function Calling
Streaming
JSON Mode
System Prompt

Token Pricing (per 1M tokens)

Token TypeCreditsUSD Equivalent
Input Tokens2,200$2.20
Output Tokens8,800$8.80

* 1 credit โ‰ˆ $0.001 (actual charges may vary based on usage)

Quick Start

curl -X POST "https://api.core.today/llm/openai/v1/chat/completions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer cdt_your_api_key" \
  -d '{
  "model": "o4-mini",
  "messages": [
    {
      "role": "user",
      "content": "Review this code and suggest improvements:\n\ndef fib(n):\n    if n <= 1: return n\n    return fib(n-1) + fib(n-2)"
    }
  ],
  "max_completion_tokens": 16000,
  "reasoning_effort": "medium"
}'

Parameters

ParameterTypeRequiredDefaultDescription
messagesarrayYes-Array of message objects
max_completion_tokensintegerNo-Maximum tokens for completion
reasoning_effortstringNo-Reasoning depth level
minimallowmediumhigh

Examples

Code Review

Review and improve code

curl -X POST "https://api.core.today/llm/openai/v1/chat/completions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer cdt_your_api_key" \
  -d '{
  "model": "o4-mini",
  "messages": [
    {
      "role": "user",
      "content": "Review this code and suggest improvements:\n\ndef fib(n):\n    if n <= 1: return n\n    return fib(n-1) + fib(n-2)"
    }
  ],
  "max_completion_tokens": 16000,
  "reasoning_effort": "medium"
}'

Tips & Best Practices

1Best for coding and STEM tasks
2Most cost-effective reasoning model
3Use reasoning_effort to balance speed vs depth
4Use max_completion_tokens instead of max_tokens

Use Cases

Code generation and review
Scientific calculations
Technical problem solving
Educational applications
Competitive programming