Aedelsten · API reference
One JSON API. No key.
Aedelsten lists AI models with their prices, context windows and capabilities, and ranks them for a task. Every Aedelgard install asks it, and so can your own agent, script or spreadsheet.
# base URL
https://api.aedelgard.com/v1
Quick start
Ask which coding models cost at most $1 per million input tokens, among the providers you hold keys for:
curl "https://api.aedelgard.com/v1/recommend?task=coding&providers=mistral,anthropic&budget_per_1m=1"
The answer is a ranked list. Each row names the model, its provider and tier, a score, a reason and its prices:
{
"task": "coding",
"filters": { "budget_per_1m": 1.0, "providers": ["mistral", "anthropic"], "features": "any" },
"candidate_pool": 18,
"updated_at": "2026-11-22T06:00:48Z",
"ttl_seconds": 3600,
"ranked": [
{
"rank": 1,
"id": "codestral-latest",
"provider": "mistral",
"tier": "fast-flagship",
"score": 9.0,
"reason": "fast-flagship tier; $0.3/1M input …",
"context_window": 128000,
"cost": { "input_per_1m": 0.3, "output_per_1m": 0.9, "cached_input_per_1m": 0.03, "cache_write_per_1m": null },
"effective_input_per_1m": 0.3
}
]
}
Abridged from a real answer on 22 November 2026. Models, prices and rankings change; read them from the service, not from this page.
Conventions
- Read-only. Every endpoint is a
GETthat returns JSON. - No key and no account. There is nothing to sign up for.
- Callable from a browser. Responses carry
access-control-allow-origin: *. - Cache for an hour. Responses carry
cache-control: public, max-age=3600, and each body repeats this asttl_seconds. Please honour it rather than polling. - Refreshed daily. The catalogue is rebuilt each morning.
updated_aton every response says when, in UTC. - Prices are US dollars per million tokens. A price of
nullmeans Aedelsten has no confirmed price for it; do not treat it as free. - Schema version.
/healthreportsschema_version, currently"1". Records may gain fields; ignore the ones you do not know.
Health
GET/v1/health
Whether the service is up, when the catalogue was last rebuilt, and how much it holds.
{
"status": "ok",
"updated_at": "2026-11-22T06:00:48Z",
"ttl_seconds": 3600,
"model_count": 335,
"active": 129,
"unclassified": 0,
"providers": ["anthropic", "bedrock", "berget", "google", "mistral", "nebius", "openai"],
"schema_version": "1"
}
List models
GET/v1/models
The catalogue. Without parameters it returns the models that are active now.
| Parameter | Values | Meaning |
|---|---|---|
status | active (default), all, or one status | Which models to include. all adds deprecated, legacy and retired models, which is useful for pricing old usage. |
provider | a provider id | Only that provider's models, for example provider=mistral. |
The response has count, updated_at, ttl_seconds and models, an array of model records.
curl "https://api.aedelgard.com/v1/models?provider=mistral"
One model
GET/v1/models/{id}
A single model record by its id, with updated_at and ttl_seconds alongside. An unknown id answers 404.
curl "https://api.aedelgard.com/v1/models/codestral-latest"
Rank models for a task
GET/v1/recommend
Aedelsten's ranking: up to ten models for a task, best first, drawn from the active catalogue.
| Parameter | Values | Meaning |
|---|---|---|
task | one of the tasks; default general | What the model is for. |
providers | comma-separated provider ids; default all | Rank only among these, typically the providers you hold keys for. |
budget_per_1m | a number, in US dollars | A ceiling on the input price per million tokens. |
features | comma-separated features | Every listed feature must be present. An impossible combination returns an empty ranked list, not an error. |
Response
| Field | Meaning |
|---|---|
task | The task as Aedelsten read it. |
filters | The filters that were applied, echoed back. It also names filters this page does not document yet (input_modalities, output_modalities, service_tier, context_tokens). |
candidate_pool | How many models passed the filters before ranking. |
ranked | The ranked rows, described below. |
updated_at, ttl_seconds | As on every response. |
A ranked row
| Field | Meaning |
|---|---|
rank | Position, starting at 1. |
id, model_id | The model's identifier, as you would send it to the provider. Both fields carry the same value; prefer id. |
provider, tier | Who serves it and which tier Aedelsten places it in. |
score | Aedelsten's score for this task. Compare scores within one answer only. |
reason | A short explanation in words. |
context_window, modality, cost, cost_ladder | As in the model record. |
effective_input_per_1m | The input price the budget was compared against. |
aedelgard_note | The editorial note for the model. |
Providers
GET/v1/providers
The providers Aedelsten tracks and how a client connects to each. The response has providers, updated_at and ttl_seconds.
{
"id": "mistral",
"slot": "mistral",
"display_name": "Mistral",
"dialect": "openai",
"base_url": "https://api.mistral.ai/v1",
"auth": "api_key",
"key_prefix": [],
"connectable": true,
"models_active": 25
}
| Field | Meaning |
|---|---|
id, display_name | The provider's identifier and its name for people. |
slot | The name the Aedelgard app files this provider's key under. |
dialect | Which API shape the provider speaks, for example openai or anthropic. |
base_url, auth | Where requests go and how they are authenticated. |
key_prefix | Prefixes that help recognise one of this provider's keys. May be empty. |
connectable | Whether the Aedelgard app can connect to it directly. |
models_active | How many of its models are active in the catalogue. |
The model record
One model, as returned by /models and /models/{id}.
{
"id": "codestral-latest",
"provider": "mistral",
"display_name": "codestral-2508",
"status": "active",
"released_at": "2026-10-07",
"context_window": 128000,
"cost": { "input_per_1m": 0.3, "output_per_1m": 0.9, "cached_input_per_1m": 0.03, "cache_write_per_1m": null },
"features": ["tool_use", "streaming", "reasoning"],
"tier": "fast-flagship",
"cost_efficiency": "medium",
"classification": { "good_for": [], "bad_for": [], "latency": "unknown" },
"aedelgard_note": "Auto-classified (2026-10-07): tier=fast-flagship from family/size; …",
"price_confirmed_at": "2026-10-07",
"_auto_classified": true,
"modality": { "input": ["text", "pdf"], "output": ["text"], "max_output_tokens": 128000 },
"purpose": "text"
}
Abridged from a real record on 22 November 2026.
| Field | Meaning |
|---|---|
id | The identifier to send to the provider. |
provider, display_name | Who serves the model and its name for people. |
status | One of the statuses. |
released_at | Release date, where known. |
context_window | Context size in tokens. |
cost | Prices in US dollars per million tokens: input_per_1m, output_per_1m, cached_input_per_1m and cache_write_per_1m. Any of them may be null. |
cost_ladder | Price variations where the provider has them, such as batch service tiers or a step at a context size. |
features | What the model supports, as a list of features. |
tier | Aedelsten's tier for the model. |
capability_profile, classification, cost_efficiency | Aedelsten's classification: what the model is good and bad for, its latency class, and how its price compares with what it can do. |
modality | Input and output types and the maximum output tokens. |
reasoning_capabilities | Whether the model reasons and which effort levels it accepts, where known. |
purpose | What kind of model it is, for example text. |
aedelgard_note | An editorial note, often with the source of the price. |
price_confirmed_at | The date the price was last confirmed. |
_auto_classified | true when the tier and note were assigned automatically and no person has reviewed them yet. |
Vocabulary
The values seen in the catalogue today. New ones may appear, so handle a value you do not recognise.
| Field | Values |
|---|---|
| Task | general coding reasoning planning long_context summarisation vision tool_use speed |
| Status | active deprecated legacy retired |
| Tier | flagship fast-flagship fast reasoning micro legacy unclassified |
| Provider | anthropic bedrock berget google mistral nebius openai |
| Feature | Among others: tool_use vision thinking reasoning prompt_caching streaming |
An unrecognised task is not rejected: Aedelsten still answers, so check the task field of the response if the value came from user input.
Errors
| Status | When | Body |
|---|---|---|
200 | The request was answered, including a ranking with no matches. | The JSON described above. |
404 | An unknown model id, or a path that does not exist. | For a model: {"error": "model not found: …"} |
If the service cannot be reached, fall back to your last cached answer. That is what the Aedelgard app does: it uses its cached catalogue, and marks prices and availability as possibly stale.
What is not built
Answers are not signed today. The service is reached over HTTPS and that is the only assurance of where an answer came from. Signed answers, each valid for one day, are being built.
The advice layer is unfinished. Rankings and editorial notes exist. The fuller written advice is being built and the watch list is partly built, as the Aedelsten page says.
There is no write access. Nothing here accepts data from a client.
Terms of use
The API needs no key and anyone can call it. We have not yet published a licence for the data or a commitment about availability, and whether the catalogue becomes open data is one of the questions we haven't settled. Until that is decided:
- Cache answers for the hour they say they are good for.
- Check prices with the provider before you rely on them for billing. Each record says when its price was last confirmed.
- Tell us what you build, or what is wrong: contact@aedelgard.com or the Discord community.