GPT-4o mini
GPT-4o mini by OpenAI, through an OpenAI-compatible chat completions API.
gpt-4o-miniGet API keyPricing USD per million tokens
| Tokens | Per 1M tokens |
|---|---|
| Input | $0.15 |
| Cached input | $0.15 |
| Cache write (5 min) | $0.15 |
| Cache write (1 hour) | $0.15 |
| Output | $0.60 |
Reasoning tokens are billed as output. Each answer's usage carries cost_usd, the amount taken from your balance; a request with no answer costs $0.00.
Request
curl https://api.revana.si/v1/chat/completions \
-H "Authorization: Bearer $REVANA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-4o-mini","messages":[{"role":"user","content":"Write a haiku about routing."}]}'import os
from openai import OpenAI
client = OpenAI(base_url="https://api.revana.si/v1", api_key=os.environ["REVANA_API_KEY"])
reply = client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": "Write a haiku about routing."}],
)
print(reply.choices[0].message.content)Any OpenAI SDK works: set the base URL to https://api.revana.si/v1. Streaming, tools and the rest are in the chat completions docs.
Details
gpt-4o-miniPOST /v1/chat/completions1 route
One route today. A request that gets no answer is not charged.
About the GPT-4o mini API
How much does the GPT-4o mini API cost?
GPT-4o mini costs $0.15 per million input tokens, $0.15 per million cached input tokens and $0.60 per million output tokens on Revana. You pay from prepaid credit for the tokens each request used, with no subscription or minimum.
How do I call GPT-4o mini from code?
Use any OpenAI SDK with base URL https://api.revana.si/v1 and your Revana API key, and set model to "gpt-4o-mini". POST /v1/chat/completions takes the OpenAI request body, streamed or not.
What happens if a request fails?
A request that gets no answer costs nothing.
Is GPT-4o mini on Revana the same model?
Yes. Revana passes your request to OpenAI's model unchanged and returns its answer in the OpenAI format, with the usage it reported and what the request cost.
More from OpenAI
- GPT-4.1 $2.00 in / $8.00 out per 1M tokens
- GPT-4.1 mini $0.40 in / $1.60 out per 1M tokens
- GPT-4.1 nano $0.10 in / $0.40 out per 1M tokens
- GPT-4o $2.50 in / $10.00 out per 1M tokens
- GPT-5 $1.25 in / $10.00 out per 1M tokens
- GPT-5 mini $0.25 in / $2.00 out per 1M tokens
- GPT-5 nano $0.05 in / $0.40 out per 1M tokens
- GPT-5.1 $1.25 in / $10.00 out per 1M tokens
Also as markdown for agents. Every language model and price: llms.json.