Cloud API
The same OpenAI-compatible API on every plan. Chat takes lite, balanced, or frontier. Embeddings and System One take midium. Prompts and generated responses are not retained.
Base URL
https://api.midium.dev/v1
POST https://api.midium.dev/v1/chat/completions— model lite, balanced, or frontierPOST https://api.midium.dev/v1/embeddings— model midiumPOST https://api.midium.dev/v1/systemone— model midium. Choice, Score, and Noul
Auth
Create an account, then send the key from the dashboard as Authorization: Bearer $MIDIUM_API_KEY.
Curl
curl https://api.midium.dev/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $MIDIUM_API_KEY" \
-d '{"model":"lite","messages":[{"role":"user","content":"Hello"}]}'System One
System One answers structured questions about a state. Choice picks one labeled option, Score places the state on an ordered scale, and Noul is a yes or no as a probability. Send midium. The model behind that name can change.
curl https://api.midium.dev/v1/systemone \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $MIDIUM_API_KEY" \
-d '{"model":"midium","state":{"ticket":"I was charged twice."},"questions":{"department":{"type":"choice","instructions":"Which team should handle this?","criteria":{"billing":"payments","technical":"bugs"}}}}'OpenAI SDK
from openai import OpenAI
client = OpenAI(base_url="https://api.midium.dev/v1", api_key="YOUR_KEY")
client.chat.completions.create(
model="balanced",
messages=[{"role": "user", "content": "Hello"}],
)
from openai import OpenAI
client = OpenAI(base_url="https://api.midium.dev/v1", api_key="YOUR_KEY")
client.embeddings.create(model="midium", input="Your document")Prices
One input rate and one output rate per API. The weights behind the name are not priced.
| API | Model name | Input / M | Output / M |
|---|---|---|---|
| LiteGemma 4 E2B | lite | $0.11 | $0.55 |
| BalancedGemma 4 26B | balanced | $0.28 | $1.12 |
| FrontierOrnith 1.5 122B | frontier | $1.05 | $5.25 |
| Embeddings | midium | $0.012 | $0.036 |
| System OneDecider 4B | midium | $0.032 | $0.00 |
