pub struct ModelBillingTokenPrices {
pub batch_size: Option<i64>,
pub cache_price: Option<f64>,
pub context_max: Option<i64>,
pub input_price: Option<f64>,
pub long_context: Option<ModelBillingTokenPricesLongContext>,
pub output_price: Option<f64>,
}Expand description
Token-level pricing information for this model
Fields§
§batch_size: Option<i64>Number of tokens per standard billing batch
cache_price: Option<f64>AI Credits cost per billing batch of cached tokens
context_max: Option<i64>Prompt token budget (max_prompt_tokens) for the default 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
long_context: Option<ModelBillingTokenPricesLongContext>Long context tier pricing (available for models with extended context windows)
output_price: Option<f64>AI Credits cost per billing batch of output tokens
Trait Implementations§
Source§impl Clone for ModelBillingTokenPrices
impl Clone for ModelBillingTokenPrices
Source§fn clone(&self) -> ModelBillingTokenPrices
fn clone(&self) -> ModelBillingTokenPrices
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 Debug for ModelBillingTokenPrices
impl Debug for ModelBillingTokenPrices
Source§impl Default for ModelBillingTokenPrices
impl Default for ModelBillingTokenPrices
Source§fn default() -> ModelBillingTokenPrices
fn default() -> ModelBillingTokenPrices
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModelBillingTokenPrices
impl<'de> Deserialize<'de> for ModelBillingTokenPrices
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 ModelBillingTokenPrices
impl RefUnwindSafe for ModelBillingTokenPrices
impl Send for ModelBillingTokenPrices
impl Sync for ModelBillingTokenPrices
impl Unpin for ModelBillingTokenPrices
impl UnsafeUnpin for ModelBillingTokenPrices
impl UnwindSafe for ModelBillingTokenPrices
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