Overview
Integrate SciDraw AI image generation, editing, and conversion
The SciDraw AI REST API provides stable job-based endpoints for image generation, image editing, and format conversion.
Base URL: https://sci-draw.com
Machine-readable spec: OpenAPI JSON · OpenAPI YAML
Both files describe this same API in the OpenAPI format. Import either one into Postman or Insomnia to get every endpoint pre-filled, feed it to a code generator to produce a typed client, or hand it to an AI agent so it can call the API without you writing the request by hand. The two formats are interchangeable — pick whichever your tool accepts.
Quick start
- Create an API key in Settings → API Keys and select only the scopes your integration needs.
- Send the key as
Authorization: Bearer sd_.... - Add a unique
Idempotency-Keyto every create request. - Store the returned job ID and poll its
LocationURL until it reachessucceeded,failed, orcanceled.
curl https://sci-draw.com/api/v1/images/generations \
-H 'Authorization: Bearer sd_YOUR_KEY' \
-H 'Idempotency-Key: order-7842-figure-1' \
-H 'Content-Type: application/json' \
-d '{
"prompt": "A clean scientific illustration of exosome biogenesis",
"aspect_ratio": "16:9",
"resolution": "2K",
"count": 1
}'A create request normally returns 202 Accepted, a job object, a Location
header, and Retry-After: 2. You may add Prefer: wait=10 to wait for up to 10
seconds. Waiting never changes the underlying job semantics: return status is
200 only if the job is already terminal, otherwise it remains 202.
Endpoints
| Method | Path | Scope |
|---|---|---|
POST | /api/v1/images/generations | images:generate |
POST | /api/v1/images/edits | images:edit |
POST | /api/v1/images/conversions | images:convert |
GET | /api/v1/jobs/{job_id} | jobs:read |
GET | /api/v1/credits | credits:read |
All responses are JSON envelopes. Every response has an X-Request-Id; include
that ID when contacting support. Output URLs and public file IDs are the only
file references returned. Capability routing is managed by SciDraw AI.

API Docs