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-licencekeeps the last licence answer, so a restart while the licence server cannot be reached still starts. Keep it./fontsis optional: a folder of your own.ttf,.otfor.ttcfiles, looked in before the fonts in the image.:1follows every 1.x release. Pin:1.2for fixes only. There is nolatest.
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
| parameter | what |
|---|---|
format | required: pptx, ai, pdf, svg, png, jpg, webp, html or gif |
frames, nodes | comma-separated ids: these pages only, or these nodes cut to what they draw |
scale, width, height | rasters: pixels per design pixel (up to 16), or an exact width or height |
quality | JPEG and lossy WebP, 1 to 100 (90) |
lossless | WebP: true or false |
background | a CSS colour painted under everything, or transparent |
dpi | PNG and JPEG print metadata |
text | SVG and PPTX: live (the default) or outline |
artboards | Illustrator: canvas (one artboard, the default) or frames (a file each) |
time, fps | a still of a page’s motion at this millisecond; GIF frames a second |
zip | true: several files as one .zip |
name | what the files are called; the design’s title otherwise |
as | json (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
| status | error | when |
|---|---|---|
| 200 | the files | |
| 400 | invalid_request | the query is wrong; the message names the parameter |
| 400 | empty | no body |
| 401 | unauthorised | VDESIGN_API_TOKEN is set and the request did not carry it |
| 402 | license_invalid | the licence is not valid, or the key is for another vDesign product |
| 409 | several_files | as=file, and the export made more than one file |
| 413 | too_large | the design is over VDESIGN_MAX_UPLOAD_MB |
| 422 | export_failed | the design cannot be exported (a page that does not exist, say) |
| 503 | busy | every worker is busy and the queue is full; retry after Retry-After |
| 504 | timeout | the 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.
hashissha256-and the SHA-256 of the file, in lowercase hex. The same value starts the file’s line in the payload.bytesis the file’s size. The media type isfont/ttf,font/otf,font/wofforfont/woff2.- One
facefor each weight and style the design uses, withstyle=italicfor 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, HTML | PNG, JPEG, WebP, GIF | PowerPoint | |
|---|---|---|---|
| A font the design carries | embedded | drawn | embedded |
A font from /fonts | embedded | drawn | named only |
| Inter, from the image | embedded | drawn | embedded |
| Arial, Calibri, Times New Roman, Cambria | embedded (the stand-in) | drawn | named 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
/fontsare 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’snotessays so. To send one with the deck, put it in the.vdinstead (see above), or export withtext=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
| variable | default | |
|---|---|---|
VDESIGN_LICENSE_KEY | required | your Export API key |
VDESIGN_API_TOKEN | none | if set, POST /v1/export needs Authorization: Bearer … |
VDESIGN_FONTS_DIR | /fonts | your fonts, looked in first |
VDESIGN_MAX_UPLOAD_MB | 100 | |
VDESIGN_EXPORT_TIMEOUT_SECONDS | 120 | |
VDESIGN_CONCURRENCY | 2 | exports at once, each in its own process |
VDESIGN_QUEUE_LIMIT | 16 | exports that may wait; past it, 503 |
VDESIGN_WORKER_MEMORY_MB | 2048 | per export |
VDESIGN_LICENSE_GRACE_DAYS | 7 | how long it runs on its last good licence check |
PORT | 8080 |
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.