Arcana::AI::Pricing::Cost
Inherits JSON::Serializable < Struct < Value < Object
What a call costs.
Constructors
new(provider : String, model : String, priced_as : String, lines : Array(Arcana::AI::Pricing::Line), rates : String, excluded : Array(String) = [] of String)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceA cost the provider reported itself (Runware's includeCost, or a
service that prices its own work), as one line: one item at
total. Its rates say who reported it.
Instance methods
currency
Sourceexcluded
Charges the total leaves out because they aren't set per call, such as code-execution container time, billed by the hour.
lines
Sourceprovider
Sourcetotal
Source