VSDX.ai logoVSDX.ai
  • Create
  • Tools
  • Pricing
  • FAQ
VSDX.ai logoVSDX.ai

Turn multimodal source material into editable Visio diagrams.

Ask AI about VSDX.ai

Product
  • Features
  • FAQ
  • Tools
  • Studio
  • Blog
Tools
  • Image to Visio
  • Excel to org chart
  • Outline to org chart
  • Mermaid to Visio
  • PlantUML to Visio
  • Tidy up a diagram
  • draw.io to Visio
  • Visio to draw.io
  • Visio to PNG or SVG
Resources
  • Documentation
  • Blog
  • Developers
  • MCP
Company
  • About
  • Contact
Legal
  • Cookie Policy
  • Privacy Policy
  • Terms of Service
© 2026 VSDX.ai. All Rights Reserved.

Public API

Build with the VSDX.ai API

Generate AI Visio diagrams from text and convert draw.io or diagram JSON into vsdx, png, svg and drawio files. Same credits and engine as the web app.

Create API keyOpenAPI JSON

Quick start

Replace vsdx_YOUR_KEY with a key from Settings → API keys. Send Authorization: Bearer vsdx_… or x-api-key.

Generate a diagram

curl -X POST https://vsdx.ai/api/v1/generate \
  -H 'Authorization: Bearer vsdx_YOUR_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "prompt": "Cloud migration swimlane for finance and engineering",
    "diagramType": "swimlane",
    "formats": ["vsdx", "png", "drawio"]
  }'

Convert draw.io XML

curl -X POST https://vsdx.ai/api/v1/convert \
  -H 'Authorization: Bearer vsdx_YOUR_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "drawio": "<mxfile>...</mxfile>",
    "formats": ["vsdx", "png"]
  }'

Check balance

curl https://vsdx.ai/api/v1/credits \
  -H 'Authorization: Bearer vsdx_YOUR_KEY'

Endpoints

MethodPathCreditsDescription
POST/api/v1/generate10Prompt → editable diagram files (sync, up to a few minutes).
POST/api/v1/convert5draw.io XML or diagram IR → chosen formats.
GET/api/v1/creditsFreeRemaining credit balance for the key owner.
GET/api/v1/openapi.jsonFreeMachine-readable OpenAPI 3.1 document.
Requests
JSON bodies; Content-Type: application/json.

generate: prompt (required), diagramType (auto or flowchart, swimlane, bpmn, org, architecture, network, er, uml), formats (vsdx, png, svg, drawio).

convert: exactly one of drawio (max 2 MB) or diagram (IR JSON), plus formats.

Auth: Authorization: Bearer vsdx_… or header x-api-key.

Responses
Successful calls return JSON with file URLs.

The files object maps each format to a url (signed CDN link). expiresAt is about one hour after issuance.

Errors use error.code and error.message; see the table below. Requesting vsdx without a paid plan or credit package returns paid_plan_required (403).

Error codes

codeMeaning
unauthorizedMissing or invalid API key.
insufficient_creditsNot enough credits for the operation.
invalid_requestBody failed validation.
payload_too_largedrawio field exceeds 2 MB.
rate_limitedToo many requests (120/minute per key).
upstream_failedRender or AI engine could not finish.
internalUnexpected server error.

Limits

  • 120 requests per minute per API key across all v1 routes.
  • drawio payload max 2 MB on convert.
  • Download URLs in responses expire in about one hour.
Use from ChatGPT, Claude or coding agents
Connect over MCP at /api/mcp with OAuth (ChatGPT, Claude web) or a vsdx_ API key (Claude Code, Cursor, Codex).
MCP setup guide

FAQ