OpenAI

GPT-4o-mini

gpt-4o-miniAvailable

GPT-4o-mini. Text generation model.

Context
128K tokens
vs. official price
15% cheaper

Pricing (USD per 1M tokens)

How prices are calculated
Prices (USD per 1M tokens)
ItemOfficialBasicPremium
Input$0.15≈ ¥23.8$0.1275≈ ¥20.4$0.1125≈ ¥18.0
Output$0.60≈ ¥95.2$0.51≈ ¥81.6$0.45≈ ¥72.0
Cache read$0.075≈ ¥11.9$0.0638≈ ¥10.2$0.0563≈ ¥9.0

Cost per task vs. models at a similar price

Compare them

How to call

POST/v1/chat/completions

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://token.echohub.io/v1",
    api_key=os.environ["ECHO_API_KEY"],
)

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