struct

MJ::GenerationResult

Inherits Struct < Value < Object

Constructors

new(image_data : Slice(UInt8), response_id : Nil | String = nil, image_uuid : Nil | String = nil, cost : Float64 | Nil = nil, cost_estimated : Bool = false)
Source

Instance methods

cost

What the provider charged for this task, in USD (nil = none reported).

Source
cost_estimated

Whether cost was BILLED by the provider or merely computed by us.

Runware reports a real figure via includeCost, so false. Google reports token counts and no price, so its transport multiplies tokens by a PUBLISHED rate and sets this true. The distinction has to travel with the number: a computed figure that arrives flagged as billed is exactly how a guess ends up in someone else's ledger as fact.

Source
image_data
Source
image_uuid
Source
response_id
Source