An AI model for text-to-image generation that supports LoRA, capable of creating beautiful images.
Request
Header Params
Body Params application/json
Example
{"enable_base64_output":false,"guidance_scale":3.5,"loras":[],"num_inference_steps":28,"prompt":"On the desolate, red-dusted surface of Mars, an astronaut is kneeling, gazing in awe at a single, vibrant green sprout miraculously growing from the alien soil. The astronaut's helmet visor clearly reflects the tiny, resilient plant. The background is the vast Martian horizon and distant, blurred mountains.\n\n","seed":-1,"size":"1024*1024"}
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://api.302.ai/ws/api/v3/stability-ai/sdxl-lora' \
--header'Authorization: Bearer ' \
--header'Content-Type: application/json' \
--data-raw'{
"enable_base64_output": false,
"guidance_scale": 3.5,
"loras": [],
"num_inference_steps": 28,
"prompt": "On the desolate, red-dusted surface of Mars, an astronaut is kneeling, gazing in awe at a single, vibrant green sprout miraculously growing from the alien soil. The astronaut'\''s helmet visor clearly reflects the tiny, resilient plant. The background is the vast Martian horizon and distant, blurred mountains.\n\n",
"seed": -1,
"size": "1024*1024"
}'