Images
Text to Image Generations
import os
import requests
url = "https://doc-ai.si.online/v1/images/text2image"
payload = {
"model": "stabilityai/stable-diffusion-3-5-large",
"prompt": "sky, blurry, blue sky, flower, day, depth of field",
"negative_prompt": "",
"image_size": "1024x1024",
"batch_size": 1,
"seed": 535342,
"num_inference_steps": 20,
"guidance_scale": 7.5,
}
headers = {
"Authorization": f"Bearer {os.getenv('SI_API_KEY')}",
"Content-Type": "application/json",
}
response = requests.request("POST", url, json=payload, headers=headers)
print(response.Text)Image to Image Generations
Last updated