Generate high-resolution images from text with a single REST request. Predictable JSON, official SDKs, and webhooks for async jobs.
# Generate an image from a prompt $ curl https://api.sutertai.com/v1/images \ -H "Authorization: Bearer $SUTERTAI_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "flux-1", "prompt": "a black marble monolith on a desert arch, dawn", "aspect_ratio": "2:3", "resolution": "1248x1872" }'
Grab a secret key from your dashboard. Pro and Enterprise plans include API access.
/v1/imagesPOST a prompt and parameters. Small images return inline; larger jobs return a job id.
Fetch /v1/jobs/:id or register a webhook to receive the result when it's ready.
from sutertai import Sutertai client = Sutertai(api_key="sk_live_...") image = client.images.generate( model="flux-1", prompt="scarlet silk caught mid-motion, ivory", aspect_ratio="2:3", resolution="1248x1872", ) # -> https://cdn.sutertai.com/img/9f2c...webp print(image.url)
Built on leading diffusion architectures, fine-tuned and continuously optimized — then matched to the right GPU for the job.
The Batch Generator on the Product page is this endpoint. Send a list of prompts — or a CSV — and Sutertai queues them as one job, applies the crops you ask for, and returns a single zip when everything is rendered.
from sutertai import Sutertai client = Sutertai(api_key="sk_live_...") batch = client.batches.create( model="flux-1", prompts=["a linen tote on warm sand", "the same tote, studio grey"], crops=["1:1", "4:5", "9:16"], webhook_url="https://yourapp.com/hooks/sutertai", ) # poll, or wait for the webhook, then download every render at once done = client.batches.wait(batch.id) print(done.zip_url)
prompts[] or a CSV upload, plus optional crops[]zip_url once completeBatches count against your monthly image quota, one render per prompt × crop. Available on Pro and Enterprise, same as the rest of the API.