Back to API overview



API capability
Sketch-to-Figure
Convert a rough sketch into a polished scientific figure.
POST /v1/images/generations · mode=generationsOutputScientific figure

InputSketch

Request and response example
See the scientific input, asynchronous task response, and final output together.
RequestSketch
ResponseScientific figure


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" }