openai_struct/models/
images_response_usage.rs

1/*
2 * OpenAI API
3 *
4 * The OpenAI REST API. Please see pub https://platform.openai.com/docs/api-reference for more details.
5 *
6 * OpenAPI spec pub version: 2.3.0
7 *
8 * Generated pub by: https://github.com/swagger-api/swagger-codegen.git
9 */
10
11/// pub ImagesResponseUsage : For `gpt-image-1` only, the token usage information for the image generation.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct ImagesResponseUsage {
18    /// The number of tokens (images and text) in the input prompt.
19    #[serde(rename = "input_tokens")]
20    pub input_tokens: i32,
21    #[serde(rename = "input_tokens_details")]
22    pub input_tokens_details: crate::models::ImagesResponseUsageInputTokensDetails,
23    /// The number of image tokens in the output image.
24    #[serde(rename = "output_tokens")]
25    pub output_tokens: i32,
26    /// The total number of tokens (images and text) used for the image generation.
27    #[serde(rename = "total_tokens")]
28    pub total_tokens: i32,
29}