About
Baseten Mammoth 1 is a 27B model served by Baseten for typed decisions over text, structured data, and images. It supports Noul yes/no probabilities, Choice classification, and Score rubrics, returning structured answers without free-form chat generation. Each question has a 16,384-token context limit including its shared state and formatting. Multiple questions reuse the shared input prefix, and image input is supported through user messages. The platform exposes the standard Baseten route through its Decisions API.
1. Calling the API
Setup your API Key
Create an Infron account and API key.
export INFRON_KEY="YOUR_API_KEY"
Submit a request
Send the embedded red-square example to the platform endpoint:
curl --request POST "https://llm.onerouter.pro/v1/decisions" \
--header "Authorization: Bearer $INFRON_KEY" \
--header "Content-Type: application/json" \
--data '{
"model": "baseten/mammoth-1",
"state": {
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Inspect the supplied image."
},
{
"type": "image_url",
"image_url": {
"url": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAIAAABMXPacAAABWklEQVR4nO3OQQ0AMBAEofVv+iqDxzRBALvtg/wgzg/i/CDOD+L8IM4P4vwgzg/i/CDOD+L8IM4P4vwgzg/i/CDOD+L8IM4P4vwgzg/i/CDOD+L8IM4P4vwgzg/i/CDOD+L8IM4P4vwgzg/i/CDOD+L8IM4P4vwgzg/i/CDOD+L8IM4P4vwgzg/i/CDOD+L8IM4P4vwgzg/i/CDOD+L8IM4P4vwgzg/i/CDOD+L8IM4P4vwgzg/i/CDOD+L8IM4P4vwgzg/i/CDOD+L8IM4P4vwgzg/i/CDOD+L8IM4P4vwgzg/i/CDOD+L8IM4P4vwgzg/i/CDOD+L8IM4P4vwgzg/i/CDOD+L8IM4P4vwgzg/i/CDOD+L8IM4P4vwgzg/i/CDOD+L8IM4P4vwgzg/i/CDOD+L8IM4P4vwgzg/i/CDOD+L8IM4P4vwgzg/i/CDOD+L8IM4P4vwg7gEgaMOyrMtNTwAAAABJRU5ErkJggg=="
}
}
]
}
]
},
"questions": {
"square_color": {
"type": "choice",
"instructions": "What is the color of the square in the image?",
"criteria": {
"red": "Red",
"blue": "Blue",
"green": "Green"
}
}
},
"provider": {
"only": [
"baseten"
],
"allow_fallbacks": false
},
"usage": {
"include": true
}
}'
Response
This is an illustrative response, with placeholder request ID, probabilities, and usage:
{
"id": "request_id_example",
"request_id": "request_id_example",
"model": "baseten/mammoth-1",
"answers": {
"square_color": {
"type": "choice",
"choice": "red",
"confidence": 0.97,
"probabilities": {
"red": 0.98,
"blue": 0.01,
"green": 0.01
}
}
},
"usage": {
"input_tokens": 100,
"output_tokens": 1
}
}
Routing and usage
provider.only=["baseten"] selects Baseten; provider.service_tier="standard" selects the standard route. Platform routing options and usage.include are not sent upstream. The upstream tier is its default tier. Actual upstream input and output token counts are preserved. Shared-prefix input is counted once, followed by each question's additional input; image tokens are included. The upstream reports one output token per question, even though output is free.
Errors
Configured type and per-question option limits are checked before forwarding. The upstream enforces prompt length, the combined 512-option budget, image constraints, and conversation rules; invalid requests return an error rather than truncating the input. Authentication and capacity errors follow the existing platform error handling. This route is synchronous and does not support streaming.
2. Schema
Input
| Parameter | Type | Required | Default | Range | Description |
|---|---|---|---|---|---|
model | string | Yes | -- | baseten/mammoth-1 | Public model ID. |
state | string / object / array | Yes | -- | Per-question context limit | Shared input; conversation objects use messages. |
questions | object | Yes | -- | At least 1 question | Map from names to question definitions. |
questions.<id>.type | string | Yes | -- | noul, choice, score | Answer type. |
questions.<id>.instructions | string / object / array / null | No | Upstream question default | -- | Optional question instructions. |
questions.<id>.criteria | object / array / null | For choice and score | Upstream yes/no defaults | See Question types | Options or ordered levels. |
max_len | integer | No | Model context limit | Positive; cannot extend model context | Upper prompt budget per question; positivity is enforced upstream. |
provider | object | No | -- | Standard route | Platform routing options. |
usage.include | boolean | No | false | true, false | Include platform cost details. |
Question types
Choice accepts 1–255 named options. Score accepts 1–10 ordered levels, numbered from zero. Their descriptions may be strings, objects, arrays, or null. Noul may omit criteria, use null or an empty object, or specify exactly true and false; the upstream validates this contract. Missing, null, or empty instructions use the upstream's question defaults. Each Noul question consumes two of the combined 512 options. Each question's complete prompt, including images and formatting, must fit 16,384 tokens or a smaller max_len.
Media inputs
Use image parts in state.messages[].content for user messages, as shown above. PNG, JPEG, and WebP data URLs are accepted. HTTPS image URLs must be hosted on Amazon S3, Google Cloud Storage, or Azure Blob Storage. A request accepts at most 16 images. Image detail must be auto or omitted. Conversation roles are user and assistant; assistant images, audio, and video are unsupported. Generic JSON state is passed through without serializing it into a string.
Output
| Parameter | Type | Range | Description |
|---|---|---|---|
id, request_id | string | -- | Platform request ID. |
model | string | -- | Public model ID. |
provider, service_tier | string | -- | Selected route. |
answers | object | Request question names | Typed upstream results. |
answers.<id>.type | string | noul, choice, score | Question type. |
answers.<id>.noul | number | 0–1 | Yes probability. |
answers.<id>.choice | string | Option keys | Selected option. |
answers.<id>.score | number | 0 to levels minus 1 | Rating within the rubric. |
answers.<id>.probabilities | object | Values 0–1 | Option or level probabilities. |
answers.<id>.confidence | number | 0–1 | Distribution concentration for Choice and Score. |
answers.<id>.legend | object | -- | Score level descriptions. |
usage.input_tokens, usage.output_tokens | integer | Non-negative | Actual upstream usage. |
cost | number | USD | Charge when requested. |
cost_details | object | -- | Billing breakdown when requested. |
3. Detailed Pricing
| Model | Billing unit | Input price | Output price |
|---|---|---|---|
| Baseten Mammoth 1 | Per 1 million tokens | $0.10 | Free |
Standard-tier official pricing applies to actual input usage, including image tokens. No promotional or commercial discount is configured. Output token counts remain unchanged. Official pricing; model pricing; API contract.