Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Update Pricing Version

Use this form to correct an existing Pricing Version’s Deployment, rates, effective window, or approval metadata. A change reaches a gateway only after a valid new publication is created and applied.

For a genuinely new provider rate period, prefer creating a new Pricing Version instead of rewriting a historical rate that may already be referenced by published configuration or usage evidence.

The Host Id, Pricing Version Id, and Aggregate Version are read-only. Aggregate Version provides optimistic concurrency protection; it is different from the operator-assigned Pricing Version.

Fields

FieldDescriptionExample
Host IdRead-only tenant boundary supplied by the portal.10000000-0000-4000-8000-000000000001
Pricing Version IdRead-only identifier generated when this Pricing record was created.50000000-0000-4000-8000-000000000050
Provider DeploymentDeployment to which this rate schedule applies.openai-prod-ca (30000000-0000-4000-8000-000000000030)
OperationPriced operation; it must match the Deployment protocol.embed
Pricing VersionPositive business version unique for the selected Deployment. It is not the optimistic-concurrency version.3
Pricing BasisEXTERNAL_PROVIDER, ZERO_MARGINAL, or AMORTIZED_INTERNAL.ZERO_MARGINAL
Input Micros Per Million TokensNon-negative input rate in micros per one million tokens.2500000
Output Micros Per Million TokensRequired for generate; must be empty for embed.10000000
Cached Input Micros Per Million TokensOptional cached-input rate retained by the control plane. The current MVP gateway projection does not consume it separately.1250000
Effective TimeISO 8601 timestamp when the rate becomes effective.2026-08-01T12:00:00Z
Expiration TimeOptional ISO 8601 timestamp later than Effective Time. Leave empty for no scheduled expiration.2026-11-01T12:00:00Z
Pricing SourceReference to the contract, price sheet, or agreement supporting the rate.provider-contract-2026-08-rev1
Approved ByIdentity that approved the corrected record.[email protected]
Aggregate VersionRead-only record version included with the update command. Reload the record if another update has advanced it.4

Example

{
  "pricingVersionId": "50000000-0000-4000-8000-000000000050",
  "providerDeploymentId": "30000000-0000-4000-8000-000000000030",
  "operation": "generate",
  "pricingVersion": 3,
  "pricingBasis": "EXTERNAL_PROVIDER",
  "inputMicrosPerMillion": 2500000,
  "outputMicrosPerMillion": 10000000,
  "cachedInputMicrosPerMillion": 1250000,
  "effectiveTs": "2026-08-01T12:00:00Z",
  "expiresTs": "2026-11-01T12:00:00Z",
  "source": "provider-contract-2026-08-rev1",
  "approvedBy": "[email protected]",
  "aggregateVersion": 4
}

After an update, verify that the Deployment does not have ambiguous overlapping Pricing windows and publish a new immutable gateway candidate before expecting runtime cost calculations to change. The active state is backend-managed through soft delete and is not part of this form.

For the NVIDIA embedding demo, preserve operation embed and leave output pricing empty. If the approved free entitlement has no marginal token charge, use ZERO_MARGINAL and zero input/cached-input rates. Prefer creating a new Pricing Version when the NVIDIA commercial terms or entitlement changes.