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

from __future__ import annotations
from friendli.core.types import BaseModel
from typing import Literal
from typing_extensions import TypedDict

URLImageItemResponseFormat = Literal["url", "raw", "png", "jpeg", "jpg"]
"The format of the generated image. One of `url(default)`, `raw`, `png`, `jpeg`, and `jpg`."


class URLImageItemTypedDict(TypedDict):
    seed: int
    "The seed used during image generation."
    response_format: URLImageItemResponseFormat
    "The format of the generated image. One of `url(default)`, `raw`, `png`, `jpeg`, and `jpg`."
    url: str
    "The URL of the generated image."


class URLImageItem(BaseModel):
    seed: int
    "The seed used during image generation."
    response_format: URLImageItemResponseFormat
    "The format of the generated image. One of `url(default)`, `raw`, `png`, `jpeg`, and `jpg`."
    url: str
    "The URL of the generated image."
