OpenAI

GPT-4o-mini

Chat
Not available
Get started

Ultra-affordable small model with vision — best for high-volume, cost-sensitive tasks.

Context
128Ktokens
Max output
16Ktokens
Latency
~6ms
Released
2024-07

Pricing

$ / 1M tokens
Input
$0.15/M
Output
$0.60/M
Cache Read
$0.075/M
Cache Write
$0.15/M

Capabilities

4 listed
  • Chat
  • Tool Use
  • Vision
  • Coding

Code examples

POST /v1/chat/completions
python
from openai import OpenAI

client = OpenAI(
    api_key="your_api_key",
    base_url="https://api.modelstack.cc/v1",
)

response = client.chat.completions.create(
    model="gpt-4o-mini",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)

Related models

Frequently asked questions

How is GPT-4o-mini billed on ModelStack?expand_more
ModelStack bills based on actual request usage. Input, output, cache, and any other applicable rates follow the live pricing table on this page. Final request costs are available in the console.
What are the context window and maximum output for GPT-4o-mini?expand_more
GPT-4o-mini has a 128K context window and supports up to 16K of output.
How can I call GPT-4o-mini through ModelStack?expand_more
Use the model ID `gpt-4o-mini` with any OpenAI-compatible SDK pointed at the ModelStack API — see the code examples above for Python, Node.js, and cURL.
Which capabilities does GPT-4o-mini support?expand_more
GPT-4o-mini supports: Chat, Tool Use, Vision, Coding.