ImageTokenUsage

org.llm4s.imagegeneration.ImageTokenUsage
final case class ImageTokenUsage(inputTextTokens: Long, inputImageTokens: Long, outputImageTokens: Long, outputTextTokens: Long)

The token usage OpenAI reported for a GPT Image call, this image's share of it: a call that returned n images reports 1/n of the call's tokens on each, so the images' usages add up to the call's.

Value parameters

inputImageTokens

input image tokens (an edit's source image and mask)

inputTextTokens

prompt tokens

outputImageTokens

image tokens generated

outputTextTokens

text tokens generated, when the response splits them out

Attributes

Source
ImageGeneration.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product