Skip to main content
Core.Today
|
OpenAIFastHigh

GPT-4o Mini

Cost-effective, fast model with strong performance. Best for high-volume tasks where speed and cost matter more than absolute capability.

1 credits
per 1K tokens (avg)
128K context window
16K max output tokens
Vision capabilities
Function calling support
Extremely cost-effective
Fast response times

Model Specifications

Context Window
128K
tokens
Max Output
16K
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 Tokens150$0.15
Output Tokens600$0.60
Cached Tokens75$0.07

* 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": "gpt-4o-mini",
  "input": {
    "model": "gpt-4o-mini",
    "messages": [
      {
        "role": "system",
        "content": "Classify the sentiment of the following text as positive, negative, or neutral. Respond with only the classification."
      },
      {
        "role": "user",
        "content": "The product arrived on time and works great!"
      }
    ],
    "temperature": 0
  }
}'

Parameters

ParameterTypeRequiredDefaultDescription
messagesarrayYes-Array of message objects
temperaturefloatNo1.0Sampling temperature (0-2)
max_tokensintegerNo-Maximum response tokens
streambooleanNofalseEnable streaming

Examples

Classification

Classify customer feedback

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "model": "gpt-4o-mini",
  "input": {
    "model": "gpt-4o-mini",
    "messages": [
      {
        "role": "system",
        "content": "Classify the sentiment of the following text as positive, negative, or neutral. Respond with only the classification."
      },
      {
        "role": "user",
        "content": "The product arrived on time and works great!"
      }
    ],
    "temperature": 0
  }
}'

Summarization

Summarize long text

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "model": "gpt-4o-mini",
  "input": {
    "model": "gpt-4o-mini",
    "messages": [
      {
        "role": "user",
        "content": "Summarize this article in 3 bullet points: [article text here]"
      }
    ],
    "max_tokens": 500
  }
}'

Tips & Best Practices

1Best choice for high-volume, cost-sensitive applications
2Use for simple tasks before upgrading to GPT-4o
3Great for prototyping and testing
4Same API as GPT-4o for easy switching

Use Cases

High-volume chatbots
Simple classification tasks
Content summarization
Data extraction
Batch processing
Development and testing

Model Info

ProviderOpenAI
Version2024-07-18
CategoryLLM
Price1 credits

API Endpoint

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