All models / OpenAI
gpt-4.1-mini API pricing and setup
Call this model through XHuoAPI with one key. Below are its prices in each tier, the endpoint formats it accepts, and a request you can copy.
Prices synced
Price by tier
USD per million tokens (per call for per-call models). A token is billed at the price of the tier it was created in; tiers not listed don't offer this model.
| Tier | Input | Cache read | Output |
|---|---|---|---|
| Standard Default | $0.32 | $0.080 | $1.28 |
| Saver | $0.20 | $0.050 | $0.80 |
| Spot | $0.12 | $0.030 | $0.48 |
| Official | $0.40 | $0.10 | $1.60 |
Facts
| Vendor | OpenAI |
|---|---|
| Type | Chat |
| Endpoint formats | OpenAI Chat Completions |
| Billing | Per token |
| Long-context pricing | None |
| Cache-read price | Yes |
| Tiers | Standard · Saver · Spot · Official |
| Tested | Minimal request succeeded · |
Monthly cost examples
Estimated at Standard-tier prices, without cache discounts.
| 10M in + 1M out | $4.48 |
| 100M in + 20M out | $57.60 |
Request example
Replace $XHUO_API_KEY with a token from the console. The base URL is https://api.xhuoapi.ai/v1; existing OpenAI SDK code only needs that one change.
curl https://api.xhuoapi.ai/v1/chat/completions \
-H "Authorization: Bearer $XHUO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "gpt-4.1-mini", "messages": [{"role": "user", "content": "Hello"}]}'
from openai import OpenAI
client = OpenAI(base_url="https://api.xhuoapi.ai/v1", api_key="YOUR_XHUOAPI_KEY")
resp = client.chat.completions.create(
model="gpt-4.1-mini",
messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)
Use it in your tools
More from this vendor
gpt-3.5-turbo
gpt-4
gpt-4.1
gpt-4.1-nano
gpt-4o
gpt-4o-mini
gpt-5
gpt-5-codex
gpt-5.1
gpt-5.2
gpt-5.3-codex
gpt-5.4
gpt-5.4-mini
gpt-5.4-nano
gpt-5.5
gpt-5.6-luna
gpt-5.6-sol
gpt-5.6-terra
gpt-6-astra
gpt-6-luna
gpt-6-sol
gpt-6.1-sol
gpt-image-2
gpt-image-2.5
text-embedding-3-large
text-embedding-3-small
text-embedding-ada-002
tts-1