aboutsummaryrefslogtreecommitdiffstats
path: root/modules/api/models.py
blob: a7d247d80ae7a2db169f32731e18cb47db1d605c (plain)
1
2
3
4
5
6
7
8
from pydantic import BaseModel, Field, Json

class TextToImageResponse(BaseModel):
    images: list[str] = Field(default=None, title="Image", description="The generated image in base64 format.")
    parameters: Json
    info: Json