Model API
Retrieve a model
One model id with its price.
Returns one model. No key needed.
Path parameters
modelstringrequiredA model id, like supercosmos-max.
Response
200 · application/json
idstringThe model id.
pricingobjectinput and output in USD per 1M tokens.
Errors
| Status | Code | When |
|---|---|---|
404 | model_not_found | Unknown model id. |
410 | model_retired | A retired model id (Line Code). See Line Code retirement. |
curl "https://api.gateway.clatterlabs.xyz/v1/models/MODEL" \
-H "Authorization: Bearer $CLATTER_API_KEY" \
-H "X-Clatter-Account: $CLATTER_ACCOUNT_ID"import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['CLATTER_API_KEY']}",
"X-Clatter-Account": os.environ["CLATTER_ACCOUNT_ID"],
}
r = requests.get("https://api.gateway.clatterlabs.xyz/v1/models/MODEL", headers=headers)
print(r.json())const headers = {
Authorization: `Bearer ${process.env.CLATTER_API_KEY}`,
"X-Clatter-Account": process.env.CLATTER_ACCOUNT_ID,
};
const res = await fetch("https://api.gateway.clatterlabs.xyz/v1/models/MODEL", {
method: "GET",
headers,
});
console.log(await res.json());{
"id": "supercosmos-max",
"object": "model",
"created": 1793232000,
"owned_by": "clatter-labs",
"name": "SuperCosmos Max",
"family": "SuperCosmos",
"version": "1.1",
"effort": "max",
"description": "Plans and builds. Multi-step work, debugging and longer answers.",
"capabilities": {
"chat_completions": true,
"streaming": true,
"tools": true,
"reasoning": true,
"vision": false
},
"max_output_tokens": 32768,
"pricing": {
"currency": "USD",
"unit": "1M tokens",
"input": 1.8,
"output": 3.8,
"long_context": "Long-context input above 262K tokens: 1.5x"
}
}Was this page helpful?