import * as z from "zod/v4"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; import { PricingOverride } from "./pricingoverride.js"; /** * Pricing information for the model */ export type PublicPricing = { /** * Price in USD per audio input token */ audio?: string | undefined; /** * Price in USD per audio output token */ audioOutput?: string | undefined; /** * Price in USD per token for completion (output) generation */ completion: string; /** * Fractional discount applied to this endpoint's pricing; the price is multiplied by (1 - discount) (0 = no discount, 1 = free) */ discount?: number | undefined; /** * Price in USD per input image */ image?: string | undefined; /** * Price in USD per output image */ imageOutput?: string | undefined; /** * Price in USD per image token */ imageToken?: string | undefined; /** * Price in USD per cached audio input token */ inputAudioCache?: string | undefined; /** * Price in USD per cached input token (read) */ inputCacheRead?: string | undefined; /** * Price per cache-write token, in USD per token. For providers with multiple cache TTLs (e.g. Anthropic), this is the default (5-minute) cache-write rate. */ inputCacheWrite?: string | undefined; /** * Price per 1-hour cache-write token, in USD per token. Only present for providers that price an extended (1-hour) cache TTL separately, such as Anthropic. */ inputCacheWrite1h?: string | undefined; /** * Price in USD per internal reasoning token */ internalReasoning?: string | undefined; /** * Conditional overrides of the base pricing (e.g. long-context or time-based pricing). An entry applies when all of its condition fields (e.g. min_prompt_tokens, or the utc_start/utc_end time window) match the request; among applicable entries, later entries win per key; price keys absent from an entry inherit the base price. The top-level pricing keys always reflect the price that applies under default conditions. */ overrides?: Array | undefined; /** * Price in USD per token for prompt (input) processing */ prompt: string; /** * Price in USD per request */ request?: string | undefined; /** * Price in USD per web search */ webSearch?: string | undefined; }; /** @internal */ export declare const PublicPricing$inboundSchema: z.ZodType; export declare function publicPricingFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=publicpricing.d.ts.map