"""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

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


class B64ImageItemTypedDict(TypedDict):
    seed: int
    "The seed used during image generation."
    response_format: B64ImageItemResponseFormat
    "The format of the generated image. One of `url(default)`, `raw`, `png`, `jpeg`, and `jpg`."
    b64_json: bytes
    "The base64-encoded JSON of the generated image."


class B64ImageItem(BaseModel):
    seed: int
    "The seed used during image generation."
    response_format: B64ImageItemResponseFormat
    "The format of the generated image. One of `url(default)`, `raw`, `png`, `jpeg`, and `jpg`."
    b64_json: bytes
    "The base64-encoded JSON of the generated image."
