SciFig

API reference

SciFig API

Create scientific illustrations, data charts and flowcharts over HTTP, with the same engines, prices and credits as the SciFig website.

Quick start#

  • Create an API key under Settings → Developer. Keys that generate need an active subscription or a credit-pack balance above zero; read-only keys work on any account.
  • Send a create request with an Idempotency-Key. With Prefer: wait=25 the response waits up to 25 seconds and returns the finished job when it is done in time.
  • If the job is still queued or processing, read GET /jobs/{id} every few seconds (follow Retry-After) until it is succeeded or failed.
  • Download each output from its download_url (valid for one hour), or pass its file_id to another endpoint.
curl -X POST https://scifig.ai/api/v1/images/generations \
  -H "Authorization: Bearer $SCIFIG_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Prefer: wait=25" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "Mitochondrial electron transport chain, labelled", "aspect_ratio": "4:3"}'

Base URL: https://scifig.ai/api/v1. Machine-readable contract: OpenAPI JSON and OpenAPI YAML. AI assistants can use the same features through the MCP server.

Endpoints#

EndpointWhat it doesCredits
POST /images/generationsGenerate a scientific illustration from a prompt50 / 75 / 100
POST /images/editsEdit by instruction or region, white background, aspect ratio, recolor, replace text50 / 75 / 100; region or text 100
POST /images/text-detectionsFind the text in an image before replacing it0
POST /images/upscalesUpscale to 2K, 4K or 8K50 / 100 / 150
POST /images/conversionsSVG vectorization; PNG, PDF, TIFF and PPTX exportSVG 150; others 0
POST /charts/generationsPlot a chart from CSV, TSV or Excel data100
POST /charts/editsChange the latest version of a chart100
POST /flowcharts/generationsDraw a flowchart as SVG100
POST /flowcharts/editsChange the latest version of a flowchart100
POST /filesUpload an image, a mask or an attachment0
GET /files/{file_id}Download a file0
GET /jobs/{id}Read one job0
GET /jobsList recent jobs0
GET /creditsBalance, plan and task limits0
GET /pricingEvery price (no authentication)0
GET /openapi.jsonOpenAPI 3.1 description (no authentication)0
GET /openapi.yamlThe same description as YAML (no authentication)0

There are no webhooks, SDKs or command-line tools: call the endpoints directly from a server or a script (the API does not allow browser CORS requests).