Run ensembles from your own code

The AI Crucible API runs the same multi-model strategies as the app: several models work the question and one answer comes back. API access is included in the Pro plan.

Let Autopilot choose

Set model to crucible/auto and Autopilot picks one model or an ensemble, the strategy, the models and the judge for each prompt. You set only Speed (fast, balanced, thorough) and Cost (lean, standard, max), in ai_crucible or the x-crucible-speed and x-crucible-cost headers. The response reports the plan it ran in ai_crucible.plan.

Quickstart

curl https://ai-crucible.com/v1/chat/completions \
  -H "Authorization: Bearer $AI_CRUCIBLE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"crucible/auto","messages":[{"role":"user","content":"Should a five-person startup move from Heroku to AWS this year?"}],"ai_crucible":{"speed":"balanced","cost":"standard"}}'

Endpoints

Resources