Skip to content

Compare workload base costs

Last updated: 2026-11-06T15:00:28-03:00 (UTC-3)

Use /registry/calculator to compare the same billable-unit workload across original public offers. Choose the complete applicable source catalog or one to six model/service groups; inspect exact per-request, daily and thirty-day base costs, source/rate identity and qualification. This does not run a model, tokenize a prompt, reserve budget, change prices or produce an invoice.

features:
ui: true
model_registry: true
model_registry_cost_comparison: true

The operator flag defaults to false, requires the public registry and is independent of the private calculator, comparison, provider-directory and advanced-filter switches. Normal YAML/API/console flag management applies. There is no new migration/Config root. Safe cost_comparison_enabled public navigation metadata avoids administration/session requests.

Enter either text input/output counts or a scalar-media quantity/unit, plus requests per day. Use text strings with at most18 integer digits; media quantity allows up to9 fractional digits. No exponent, sign, leading zero, whitespace, JSON numeric quantity or null is accepted. An omitted text side becomes zero; requests per day defaults to1. Media units are per_image, per_character, per_audio_second, per_video_second. These are hypothetical billable-unit profiles, not provider request bodies or an inference-support guarantee.

The browser submits a read-only POST and renders server amounts/order without financial floating arithmetic. It supports profile/scope/selection changes, pagination, shareable workload URLs, source details and explicit review when a held rate basis changes. Shared URLs contain your selected public IDs and entered planning quantities, not keys, prompts or observed private usage.

Terminal window
BASE_URL='http://localhost:8080'
curl --fail-with-body -sS -X POST "$BASE_URL/v1/registry/cost-comparison" -H 'Content-Type: application/json' --data-raw '{"all_models":true,"input_tokens":"1000","output_tokens":"500","requests_per_day":"10000","limit":50,"offset":0}'

The strict body is at most16KiB. Select models:[returned-source-ids] with1–6 unique ordered opaque IDs, or all_models:true. all_models:false may accompany selected models; true cannot. Text counts and media quantity/unit are mutually exclusive. limit is a canonical JSON integer1–200 (default50), offset0–10000 (default0). Optional expected_basis_id is a64-hex current rate/scope basis. Unknown/duplicate/malformed fields are400; a missing selected source ID is404. The request never accepts client rates, source URLs, private aliases, configured/manual sources or credentials. See OpenAPI.

The response includes original sources, method, warnings, cost_comparison_enabled:true, global basis_id, applied scope, full-source coverage, normalized workload, page metadata and per-offer rows. Each row identifies model_group_id, original model_id, offer_id, provider, declared mode, compatibility/reasons and an exact advisory quote. Source/profile coverage counters are independent of your quantities/page; they are not competitive-rank counts.

All-source scope includes applicable declared profiles with at least one actual native USD base rate, retaining incomplete/uncorroborated-zero rows and explicitly counting excluded models/offers. Selected scope retains all selected offers, including unknown or non-applicable ones. The original public listing identity and declared mode are preserved; decision/evaluation/rerank services are not blanket-excluded when they publish applicable base-token fields.

Text uses exact corresponding input/output base USD token rates from the same original offer. Scalar media uses the supported flat base profile for that native unit; ambiguous/conflicting rates are not chosen opportunistically. Daily amount is exact per-request base amount × entered daily count; thirty-day projection is daily ×30, not a calendar-month invoice. Canonical decimal strings and server rational arithmetic preserve tiny rates and large quantities without rounding or overflow into a browser float.

No input minimum from provider A is combined with an output minimum from provider B. No DBU conversion, guessed cache/context/service tier, image-token formula, hosted tool fee, discount/margin/tax/minimum/rounding or other unimplemented dimension is added. Those exclusions stay explicit. Existing protected single-target configured/manual estimates retain their own permissions/provenance; private values never enter this anonymous table.

Literal zero rates remain visible source facts, but an uncorroborated all-known-zero community text rate set is an unknown quote, including a one-sided zero with the other rate unpublished. A synthetic embedding output zero is not rate evidence. Even a zero requested workload needs a valid actual rate/profile before it can become a known base amount. A supported zero arithmetic result still does not imply a complete free request or fixed-fee waiver.

Row state Meaning
Complete base quote + compatible Declared base profile and requested published numeric bounds qualify; receives competitive rank by exact per-request amount
Complete base quote + unknown Known base amount, but relevant requested bounds are not published; shown unranked, after qualified rows, in exact price order
Partial/unknown/conflict quote Missing or ambiguous requested rate dimensions; known subtotal is explicitly incomplete, never a cheaper complete price
incompatible Known requested input/output limits exceeded or an input-only profile is asked for output; no complete total/rank
not_applicable Selected source offer does not implement this declared base-unit profile; no complete total/rank

Named token limits are compared only with their corresponding positive requested count; max_tokens is not a substitute. Embedding/rerank positive output is incompatible. Positive scalar-media quantity has no typed media-quantity bounds in this base profile and therefore remains unknown/unranked, even when its native base amount is known; token limits are never converted into characters, images or seconds. Compatibility describes this published profile/bounds check, not provider health, availability, full request semantics or routing authorization.

Qualified complete amounts sort cheapest first, with stable source group/offer identity ties. Unranked complete unknown-bound rows remain a separate group; partial/unknown/incompatible/non-applicable rows never win by being treated as zero. The server calculates the whole admitted scope before pagination. rank is omitted for every row that does not meet the complete/compatible rule.

Global basis identifies the source content hash, finite pricing profile/unit and selected/all-source scope; per-offer quote basis additionally preserves original rate/limit identity. Quantities, daily count, page and capture time do not pretend the rate changed. A new source/profile/scope basis causes409 before totals when expected_basis_id is supplied. The UI retains the held basis while quantities/period/pages change and requires explicit review/fresh calculation after409; changing profile/selection starts a new basis.

Basis IDs are content fingerprints, not signatures, payment authority or reservations. A quote cannot authorize a later paid call or freeze a provider’s future prices. Sources preserve successful hash/time and explicit stale state. The public source policy remains the existing typed registry policy.

Planning admission uses the existing shared heavy-operation bound (four active heavy operations per process), before source projection/cloning/math. It is shared with existing heavy operations, not four dedicated planner workers. Saturation returns503 without fetching sources. One existing registry operation budget covers admission, source lookup and computation; original caller cancellation takes precedence and every success/failure/drift/cancel path releases its slot. Budget/source failures return503 instead of a falsely complete truncated ranking. No new arbitrary timer or concurrent background worker is introduced.

All responses are no-store and carry request/trace IDs. Source spans retain existing privacy/OTLP rules; planned quantities are not reported as model usage, and no identity, ledger, budget or billing event is created. No prompt/provider request, cookie, key or private configured price is sent to public feeds. A flag-disabled endpoint is404; existing stale-source fallback remains explicit. Final load/distribution qualification is separate from this focused source/math/native/browser acceptance.

m7gtw[email protected]