Skip to main content
Core.Today
|
OpenAIMediumUltra

OpenAI o1-mini

Fast reasoning model optimized for coding and STEM tasks. Provides strong reasoning at lower cost than o1.

4 credits
per 1K tokens (avg)
Optimized for coding/STEM
128K context window
65K max output tokens
Fast reasoning
Cost-effective reasoning

Model Specifications

Context Window
128K
tokens
Max Output
66K
tokens
Training Cutoff
2023-10
Compatible SDK
OpenAI

Capabilities

Vision
Function Calling
Streaming
JSON Mode
System Prompt

Token Pricing (per 1M tokens)

Token TypeCreditsUSD Equivalent
Input Tokens3,000$3.00
Output Tokens12,000$12.00

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

Quick Start

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "model": "o1-mini",
  "input": {
    "model": "o1-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)"
      }
    ]
  }
}'

Parameters

ParameterTypeRequiredDefaultDescription
messagesarrayYes-Array of message objects
max_completion_tokensintegerNo-Maximum tokens for completion

Examples

Code Review

Review and improve code

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "model": "o1-mini",
  "input": {
    "model": "o1-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)"
      }
    ]
  }
}'

Tips & Best Practices

1Best for coding and STEM tasks
2More cost-effective than o1 for technical problems
3Does not support vision or function calling
4Great for competitive programming practice

Use Cases

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

Model Info

ProviderOpenAI
Version2024-09-12
CategoryLLM
Price4 credits

API Endpoint

POST /llm/openai/v1/chat/completions
Try in PlaygroundBack to Docs