pub struct ImagesResponse_Usage {
pub total_tokens: i64,
pub input_tokens: i64,
pub output_tokens: i64,
pub input_tokens_details: ImagesResponse_Usage_InputTokensDetails,
}
Expand description
For gpt-image-1
only, the token usage information for the image
generation.
Fields§
§total_tokens: i64
The total number of tokens (images and text) used for the image generation.
input_tokens: i64
The number of tokens (images and text) in the input prompt.
output_tokens: i64
The number of image tokens in the output image.
input_tokens_details: ImagesResponse_Usage_InputTokensDetails
Trait Implementations§
Source§impl Clone for ImagesResponse_Usage
impl Clone for ImagesResponse_Usage
Source§fn clone(&self) -> ImagesResponse_Usage
fn clone(&self) -> ImagesResponse_Usage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ImagesResponse_Usage
impl RefUnwindSafe for ImagesResponse_Usage
impl Send for ImagesResponse_Usage
impl Sync for ImagesResponse_Usage
impl Unpin for ImagesResponse_Usage
impl UnwindSafe for ImagesResponse_Usage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more