Back to API overview

API capability

Sketch-to-Figure

Convert a rough sketch into a polished scientific figure.

POST /v1/images/generations · mode=generations
Read the docs
OutputScientific figure
Sketch-to-Figure output
InputSketch
Sketch-to-Figure input

Request and response example

See the scientific input, asynchronous task response, and final output together.

RequestSketch
ResponseScientific figure
Sketch-to-Figure request input
Sketch-to-Figure response output
POST /v1/images/generations
{
  "mode": "generations",
  "image_url": "https://…/sketch.png",
  "prompt": "polished pathway diagram"
}
202 Accepted
{ "task_id": "tsk_01JZ9G2PM8", "status": "processing" }

GET /v1/tasks/tsk_01JZ9G2PM8
{ "status": "succeeded", "output_url": "https://…/pathway.png" }