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 GET that 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 as ttl_seconds. Please honour it rather than polling.
  • Refreshed daily. The catalogue is rebuilt each morning. updated_at on every response says when, in UTC.
  • Prices are US dollars per million tokens. A price of null means Aedelsten has no confirmed price for it; do not treat it as free.
  • Schema version. /health reports schema_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.

ParameterValuesMeaning
statusactive (default), all, or one statusWhich models to include. all adds deprecated, legacy and retired models, which is useful for pricing old usage.
providera provider idOnly 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.

ParameterValuesMeaning
taskone of the tasks; default generalWhat the model is for.
providerscomma-separated provider ids; default allRank only among these, typically the providers you hold keys for.
budget_per_1ma number, in US dollarsA ceiling on the input price per million tokens.
featurescomma-separated featuresEvery listed feature must be present. An impossible combination returns an empty ranked list, not an error.

Response

FieldMeaning
taskThe task as Aedelsten read it.
filtersThe 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_poolHow many models passed the filters before ranking.
rankedThe ranked rows, described below.
updated_at, ttl_secondsAs on every response.

A ranked row

FieldMeaning
rankPosition, starting at 1.
id, model_idThe model's identifier, as you would send it to the provider. Both fields carry the same value; prefer id.
provider, tierWho serves it and which tier Aedelsten places it in.
scoreAedelsten's score for this task. Compare scores within one answer only.
reasonA short explanation in words.
context_window, modality, cost, cost_ladderAs in the model record.
effective_input_per_1mThe input price the budget was compared against.
aedelgard_noteThe 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
}
FieldMeaning
id, display_nameThe provider's identifier and its name for people.
slotThe name the Aedelgard app files this provider's key under.
dialectWhich API shape the provider speaks, for example openai or anthropic.
base_url, authWhere requests go and how they are authenticated.
key_prefixPrefixes that help recognise one of this provider's keys. May be empty.
connectableWhether the Aedelgard app can connect to it directly.
models_activeHow 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.

FieldMeaning
idThe identifier to send to the provider.
provider, display_nameWho serves the model and its name for people.
statusOne of the statuses.
released_atRelease date, where known.
context_windowContext size in tokens.
costPrices 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_ladderPrice variations where the provider has them, such as batch service tiers or a step at a context size.
featuresWhat the model supports, as a list of features.
tierAedelsten's tier for the model.
capability_profile, classification, cost_efficiencyAedelsten's classification: what the model is good and bad for, its latency class, and how its price compares with what it can do.
modalityInput and output types and the maximum output tokens.
reasoning_capabilitiesWhether the model reasons and which effort levels it accepts, where known.
purposeWhat kind of model it is, for example text.
aedelgard_noteAn editorial note, often with the source of the price.
price_confirmed_atThe date the price was last confirmed.
_auto_classifiedtrue 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.

FieldValues
Taskgeneral coding reasoning planning long_context summarisation vision tool_use speed
Statusactive deprecated legacy retired
Tierflagship fast-flagship fast reasoning micro legacy unclassified
Provideranthropic bedrock berget google mistral nebius openai
FeatureAmong 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

StatusWhenBody
200The request was answered, including a ranking with no matches.The JSON described above.
404An 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.