"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from __future__ import annotations
from openrouter.types import BaseModel
from typing import Optional
from typing_extensions import NotRequired, TypedDict


class STTUsageTypedDict(TypedDict):
    r"""Aggregated usage statistics for the request"""

    cost: NotRequired[float]
    r"""Total cost of the request in USD"""
    input_tokens: NotRequired[int]
    r"""Number of input tokens billed for this request"""
    output_tokens: NotRequired[int]
    r"""Number of output tokens generated"""
    seconds: NotRequired[float]
    r"""Duration of the input audio in seconds"""
    total_tokens: NotRequired[int]
    r"""Total number of tokens used (input + output)"""


class STTUsage(BaseModel):
    r"""Aggregated usage statistics for the request"""

    cost: Optional[float] = None
    r"""Total cost of the request in USD"""

    input_tokens: Optional[int] = None
    r"""Number of input tokens billed for this request"""

    output_tokens: Optional[int] = None
    r"""Number of output tokens generated"""

    seconds: Optional[float] = None
    r"""Duration of the input audio in seconds"""

    total_tokens: Optional[int] = None
    r"""Total number of tokens used (input + output)"""
