Skip to content
Niu DocsNiu 牛元文档
Dashboard控制台

RetailSchedule

Generated from the checked-in source. Do not edit this reference by hand.

SDK source. All SDK types.

TypeScript
/** Explicit customer selling terms; amounts and quantities remain decimal strings. */
export type RetailSchedule = {
kind: 'text';
prompt_rate: string;
completion_rate: string;
cached_prompt_rate: string | null;
cache_write_prompt_rate: string | null;
reasoning_completion_rate: string | null;
minimum_charge_nanos: string;
request_fee_nanos: string;
context_tiers: ContextPriceTier[];
} | {
kind: 'media';
dimensions: MediaBillingDimensions;
meter: string;
decimal_places: number;
amount_units: string;
per_quantity: ExactMediaQuantity;
minimum_quantity: ExactMediaQuantity;
rounding: 'Down' | 'Up' | 'HalfEven';
};