models-metadata

A proposal for describing how a route serves a model (limits, controls, caching, prices, sessions, benchmarks) as Arazzo 1.1 workflows over the OpenAPI descriptions providers already publish.

GET /v1/models: the listing carries describedby, and a key outside the grammar is a warning

The whole spec hangs off one response: GET /v1/models. A listing item says which grammar its route profile is written in (describedby, an OCI content descriptor), and a client validates the profile against that grammar - warning on anything outside it, never failing the request.

Status: version 0, not deployed by any provider. Facts in the examples were read from the cited pages on 2026-12-02.

Checks

python -m pip install jsonschema pytest
python -m pytest tests

The tests validate the schemas, every example, and every workflow against the published Arazzo 1.1 schema, and check that each step names an operation in its source description and each output names a facts path. scripts/describe.py refreshes the descriptor digests in examples/listing.json after a workflow changes. scripts/resolve.py resolves every workflow statically (facts documents only, no network) into examples/effective/, the input a client adapter reads first; spec/recipe.md is the recipe for such an adapter. spec/coverage.md maps the model configuration of models.dev, LiteLLM, Pi, Codex CLI, Claude Code, Gemini CLI, Aider, opencode, Cline, Roo Code, Kilo Code, Continue, Goose and Zed onto the facts schema.

Packages

The generators are the Arazzo runners themselves. Two thin packages pin one each and do the rest: follow a listing’s describedby token, check the document’s sha256 and size, run the workflow, and merge the layers it returns (least specific first). Neither holds provider or model data.

Package Runner Use
packages/python (models-metadata on PyPI) Jentic arazzo-runner 0.9.6 models-metadata <listing> or models_metadata.resolve_listing()
packages/js (models-metadata on npm) @usearazzo/runner 1.0.1-alpha.38 npx models-metadata <listing> or resolveListing()

Both run every workflow in arazzo/ over a loopback copy of this repo and must return exactly the layers in examples/effective/. arazzo-runner 0.9.6 finds operations by bare operationId only; the Python package rewrites $sourceDescriptions.<name>.<operationId> to the bare id when exactly one source declares it, and refuses otherwise.

Automation

Contributing

Version 0 is a proposal and review is the work right now. Spec writers, researchers, and model or platform teams: bring a case this spec gets wrong, a client’s or provider’s customization, or a facts document for a route you serve.

License

MIT. See LICENSE.