@lobehub/chat
Version:
Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.
37 lines (34 loc) • 1.16 kB
text/typescript
export type DallEImageQuality = 'standard' | 'hd';
export type DallEImageStyle = 'vivid' | 'natural';
export type DallEImageSize = '1792x1024' | '1024x1024' | '1024x1792';
export interface TextToImagePayload {
model: string;
/**
* The number of images to generate. Must be between 1 and 10.
*/
n?: number;
/**
* A text description of the desired image(s).
* The maximum length is 1000 characters.
*/
prompt: string;
/**
* The quality of the image that will be generated.
* hd creates images with finer details and greater consistency across the image.
* This param is only supported for dall-e-3.
*/
quality?: DallEImageQuality;
/**
* The size of the generated images.
* Must be one of '1792x1024' , '1024x1024' , '1024x1792'
*/
size?: DallEImageSize;
/**
* The style of the generated images. Must be one of vivid or natural.
* Vivid causes the model to lean towards generating hyper-real and dramatic images.
* Natural causes the model to produce more natural, less hyper-real looking images.
* This param is only supported for dall-e-3.
* @default vivid
*/
style?: DallEImageStyle;
}