Public image API
Generate, edit, and convert publication-ready scientific figures from your own application.
Same credits as the web app — buy them on the pricing page.
curl https://sci-draw.com/api/v1/images/generations \
-H 'Authorization: Bearer sd_YOUR_KEY' \
-H 'Idempotency-Key: figure-7842-v1' \
-H 'Content-Type: application/json' \
-d '{
"prompt": "Clean scientific illustration of exosome biogenesis",
"aspect_ratio": "16:9",
"resolution": "2K",
"count": 1
}'curl https://sci-draw.com/api/v1/images/generations \
-H 'Authorization: Bearer sd_YOUR_KEY' \
-H 'Idempotency-Key: figure-7842-v1' \
-H 'Content-Type: application/json' \
-d '{
"prompt": "Clean scientific illustration of exosome biogenesis",
"aspect_ratio": "16:9",
"resolution": "2K",
"count": 1
}'No API tier, no membership, no minimum spend.
In Settings → API Keys, pick the scopes you need. The key starts with sd_ and is shown once.
Send the key as a bearer token, store the job ID, and poll until it finishes.
POST /v1/images/generations
Send a prompt, get back 2K or 4K images — up to 4 per request.
POST /v1/images/edits
Upload an image with a prompt as multipart/form-data, get back the edited version.
POST /v1/images/conversions
Upload a raster image, get back SVG, PPTX, PNG, PDF or TIFF.
GET /v1/jobs/{id} · GET /v1/credits
Read a job's status, credit spend and output file URLs by ID. Read the account balance.
Cost is fixed per operation. Credits are reserved when the job is accepted and settled once when it succeeds.
| Operation | Credits |
|---|---|
| Generation, 2K | 5 / image |
| Generation, 4K | 20 / image |
| Edit, 2K | 10 / image |
| Edit, 4K | 20 / image |
| Convert to SVG, editable text | 10 / job |
| Convert to SVG, full vector | 15 / job |
| Convert to PPTX | 10 / job |
| Convert to raster, 300 / 600 / 1000 DPI | 5 – 15 / job |
Subscription credits refresh monthly, purchased packages never expire, and a failed job refunds in full.
See plans and credit packagesOver a limit returns 429 RATE_LIMIT_EXCEEDED. Back off exponentially and keep the same idempotency key while retrying.
Batch figure sets in a house style; SVG or high-DPI output goes straight into production.
Let users create diagrams inside your product. Durable jobs never tie up a request thread.
Script figures for protocols, training material, and internal docs.
No. Any signed-in account can create a key, and new accounts get gift credits for a first call.
No. One balance per account — the web app and the API spend the same credits.
Released in full. Settled exactly once on success, and internal retries never reserve twice.
Subscription credits refresh monthly, purchased packages never expire, gift credits expire in a day. The API spends the closest to expiring first.
Get in touch with your volume and pace. These numbers are defaults, not a ceiling.
Create a key, paste the curl call, and you have a job ID in seconds.