LM0
API Reference API

Models

Listing models and understanding pool/model IDs on LM0.

LM0 serves a model catalog that can be shaped for OpenAI or Anthropic clients.

List models

Bash 3 lines
curl https://api.17.wtf/v1/models \
  -H "Authorization: Bearer $LM0_API_KEY"

Anthropic-shaped list

Send the Anthropic version header to select the Anthropic response shape:

Bash 4 lines
curl https://api.17.wtf/v1/models \
  -H "x-api-key: $LM0_API_KEY" \
  -H "anthropic-version: 2023-06-01"

Model IDs

Configured models often use a pool/model identifier, for example:

Text 2 lines
main/gpt-4o

Slash-containing IDs are supported on detail routes via wildcard path decoding (GET /v1/models/*).

Registry concepts

Provider config typically includes:

  • Upstream endpoint and credentials
  • Pool membership
  • Model-level metadata (capabilities, pricing, routing hints)

At request time the router resolves the logical model to one or more upstream targets according to strategy (with retry and fallback where configured).

Access control

In DB-backed mode, your account may be restricted to certain pools or models, and beta models may require explicit access. If a model is listed but you cannot call it, check account permissions and package eligibility.

LM0 · Documentation for every model you ship

api.17.wtf