Getting Started
Minima is a hosted API. There is nothing to install or run — you call the service with an API key, get a model recommendation, run that model in your own stack, and report the outcome so the next pick gets sharper. This walks you from a key to a closed feedback loop.
Prerequisites
Section titled “Prerequisites”- A Mubit API key (
mbt_…) — your Mubit data-plane key. Minima passes it through on each request to read and write yourtask → model → outcomehistory in Mubit; there is no separate Minima key. Request access if you don’t have one yet. - Nothing else. Minima computes its own embeddings server-side — there’s no model, database, or runtime for you to operate.
-
Make your first recommendation
Terminal window curl -s https://api.minima.sh/v1/recommend \-H "authorization: Bearer $MUBIT_API_KEY" \-H 'content-type: application/json' \-d '{"task": {"task": "Summarize this 2-page incident report into 3 bullet points.","task_type": "summarization"},"cost_quality_tradeoff": 3}' | jqYou get back a
recommendation_id, arecommended_model, a ranked candidate list, afallback_model, and adecision_basis(memory|prior|llm). -
Run the model yourself
Minima hands back the pick — it never proxies, executes, or rewrites. Run the recommended model in your own stack with your own provider credentials. Keep the
recommendation_id; you’ll quote it back in the next step. -
Close the loop
Tell Minima how it went. This is what makes the next recommendation sharper — and it populates the realized cost/token history that powers accurate cost ranking.
Terminal window curl -s https://api.minima.sh/v1/feedback \-H "authorization: Bearer $MUBIT_API_KEY" \-H 'content-type: application/json' \-d '{"recommendation_id": "<from step 1>","chosen_model_id": "claude-haiku-4-5","outcome": "success","quality_score": 0.95,"input_tokens": 1180,"output_tokens": 320,"actual_cost_usd": 0.0028,"verified_in_production": true}' | jq
Next steps
Section titled “Next steps”- Use the typed Python Client SDK instead of raw
curl. - Read Concepts to understand the slider, the cost-basis tiers, and the escalation path.
- Browse the Examples for constraints, workflows, and a production routing wrapper.