Arcana::AI::Image::Result
Constructors
Instance methods
cost(at : Time = Time.utc, table : Pricing::Table = Pricing::Table.default) : Pricing::Cost | Pricing::Unpriced
What this call cost; see Pricing. at is when it was made. The
provider's own figure when it reported one, otherwise its usage at
the table's rates.
model
Sourceoutput_path
Sourceprovider
Sourceraw_request
Sourceraw_response
Sourcereported_cost
What the provider said the call cost, when it says so itself (Runware, or a service that prices its own work); nil otherwise.
reported_cost=(reported_cost : Pricing::Cost | Nil)
What the provider said the call cost, when it says so itself (Runware, or a service that prices its own work); nil otherwise.
usage
What the call used, when the provider reports it in tokens
(OpenAI); nil when it didn't. cost prices it.
usage=(usage : Usage | Nil)
What the call used, when the provider reports it in tokens
(OpenAI); nil when it didn't. cost prices it.