OpenAI

GPT-4.1 Mini

gpt-4.1-miniAvailable

GPT-4.1 Mini. Text generation model.

Context
1.05M tokens
vs. official price
15% cheaper

Pricing (USD per 1M tokens)

How prices are calculated
Prices (USD per 1M tokens)
ItemOfficialBasicPremium
Input$0.40≈ ¥63.5$0.34≈ ¥54.4$0.30≈ ¥48.0
Output$1.60≈ ¥254$1.36≈ ¥218$1.20≈ ¥192
Cache read$0.10≈ ¥15.9$0.085≈ ¥13.6$0.075≈ ¥12.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-4.1-mini",
    messages=[{"role": "user", "content": "Hello"}],
)
print(res.choices[0].message.content)
its developer docs