VocalDocscontracts 1.65.0

VendorPriceAddRequest

Adds one key's vendor price row (1.38.0), one row per unit in one transaction, with the Audit event platform.price.add. Refused with validation_failed and the issues price_not_positive, price_effective_in_past, price_above_ceiling or price_not_replaceable, or provider_not_allowed with the reason stage_not_served.

An object with 11 fields.

Fields

FieldTypeRequiredDescription
effective_fromRequestTimestampnoThe instant, in UTC, from which the entry is in force; the transaction's instant when absent. A later instant enters an upcoming price, which takes effect then with no deploy; an earlier one is refused with price_effective_in_past.
modelstring or nullyesThe model priced, required on stt, llm and tts: a recognizer model, a language model, or the model a voice is spoken with. Null only on telephony, for a carrier minute, and on platform.
notestringnoA conversion or a remark; never a secret or content.
planstringnoThe vendor's plan or tier; none when absent.
providerCostProvideryes
regionstringnoThe region the price applies to, as the vendor names it; none when absent.
sourceVendorPriceSourceInputyes
source_figurestringyesThe figure as the source states it, such as a price per million tokens.
stageCostStageyes
unitsarray of VendorPriceUnitInputyesOne or two units of the stage, each once: audio_minute on stt, token_in and token_out on llm, character on tts, minute on telephony, minute or call on platform.
verifiedbooleanyesTrue only when the price was read from source on its read_at.

Used by

The operations whose parameters, request body or responses name this shape directly.