---
title: "platform.rate-card@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/platform.rate-card"
updated: null
---

# platform.rate-card@1 · OpenVibe.Services

HTML: [platform.rate-card@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/platform.rate-card)

# RateCard `platform.rate-card@1`

Generated at 2026-12-01 05:42:00 UTC from [`openvibe-contracts v0.454.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.454.0) and [`openvibe-sdk v0.193.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.193.0).

- Version: 1.1.0
- Owner: network
- Visibility: first-party
- Status: active
- Compatibility: backward
- Decision: [ADR-034](/docs/adr/ADR-034)
- Schema: [`https://openvibe.network/contracts/platform/rate-card.v1.json`](/docs/contracts/platform.rate-card.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). | - `one of "supply", "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 |  | - `minimum 0` |
| `unit_price_usd` | number | yes |  | - `minimum 0` |
| `free_allowance` | number | yes |  | - `minimum 0` |
| `reset_period` | enum | yes |  | - `one of "day", "month", "none"` |
| `region` | string |  |  |  |
| `effective_from` | string | yes |  | - `format date` |
| `effective_to` | string |  | Inclusive end date; null or absent means open-ended. | - `format date` |
| `effective_until` | string |  |  | - `format date` |
| `source` | string | yes |  | - `format uri` |
| `verified_at` | string | yes |  | - `format date` |

## 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 }] }
~~~~
