pub struct ModelBillingTokenPricesLongContext {
pub cache_price: Option<f64>,
pub cache_read_price: Option<f64>,
pub cache_write_price: Option<f64>,
pub context_max: Option<i64>,
pub input_price: Option<f64>,
pub max_prompt_tokens: Option<i64>,
pub output_price: Option<f64>,
}Expand description
Long context tier pricing (available for models with extended context windows)
Fields§
§cache_price: Option<f64>Deprecated: use cacheReadPrice. AI Credits cost per billing batch of cached tokens
cache_read_price: Option<f64>AI Credits cost per billing batch of cached (read) tokens
cache_write_price: Option<f64>AI Credits cost per billing batch of cache-write (cache creation) tokens.
context_max: Option<i64>Deprecated: use maxPromptTokens. Prompt token budget for the long context tier. The total context window is this value plus the model’s max_output_tokens.
input_price: Option<f64>AI Credits cost per billing batch of input tokens
max_prompt_tokens: Option<i64>Prompt token budget for the long context tier. The total context window is this value plus the model’s max_output_tokens.
output_price: Option<f64>AI Credits cost per billing batch of output tokens
Trait Implementations§
Source§impl Clone for ModelBillingTokenPricesLongContext
impl Clone for ModelBillingTokenPricesLongContext
Source§fn clone(&self) -> ModelBillingTokenPricesLongContext
fn clone(&self) -> ModelBillingTokenPricesLongContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ModelBillingTokenPricesLongContext
impl Default for ModelBillingTokenPricesLongContext
Source§fn default() -> ModelBillingTokenPricesLongContext
fn default() -> ModelBillingTokenPricesLongContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModelBillingTokenPricesLongContext
impl<'de> Deserialize<'de> for ModelBillingTokenPricesLongContext
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ModelBillingTokenPricesLongContext
impl RefUnwindSafe for ModelBillingTokenPricesLongContext
impl Send for ModelBillingTokenPricesLongContext
impl Sync for ModelBillingTokenPricesLongContext
impl Unpin for ModelBillingTokenPricesLongContext
impl UnsafeUnpin for ModelBillingTokenPricesLongContext
impl UnwindSafe for ModelBillingTokenPricesLongContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more