?
InfraOffering
TypeOne size in the retrieval catalog: its hourly and monthly price and the chunks it holds at each embedding dimension.
One size in the retrieval catalog. Its price is quoted per hour and per month, with a much lower hibernated rate, and its capacity is given as disk, memory, and the chunks it holds at each embedding dimension, since a chunk embedded at more dimensions takes more room. provision and resize name an offering by id.
InfraOffering.ts
interface InfraOffering { id: string kind: 'retrieval' label: string description: string hourlyPriceDollars: number monthlyPriceDollars: number hibernatedMonthlyPriceDollars: number capacity: { diskGiB: number memoryGiB: number chunksByDimensions: Record<string, number> } retired: boolean }
Fields
label
string
User-facing size name, e.g. "Small".
monthlyPriceDollars
number
Hourly price times 730.
hibernatedMonthlyPriceDollars
number
The much lower holding price while hibernated.
capacity.chunksByDimensions
Record<string, number>
Chunks the size holds at each embedding dimension, keyed by dimension. A chunk at more dimensions takes more room.
Read the catalog
const { offerings } = await admin.infra.list(); offerings.map((o) => ({ id: o.id, label: o.label, month: o.monthlyPriceDollars }));