Hanzo
OpenapiO11y

Returns a single LLM pricing rule by id.

Returns a single LLM pricing rule by id.

GET /v1/o11y/llm_pricing_rules/{id}

Addresshttps://api.hanzo.ai/v1/o11y/llm_pricing_rules/{id}
MethodGET
OperationGetLLMPricingRule
AuthAuthorization: Bearer $HANZO_API_KEY

Returns a single LLM pricing rule by id.

Callers need the viewer role; the runtime's own gate enforces it.

Request

1 field.

FieldInTypeRequiredDescription
idpathstringyes

Response

StatusBodyMeaning
200o11y.O11yLLMPricingRuleOutok

200 body — 23 fields.

FieldInTypeAlwaysDescription
databodyo11y.O11yLLMPricingRule
data.createdAtbodystring (date-time)CreatedAt is when the rule was stored.
data.createdBybodystringCreatedBy is who created the rule.
data.enabledbodybooleanEnabled says whether the rule is on.
data.idbodystringID is the rule's id.
data.isOverridebodybooleanIsOverride marks the rule user-pinned; when true the sync job skips it.
data.modelNamebodystringModel is the model the rule prices.
data.modelPatternbodystring[]ModelPattern are the model-name globs the rule matches.
data.orgIdbodystringOrgID is the org the rule belongs to.
data.pricingbodyo11y.O11yLLMRulePricing
data.pricing.cachebodyo11y.O11yLLMPricingCacheCosts
data.pricing.cache.modebodystringMode is how cached tokens are counted — subtract (inside input_tokens, OpenAI-style), additive (reported separately, Anthropic-style) or unknown.
data.pricing.cache.readbodynumberRead is the cost per unit of cache-read tokens.
data.pricing.cache.writebodynumberWrite is the cost per unit of cache-write tokens.
data.pricing.inputbodynumberInput is the cost per unit of input tokens.
data.pricing.outputbodynumberOutput is the cost per unit of output tokens.
data.providerbodystringProvider is the model's provider.
data.sourceIdbodystringSourceID is the upstream source the rule was synced from, when synced.
data.syncedAtbodystring (date-time)SyncedAt is when the rule was last synced, when it is synced.
data.unitbodystringUnit is the pricing unit, e.g.
data.updatedAtbodystring (date-time)UpdatedAt is when the rule last changed.
data.updatedBybodystringUpdatedBy is who last changed it.
statusbodystringStatus is "success".

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y llm_pricing_rules get <id>

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page