class

Arcana::AI::Pricing::Entry

Inherits Arcana::AI::Pricing::Rates < JSON::Serializable < YAML::Serializable < Reference < Object

One model's rates from one provider, over the dates they apply.

Constructors

One model's rates from one provider, over the dates they apply.

Source
new(provider : String, model : String, input = nil, output = nil, cache_read = nil, cache_write = nil, cache_write_1h = nil, image_input = nil, image_output = nil, audio_output = nil, web_search = nil, aliases : Array(String) = [] of String, long : Nil | Arcana::AI::Pricing::LongRates = nil, geo : Hash(String, BigDecimal) = {} of String => BigDecimal, since : Time | Nil = nil, before : Time | Nil = nil)
Source
new(pull : JSON::PullParser)

One model's rates from one provider, over the dates they apply.

Source

Instance methods

aliases
Source
before
Source
geo

Multipliers by the region the provider reports running a call in.

Source
long
Source
matches?(provider : String, model : String, at : Time) : Bool
Source
model
Source
provider
Source
rates_for(prompt : Int64) : Rates

The rates for a prompt of this many tokens.

Source
since

The first day (UTC) the rates apply, and the day they stop.

Source
source

The table these rates came from: its version.

Source
source=(source : String)

The table these rates came from: its version.

Source