For gpt-image-1 only, the token usage information for the image generation.

interface Usage {
    input_tokens: number;
    input_tokens_details: OpenAIClient.Images.ImagesResponse.Usage.InputTokensDetails;
    output_tokens: number;
    total_tokens: number;
}

Properties

input_tokens: number

The number of tokens (images and text) in the input prompt.

The input tokens detailed information for the image generation.

output_tokens: number

The number of image tokens in the output image.

total_tokens: number

The total number of tokens (images and text) used for the image generation.