Skip to content
Source
Sign inSign up
TanStack/schemas

Rate cards: a service-tier lever for text models #769 (GitHub #768)

Opentombeckenham opened this issue 0 comments
tombeckenhamcommented

OpenRouter (and OpenAI, Anthropic) price a request sent with service_tier: "priority" (or "flex") at a different rate from the standard tier. Text rate cards have no lever for the tier, so a caller that sends a tier cannot price the request from the card.

Proposal: an optional service_tier input (bound: "request", enum standard | priority | flex, default standard) and a rate table keyed by tier for the models whose providers publish tier prices. Cards without tier pricing keep pricing only standard and refuse any other tier.

  1. tanstack-source added labelsfeature

Sign in to join this conversation.