Content पर जाएं

Image Generation

POST/v1/run

FLUX, Stable Diffusion, DALL-E जैसे AI models से images generate करें।

Request body

stringmodelज़रूरी

वर्तमान model identifier, उदाहरण के लिए bfl/flux-1/schnell।

stringpromptज़रूरी

Image का text विवरण

वैकल्पिक<string>aspect_ratio

Output aspect ratio। Flux 1 Schnell का default 16:9 है।

वैकल्पिक<number>guidance_scale

1 से 20 तक prompt guidance strength।

वैकल्पिक<jpeg | png>output_format

Output image format। Flux 1 Schnell का default jpeg है।

वैकल्पिक<string>mode

async केवल तभी सेट करें जब चुना गया model asynchronous execution का समर्थन करता हो

वैकल्पिक<string>webhook_url

केवल इस async task के लिए public HTTPS callback URL