Mammoth-1 and Elephant-1 from Baseten are now available for free on AI Gateway for one week. Free access is available through October 27. These decision models classify text, route requests, and score content against criteria you define.
Mammoth-1 is the larger, 27B model, while Elephant-1 is a smaller, 9B option. Mammoth-1 is #1 on the Jev Decision Index and Elephant-1 is tied for #1 on the Artificial Analysis Decision Index.
Both support a 16k-token context window and return choices, probabilities, and scores. Ask several questions about the same input in one request: select a support team with a Choice question, check for a refund request with a Boolean question, or rate urgency with a Score question. Your application chooses the probability threshold for acting automatically or sending a result for review.
Use baseten/mammoth-1 or baseten/elephant-1 as the model name:
import { experimental_decide as decide } from 'ai';
const result = await decide({ model: 'baseten/mammoth-1', state: 'I was charged twice. Please refund the duplicate.', questions: { refund: { type: 'boolean', instructions: 'Is the customer asking for a refund?', }, },});
console.log(result.answers.refund);See the decision models documentation for question types and additional usage details.
AI Gateway provides a unified API for accessing models and tracking usage and cost. Decision calls appear in logs and count toward budgets alongside other model requests.
Browse all decision models available on AI Gateway.
Reference Architecture
Choose a stack and work through the decisions behind it, with curated documentation, guides, templates, and courses to help you build.
- Agent stack: Build and operate agents with models, tools, and durable workflows.
- Web applications: Choose rendering, data, authentication, and caching approaches.
- Backends: Choose a runtime, connect services, and run background work.
Build with prompts
Build an app, extend an agent, or improve your project with ready-to-use prompts for your coding agent.