Midium

Docs

Install Midium Desktop, run a model, and point Cursor at a local sub-agent.

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 frontier
  • POST https://api.midium.dev/v1/embeddings — model midium
  • POST 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.

Midium API prices per million tokens
APIModel nameInput / MOutput / M
LiteGemma 4 E2Blite$0.11$0.55
BalancedGemma 4 26Bbalanced$0.28$1.12
FrontierOrnith 1.5 122Bfrontier$1.05$5.25
Embeddingsmidium$0.012$0.036
System OneDecider 4Bmidium$0.032$0.00