Arcana::AI::Pricing::Line
Inherits JSON::Serializable < Struct < Value < Object
One priced part of a call.
Constructors
new(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
amount
Sourceitem
"input", "cache_read", "cache_write", "cache_write_1h", "image_input", "output", "image_output", "audio_output", "web_search" or "characters", or for a reported cost, what it was for.
quantity
Sourcerate
USD per million tokens, or per thousand searches or characters; for a reported cost, its USD.
unit
"tokens", "searches" or "characters", or for a reported cost, what it was for ("images").