pub struct ModelBillingTokenPricesLongContext {
pub cache_price: Option<f64>,
pub context_max: Option<i64>,
pub input_price: Option<f64>,
pub output_price: Option<f64>,
}Expand description
Re-exports of generated protocol types that are part of the SDK’s
public API surface. The canonical definitions live in
crate::rpc; they live here so the crate-root
pub use types::* surfaces them alongside hand-written SDK types.
Long context tier pricing (available for models with extended context windows)
Fields§
§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 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
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