models-metadata

Model profile v0: describing model routes with Arazzo

Status: proposal, version 0. Nothing here is deployed by any provider.

Problem

A models listing (GET /v1/models and its relatives) says which model ids exist. It does not say how a route serves them, and no two vendors agree on the extra fields they add. An agent choosing a route needs facts that change with the model, the host and the account:

Approach

The medium is an Arazzo 1.1 description. A route’s profile is a workflow whose steps call operations the host already documents in OpenAPI, and whose outputs are the facts. Where a host’s API publishes a fact, the step reads it from the live response. Where it does not, a step reads a static facts document. Either way the consumer runs one workflow and gets named outputs.

This repository defines three things, and borrows everything else:

Piece What it is
Output names A workflow output is named <layer> or <layer>.<section>[.<field>], where the path exists in schemas/facts.v0.json.
Facts document schemas/facts.v0.json: the same sections, for facts no API serves. Hosted anywhere static; openapi/facts-host.v0.json describes reading one so a workflow step can.
Benchmarks document schemas/benchmarks.v0.json: results for one subject, published and revised separately.

Signalling uses one optional member on a listing item, describedby, an array of OCI content descriptors (schemas/listing.v0.json). The descriptor’s mediaType says what the document is (application/vnd.oai.workflows+json;version=1.1.0, the type Arazzo registers), its digest is the revision, and urls locate it. A listing can describe a model without changing any native member.

Layers

Every fact belongs to one of three layers, merged least specific first:

  1. model: what the model’s publisher says (trained context, modalities, reasoning levels).
  2. provider: what the serving host says (served context, prices, cache behavior, template, deployment).
  3. account: what a plan, client or tier changes (subscription billing, a client’s context default, controls a plan does not accept).

The more specific layer wins. In particular the host, not the model card, decides the served context. A workflow returns each layer under its own name, so a consumer sees both the effective value and where it came from:

(.model * .provider * .account).limit.context     # effective
.model.limit.context                              # what the publisher says

The merge is defined here, normatively: objects merge recursively, a key present in a more specific layer replaces the same key in a less specific one, absent means unknown at that layer, null means documented as not applying and replaces the lower layer’s value (a subscription route sets pricing.tokens to null), and arrays replace whole. jq’s * has no role in the definition; it is an appraisal tool, used to check that a document merges the way this section says, and RFC 7386 (JSON Merge Patch) is not the model because its null deletes a key rather than recording “not applicable”.

Facts sections

Every member is optional and every section may carry source (URL), basis (published, measured or assumed) and note. Unknown members are refused except x- extensions.

Encoding: JSON and YAML

A facts or benchmarks document may be JSON (RFC 8259) or YAML 1.2. Both carry the same data model, so schemas/facts.v0.json - a JSON Schema - applies to a YAML document that parses to the same model. YAML is first-class because it carries comments: a publisher can keep the reasoning (source, basis, why a value is null, which page it was read from) beside the value, where JSON forces it into separate members or a side document. A consumer must accept either encoding; a descriptor’s digest is over the bytes as published, so the encoding is part of the revision, and the mediaType says which one it is (application/json or application/yaml).

One YAML pitfall is the publisher’s: quote scalar strings that look like other types (as_of: "2026-12-02", version: "1.10"), because an unquoted date or number is a different value in YAML 1.1 and 1.2 and the schema will refuse it. examples/facts/anthropic.claude-sonnet-5.5.api-annotated.yaml is the same facts as its JSON sibling, commented.

Section Members
scope provider, model, openapi and operation (the route), wire and base_url when there is no OpenAPI, protocol, api_version, tier, plan, client, region
identity name, family, released, knowledge_cutoff, open_weights, parameters, active_parameters, aliases, snapshots
access availability, programs (entitlements an account must hold), auth (OpenAPI security scheme types), headers the route requires
limit context, input, output, trained_context, request_bytes, images_per_message, images_per_request, image
modalities input, output, tool_result
capabilities, tools names; tool name to supported, ignored, rejected or unsupported
function_calling strict, parallel, grammar, eager_input_streaming, cache_control_on_tools, additional_tools, client_tool_search, choice
reasoning param (JSON Pointer into the request), enable_param, levels (empty: no reasoning parameters accepted), default, can_disable, remap (null: level not accepted), budget, display, output, interleaved, mid_conversation
replay fields: response fields the next request must send back (required, accepted, ignored, rejected)
messages developer_role, system_mid_conversation, tools_mid_conversation, tool_result_name, assistant_after_tool_result, assistant_content_null, tools_with_tool_history, reasoning_in_history
controls per request field: support, values, default, min, max, recommended by task or reasoning level
template format, text, rendered_by, kwargs
caching implicit and explicit, each with available, on_by_default, param, min_tokens, ttl, default_ttl, ttl_param, ttl_is (minimum, sliding, best_effort), refresh_on_hit, max_writes, observed (read back, rewrites on hit, observed lifetime, counts); usage pointers to the read and write counters; key_param; affinity
streaming available, usage, usage_param, finish_reason, tool_call_deltas_param
service_tiers param, default, available, price_multiplier
pricing billing, currency, regional_multiplier, reported_cost, and one object per kind of charge: tokens (per, rates, cache_write keyed by lifetime, overrides above an input size), time (gpu_hour, gpu, gpus, market, increment, minimum), transfer (unit_bytes, ingress, egress), storage (gb_month), calls, units, recurring, x402
rate_limits per-minute and per-day requests and tokens, concurrent, concurrency (requests, tokens, input_tokens, output_tokens, streams, slots, scope, queue (depth, wait, policy), batch (requests, tokens, window)), counts_cache_reads, spend_cap_month, headers, windows (name, period, percent used, reset)
sessions server_state, compaction, background, resume, steer, subagents, transports
routing aggregator, upstreams, upstream_field, model_author, preferences_param, fallback_models, fallback_param
deployment engine, format, quantization, precision, profile, gpu, gpus, size_bytes, vram_bytes, kv_bytes_per_token, sliding_window
balance credits_included, credits_purchased, allowance, period_until
lifecycle stage, released, deprecation, sunset, replacement

Concurrency is in flight, not per period: concurrent is the flat total, and concurrency says which resource the number bounds (requests, tokens, input_tokens, output_tokens, streams, slots), what it is counted per (scope), what waits past it (queue.depth, queue.wait, queue.policy) and what asynchronous batch work may hold at once (batch). A per-minute or per-day quota belongs in the same section’s window members, not here.

basis says where a section’s values come from: published (docs or a public catalog), reported (the provider’s API, for this account), measured (observed by a client), contracted (negotiated terms) or assumed (illustrative). A client’s own policy (retry counts, when it compacts, which model it uses for which role) is not a route fact and has no field.

Rates are in the unit the source publishes. tokens.per says how many tokens one price buys (1 for a catalog priced per token, 1000000 for a price page per million), because Arazzo outputs select values and cannot convert them. A rented-GPU host fills time, transfer and storage and sets tokens to null.

What OpenAPI already covers

The profile does not restate a route’s request schema. Parameter types, ranges and defaults that the route’s OpenAPI description declares stay there; controls records only what changes per model, version or plan, and ranges only for routes with no OpenAPI. Streaming event shapes belong in OpenAPI 3.2’s itemSchema. An x402 payment over HTTP is a 402 response with a PAYMENT-REQUIRED header, which OpenAPI can declare; the facts document only says the route accepts it.

The metadata of the Llama and GPT-4 era

Recorded with its reasoning in era.yaml, written in YAML because the record is mostly comment: two generations set the vocabulary this profile replaces, and both kept the useful facts outside the API. GPT-4’s GET /v1/models returned id, object, created and owned_by, with context windows, prices, modalities and deprecation dates on separate pages and the dated snapshot id as the only revision mechanism. Llama’s model card carried parameters, trained context, license and benchmarks, while the served context was a deployment setting (max_model_len, num_ctx) that the card never mentioned.

Examples

Workflow Shows
arazzo/ollama Every value read live: show gives the model layer (trained context, thinking levels, template, quantization); loading with the operator’s num_ctx and reading ps gives the served context; balance gives the account layer on Ollama’s cloud.
arazzo/openai The listing serves id, object, created and owned_by, plus shutdown_date when announced (compatible hosts may add context, output-cap and pricing fields); the shutdown date is read live and the rest comes from facts documents. One workflow for the metered API, one for Codex on a ChatGPT plan, where the account layer removes token prices, rejects stored state and narrows the context to 500,000.
arazzo/claude-sonnet-5.5 One model on three provider layers (Anthropic, OpenRouter, Nous) with different prices, cache lifetimes and units.

Benchmarks: RULER for Llama 3.1 8B (accuracy by context length, claimed 128K, effective 32K) and needle-in-a-haystack for GPT-4 128K (225 points by length and depth). examples/listing.json shows a listing item pointing at a workflow.

Prior art and what was borrowed

Source Decision
Arazzo 1.1 The medium: workflows, outputs, selectors, success criteria, the registered media type.
OpenAPI 3.1 / 3.2 Route descriptions the steps call; operation names an operationId.
OCI descriptor describedby items, unchanged; digest grammar for revisions.
JSON Pointer (RFC 6901) param, usage and output selectors.
ISO 8601 durations Cache lifetimes and billing increments.
jq * Appraisal only: one way to check a document against the merge rules defined above. Not a semantic dependency, and not in the borrow column.
JSON Merge Patch (RFC 7386) Declined for the merge: its null deletes a key, where a facts layer needs null to mean “documented as not applying”.
vLLM max_model_len, NIM NIM_MAX_MODEL_LEN, Fireworks trainingContextLength, Ollama num_ctx Served context separate from trained context.
OpenRouter pricing overrides, OpenAI long-context pricing tokens.overrides above an input size.
NIM model profiles, Together deployment profiles deployment, and benchmark subjects that name one.
RULER, needle-in-a-haystack, lm-evaluation-harness Benchmark points as records with named axes.
Hugging Face model-index Declined: per-model YAML in a card, not per route.
Bespoke *_revision members, claim wrappers per value Declined in v0 drafts as redundant with descriptors and too heavy to query.

Open questions

Contributing

This is version 0 of a proposal, and its value depends on review from outside one person’s rulebook. Spec writers, researchers studying model serving or evaluation, and model or platform teams are the audience that can find its errors.

The most useful contribution is a case this spec gets wrong: a route whose metadata cannot be said in these sections, or a client whose rulebook maps onto them badly.