Drawing Engine
1. OpenAI “gpt_image” Interface
from symai.interfaces import Interface
gpt_image = Interface('gpt_image')
paths = gpt_image(
"a fluffy cat with a cowboy hat",
operation="create", # create | variation | edit
model="dall-e-3", # choose your model
n=1, # number of images
size=1024, # square size in px, or "1024x1024"
response_format="url", # "url" or "b64_json"
# Extra for DALL·E-3:
quality="standard", # "standard" | "hd"
style="vivid", # "vivid" | "natural"
# Extra for gpt-image-*:
moderation="auto", # "auto" | "strict"
background="transparent", # "auto" | "transparent"
output_compression="png", # "png" | "jpeg" | "webp"
# if jpeg/webp you can also pass `output_compression=80` for quality
)
print(paths[0]) # → /tmp/tmpabcd.pngSupported Parameters
2. Black Forest Labs “flux” Interface
Supported Parameters
3. Google “nanobanana” (Gemini Image) Interface
Supported Parameters
Configuration
Last updated