VisionStory Docs
llms.txt Get API key

Generate or edit images from a text prompt, optionally guided by reference images. The endpoint is synchronous — the response carries the finished image URL.

Beta access. This endpoint is allowlisted during beta. If a request returns 403 / not enabled, contact your VisionStory representative. An active subscription is required.

Endpoints

Method Path What it does
GET /api/v1/image/models List image models with sizes and per-image credit cost
POST /api/v1/image Generate an image from a prompt (+ optional references)

Discover models

curl -s -H "X-API-Key: $VISIONSTORY_API_KEY" https://openapi.visionstory.ai/api/v1/image/models

Each model reports its aspect ratios, resolutions, reference-image limit, and credit_per_image. Current models: nano-banana (fast, economical), nano-banana-2 (balanced, strong edits), nano-banana-pro (highest quality, supports 2K). Drive your integration from this endpoint rather than hardcoding.

Generate an image

Send a model_id (from the models endpoint) and a prompt. Optionally add up to 4 refs (reference images) to guide style or subject, or to edit — editing works through instructions in the prompt plus reference images, no mask needed.

curl -s -X POST -H "X-API-Key: $VISIONSTORY_API_KEY" -H "Content-Type: application/json" -d '{"model_id": "nano-banana", "prompt": "A red panda barista in a cozy cafe, warm lighting", "aspect_ratio": "1:1", "resolution": "1K"}' https://openapi.visionstory.ai/api/v1/image
{ "data": { "url": "https://cdn.visionstory.ai/example.png" } }

Chain into video

The returned url is a normal image URL — pass it straight into other endpoints, e.g. as first_frame or refs for AI Video:

{ "model_id": "seedance-2.0", "prompt": "the scene gently comes alive, slow camera push-in", "first_frame": { "url": "https://cdn.visionstory.ai/example.png" } }

Notes

Next steps