Open vDesign
Contents Export API

These docs follow the latest development version of vDesign.

Export API

The Export API turns vDesign documents into PowerPoint (.pptx), Illustrator (.ai), PDF, SVG, HTML, PNG, JPEG, WebP and GIF, over HTTP, in a Docker image that you run yourself. It draws exactly what the vDesign canvas draws: the same layout, the same fonts, the same line breaks. A PowerPoint deck it makes keeps its text boxes, shapes, tables, charts and speaker notes editable. Your designs stay on your servers: the image does not store them and does not send them anywhere. It needs a licence key, which you get by starting a free trial or choosing a plan at getv.design/api/export.

The vDesign apps export these formats too, for free for everyday use. This is for running export as a service, inside your own network, from your own code.

What you need

  • A machine that runs Docker on x86-64 Linux.
  • About 4 GB of memory for the default settings: each export runs in its own process of up to 2 GB, and two run at once. A small deployment can lower both (see Settings).
  • Outbound HTTPS to license.getv.design, when the service starts and once a day. It is the only connection the service makes. See The licence.
  • An Export API licence key. An Import API key does not work here: the two are sold apart.

Get a licence key

Go to getv.design/api/export and start the 7-day free trial, or subscribe monthly or yearly. Sign in with a vDesign account (or create one), and your key and the command that starts the service are on your licence page. A trial that you then pay for keeps its key.

Run it

docker run -d -p 8080:8080 \
  -v vdesign-licence:/var/lib/vdesign \
  -v ./brand-fonts:/fonts:ro \
  -e VDESIGN_LICENSE_KEY=YOUR-KEY \
  public.ecr.aws/w0a0h7n1/export:1
  • vdesign-licence keeps the last licence answer, so a restart while the licence server cannot be reached still starts. Keep it.
  • /fonts is optional: a folder of your own .ttf, .otf or .ttc files, looked in before the fonts in the image.
  • :1 follows every 1.x release. Pin :1.2 for fixes only. There is no latest.

Check it:

curl localhost:8080/v1/license
# {"status":"valid","expiry":"2026-12-31T00:00:00.000Z","checkedAt":"…","cached":false}

Export a design

POST /v1/export, with the design as the raw request body and what to make in the query. The body is a .vd file’s whole text (pictures and all), or a .vd.svg that carries one.

# The deck itself
curl -X POST --data-binary @deck.vd -o deck.pptx \
  'localhost:8080/v1/export?format=pptx&as=file'

# Every page as a PNG, twice the size, as JSON
curl -X POST --data-binary @deck.vd 'localhost:8080/v1/export?format=png&scale=2'

The JSON answer:

{
  "format": "png",
  "files": [
    {
      "name": "Q3 review-cover.png",
      "type": "image/png",
      "width": 3200,
      "height": 1800,
      "bytes": "<base64>"
    }
  ],
  "notes": [],
  "problems": []
}

notes says, a sentence each, anything not drawn as the design asked (a font the image does not have, a missing picture). problems are what the design itself gets wrong (text that overflows its box, a bad path). Neither stops an export.

The query

parameterwhat
formatrequired: pptx, ai, pdf, svg, png, jpg, webp, html or gif
frames, nodescomma-separated ids: these pages only, or these nodes cut to what they draw
scale, width, heightrasters: pixels per design pixel (up to 16), or an exact width or height
qualityJPEG and lossy WebP, 1 to 100 (90)
losslessWebP: true or false
backgrounda CSS colour painted under everything, or transparent
dpiPNG and JPEG print metadata
textSVG and PPTX: live (the default) or outline
artboardsIllustrator: canvas (one artboard, the default) or frames (a file each)
time, fpsa still of a page’s motion at this millisecond; GIF frames a second
ziptrue: several files as one .zip
namewhat the files are called; the design’s title otherwise
asjson (the default), or file for the one file itself

as=file needs the export to make one file: ask for one page, or add zip=true. MP4 is not offered: it needs a browser’s video encoder.

Answers

statuserrorwhen
200the files
400invalid_requestthe query is wrong; the message names the parameter
400emptyno body
401unauthorisedVDESIGN_API_TOKEN is set and the request did not carry it
402license_invalidthe licence is not valid, or the key is for another vDesign product
409several_filesas=file, and the export made more than one file
413too_largethe design is over VDESIGN_MAX_UPLOAD_MB
422export_failedthe design cannot be exported (a page that does not exist, say)
503busyevery worker is busy and the queue is full; retry after Retry-After
504timeoutthe export took longer than VDESIGN_EXPORT_TIMEOUT_SECONDS

Fonts

A design is drawn with, in order: the fonts it carries, the fonts in /fonts, the fonts in the image (Liberation for Arial and Times New Roman, Carlito for Calibri, Caladea for Cambria), and Inter. When a font is not found, the answer’s notes says so and which font drew it instead.

A font for one export

To use a font for one export only, put it in the .vd you send. Nothing is mounted and nothing restarts, and the font is used for that request alone: the next request does not see it.

A .vd carries a font the way it carries a picture: an asset line in the head, a face that names it, and the file’s bytes in the payload at the end, after the --- payload base64 --- line. The payload is one line per file: its hash, a space, and the file as base64 on one line.

  • hash is sha256- and the SHA-256 of the file, in lowercase hex. The same value starts the file’s line in the payload.
  • bytes is the file’s size. The media type is font/ttf, font/otf, font/woff or font/woff2.
  • One face for each weight and style the design uses, with style=italic for an italic.
  • The family in quotes ("Acme Sans") is the name a PowerPoint deck gives the font.

A short script that adds a font file to a design:

python3 - deck.vd AcmeSans-Regular.ttf brand-regular <<'EOF'
import base64, hashlib, re, sys
vd, font, name = sys.argv[1:]
data = open(font, 'rb').read()
digest = 'sha256-' + hashlib.sha256(data).hexdigest()
head, _, tail = open(vd).read().partition('\n--- payload base64 ---\n')
asset = f'asset {name} = font/ttf hash={digest} bytes={len(data)}\n'
head = re.sub(r'^(kind .*\n)', lambda m: m.group(1) + asset, head, count=1, flags=re.M)
tail += f'{digest} {base64.b64encode(data).decode()}\n'
open(vd, 'w').write(head + '\n--- payload base64 ---\n' + tail)
EOF

It writes font/ttf; for an .otf, .woff or .woff2 file, change that to its type. Then point a face at it, as above. Which fonts you send is yours to decide: the service draws and embeds what the design carries, and does not check a font’s licence.

Which fonts a file carries

PDF, SVG, HTMLPNG, JPEG, WebP, GIFPowerPoint
A font the design carriesembeddeddrawnembedded
A font from /fontsembeddeddrawnnamed only
Inter, from the imageembeddeddrawnembedded
Arial, Calibri, Times New Roman, Cambriaembedded (the stand-in)drawnnamed only (the real font)

A PDF or an SVG holds every font it uses, so it looks the same everywhere. A PowerPoint deck is different, because PowerPoint sets live text in fonts again when the deck is opened:

  • Fonts the design carries go into the deck, so the people who open it see them without installing anything.
  • Fonts from /fonts are named, not embedded. They are fonts installed on your server, and the service does not send them out in every deck. Whoever opens the deck needs the font installed, and the answer’s notes says so. To send one with the deck, put it in the .vd instead (see above), or export with text=outline, which turns the words into shapes that need no font, at the cost of text that cannot be edited.
  • Arial, Calibri, Times New Roman and Cambria are named, not embedded. The image draws them with Liberation, Carlito and Caladea, which have the same widths, so lines break in the same places. The deck names the real font, which Office already has. Putting the stand-in’s file in under the real font’s name would show a different font as that one.

Settings

variabledefault
VDESIGN_LICENSE_KEYrequiredyour Export API key
VDESIGN_API_TOKENnoneif set, POST /v1/export needs Authorization: Bearer …
VDESIGN_FONTS_DIR/fontsyour fonts, looked in first
VDESIGN_MAX_UPLOAD_MB100
VDESIGN_EXPORT_TIMEOUT_SECONDS120
VDESIGN_CONCURRENCY2exports at once, each in its own process
VDESIGN_QUEUE_LIMIT16exports that may wait; past it, 503
VDESIGN_WORKER_MEMORY_MB2048per export
VDESIGN_LICENSE_GRACE_DAYS7how long it runs on its last good licence check
PORT8080

The licence

At start-up and once a day, the service sends your key and a random number to license.getv.design and believes only an answer signed by our licence server. It sends nothing from your designs. If it cannot reach the server it keeps exporting on its last good answer for seven days. A key is for one product: the Export API refuses an Import API key, and the Import API refuses an Export API key. The terms say what the licence lets you do.

What it does not do

  • It does not enforce seats or limit how many copies run: the plan is for your own organisation, under the licence terms.
  • It does not take multipart uploads: the body is the design.
  • It does not make MP4.
  • It does not run without a way to reach the licence server at least once a week.
  • It exports vDesign documents. To bring PowerPoint, PDF or Illustrator files in, see the Import API.