RateCard platform.rate-card@1
Generated at from
openvibe-contracts v0.454.0 and
openvibe-sdk v0.193.0.
- Version
- 1.1.0
- Owner
- network
- Visibility
- first-party
- Status
- active
- Compatibility
- backward
- Decision
- ADR-034
- Schema
https://openvibe.network/contracts/platform/rate-card.v1.json
One provider price with its free allowance, in the provider's real billing unit, with effective dates and where it was checked (roadmap WS-Z3 task 5). v1.1 adds optional `side` (supply|retail), `version` and `effective_to`; existing documents stay valid. Changed only by review; never written by an AI on its own.
Fields
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
id | string | yes | ||
provider | string | yes | ||
adapter | string | |||
side | enum | Whether this card prices what OpenVibe pays (supply) or what the customer pays (retail). |
| |
version | string | Immutable version of this card; settlements reference it so historical prices survive updates. | ||
metric | string | yes | e.g. queue-operation-64kb, request, gib-delivered, message, gb-month, class-a-op | |
unit_size | number | yes |
| |
unit_price_usd | number | yes |
| |
free_allowance | number | yes |
| |
reset_period | enum | yes |
| |
region | string | |||
effective_from | string | yes |
| |
effective_to | string | Inclusive end date; null or absent means open-ended. |
| |
effective_until | string |
| ||
source | string | yes |
| |
verified_at | string | yes |
|
Examples
From the contract's own test fixtures: valid ones validate, rejected ones must fail.
Valid: ai-tokens
{
"id": "rc_openai_tokens",
"provider": "openai",
"adapter": "openai-v1",
"metric": "tokens",
"unit_size": 1000000,
"unit_price_usd": 0.15,
"free_allowance": 0,
"reset_period": "month",
"effective_from": "2026-09-01",
"source": "https://openai.com/api/pricing/",
"verified_at": "2026-09-28"
}Valid: queue-ops
{
"id": "rc_example_queue_ops",
"provider": "example-queues",
"adapter": "example-queue-v1",
"metric": "queue-operation-64kb",
"unit_size": 1000000,
"unit_price_usd": 0.4,
"free_allowance": 1000000,
"reset_period": "month",
"effective_from": "2026-09-01",
"source": "https://example.com/pricing",
"verified_at": "2026-09-28"
}Valid: retail-tokens
{
"id": "rc_openai_tokens_retail_v2",
"provider": "openai",
"adapter": "openai-v1",
"side": "retail",
"version": "2026-11-03-001",
"metric": "tokens",
"unit_size": 1000000,
"unit_price_usd": 0.15,
"free_allowance": 0,
"reset_period": "month",
"effective_from": "2026-11-01",
"effective_to": "2026-12-01",
"source": "https://openai.com/api/pricing/",
"verified_at": "2026-11-03"
}Rejected: bad-side
{
"id": "rc_bad",
"provider": "p",
"side": "wholesale",
"metric": "m",
"unit_size": 1,
"unit_price_usd": 1,
"free_allowance": 0,
"reset_period": "month",
"effective_from": "2026-09-01",
"source": "https://example.com",
"verified_at": "2026-09-28"
}Rejected: negative-price
{
"id": "rc",
"provider": "p",
"metric": "m",
"unit_size": 1,
"unit_price_usd": -1,
"free_allowance": 0,
"reset_period": "month",
"effective_from": "2026-09-01",
"source": "https://example.com",
"verified_at": "2026-09-28"
}Rejected: no-source
{
"id": "rc",
"provider": "p",
"metric": "m",
"unit_size": 1,
"unit_price_usd": 1,
"free_allowance": 0,
"reset_period": "month",
"effective_from": "2026-09-01",
"verified_at": "2026-09-28"
}Validate
const contracts = require('openvibe-contracts');
contracts.validate('platform.rate-card@1', value); // { valid, errors: [{ path, message }] }