DEVELOPER API · v1

One endpoint:
copy in, PPTX out

Your AI reads one skill bundle and knows which layouts exist and what each slot wants. It fills the copy, posts it here, and gets back a genuinely editable .pptx. Exactly one write operation in the whole API.

v1 REST · JSON POST /api/v1/pptx Auth Bearer ppt_sk_…

How to plug in

Two ways in, one destination: POST /api/v1/pptx. The only difference is who translates your copy into slots.

Recommended

Skill bundle

One zip: SKILL.md carries the workflow, reference/layouts.md spells out what every slot of all 50 layouts wants, examples/deck.json runs as-is. Unzip into the skills directory of Claude Code, Cursor or Cowork and it works — no integration code.

Write your own code

Plain HTTP

Three calls: GET /layouts to find a layout and its slots, POST /decks to get a preview link, then POST /decks/:id/export once the user approves. No SDK to install, no second abstraction layer to learn.

skill
curl -o  Slidepane-skill.zip https://slidepane.net/api/v1/skill.zip    # full bundle (SKILL.md + layout reference + example)
curl -s  https://slidepane.net/api/v1/skill                            # SKILL.md only, paste straight into the agent context
unzip -d ~/.claude/skills Slidepane-skill.zip                          # drop it in the skills directory

Why only one write endpoint? Because thinking up the content is not our job — your model already writes well; what it lacks is getting that text onto a page. We sell that one step, and bill only for it.

Four steps: link first, file later

Pick a layout, read its slots, create a draft and hand over its link, export once they approve. The first three are free — only the export spends credits, so iterating costs nothing.

  1. 1

    Pick a layout. GET /layouts returns all 50 layouts with id, name, slot count and role string (about 10KB), plus the themes available and the current price.

  2. 2

    Read the slots. GET /layouts?id=cards-3 gives each slot role, suggested length and reference copy, plus an example.texts array you can copy verbatim.

  3. 3

    Create a draft. POST /decks with the same body returns a viewUrl — send it to the user. It opens the finished deck in a browser: arrow keys to page, full-screen presenting, no login.

  4. 4

    Revise, then export. PATCH /decks/:id rewrites a page (free; the rev bumps and the open preview updates itself). When they say go, POST /decks/:id/export returns the file.

draft → link → revise → export
# 1) create a draft, get the preview link (free)
curl -s -X POST https://slidepane.net/api/v1/decks \
  -H "Authorization: Bearer $PPT_PLUS_KEY" \
  -H "Content-Type: application/json" \
  -d @deck.json
# → {"ok":true,"deck":{"id":"dk_…","viewUrl":"https://slidepane.net/p/dk_…?k=…","pages":12}}

# 2) send the viewUrl to the user, revise from their feedback (free)
curl -s -X PATCH https://slidepane.net/api/v1/decks/dk_xxxx \
  -H "Authorization: Bearer $PPT_PLUS_KEY" -H "Content-Type: application/json" \
  -d '{"mode":"patch","index":0,"texts":["new title","new description"]}'

# 3) they approve — now export (this is the charged step)
curl -s -X POST https://slidepane.net/api/v1/decks/dk_xxxx/export \
  -H "Authorization: Bearer $PPT_PLUS_KEY" -d '{}' -o deck.pptx

When the content is final and you only want the file, skip the draft and POST /pptx directly — identical body, the response is the .pptx binary. That is the path below.

POST /pptx
curl -s -X POST https://slidepane.net/api/v1/pptx \
  -H "Authorization: Bearer $PPT_PLUS_KEY" \
  -H "Content-Type: application/json" \
  -d @deck.json -o deck.pptx

# deck.json
# {
#   "title": "Growth plan 2026",
#   "themeId": "sand",
#   "lang": "en",
#   "slides": [
#     {"layout":"cover-hero","texts":["STRATEGY 2026","Make growth a pipeline",
#       "From one-off campaigns to a reusable system","Growth · March 2026"]},
#     {"layout":"cards-3","texts":["...13 items in fields order..."]}
#   ]
# }
python · requests
import requests

res = requests.post(
    "https://slidepane.net/api/v1/pptx",
    headers={"Authorization": f"Bearer {KEY}"},
    json={
        "title": "Growth plan 2026",
        "themeId": "sand",
        "lang": "en",
        "slides": [
            {"layout": "cover-hero",
             "texts": ["STRATEGY 2026", "Make growth a pipeline",
                       "From one-off campaigns to a reusable system", "Growth · March 2026"]},
        ],
    },
    timeout=120,
)
res.raise_for_status()
print(res.headers["X-Billed-Credits"], "credits")
open("deck.pptx", "wb").write(res.content)
node · fetch
import fs from "node:fs";

const res = await fetch("https://slidepane.net/api/v1/pptx", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.PPT_PLUS_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    title: "Growth plan 2026",
    themeId: "sand",
    lang: "en",
    slides: [{
      layout: "cover-hero",
      texts: ["STRATEGY 2026", "Make growth a pipeline",
              "From one-off campaigns to a reusable system", "Growth · March 2026"],
    }],
  }),
});
if (!res.ok) throw new Error((await res.json()).error.message);
fs.writeFileSync("deck.pptx", Buffer.from(await res.arrayBuffer()));

dryRun first, export second

Add "dryRun": true to the same body: no credits, no file, just the resolved layout per page, the final texts and any warnings. It is the only free verification you get, so use it whenever a deck has more than one or two pages.

dryRun
# dry run: free, returns the layout and final texts per page
curl -s -X POST https://slidepane.net/api/v1/pptx \
  -H "Authorization: Bearer $PPT_PLUS_KEY" \
  -H "Content-Type: application/json" \
  -d @deck.json | head -c 2000

# export: drop dryRun, the body stays the same
curl -s -X POST https://slidepane.net/api/v1/pptx \
  -H "Authorization: Bearer $PPT_PLUS_KEY" \
  -H "Content-Type: application/json" \
  -d @deck.json -o deck.pptx

Watch it land

Click "AI live" in the editor and you get a webhook address. Hand it to your AI: every push turns the page on their screen into that deck — no file, no reopening.

no key

No key needed

The address is the credential. Demos, trials and internal pilots all go through here — no account first.

same body

Same request body

Byte-identical to POST /pptx. Learn it once; only the destination changes — a file, or a screen.

free

Pushes cost nothing

Previewing is free. Pay only when you need the file, through /pptx or the editor’s own export.

POST /api/live/hook/<token>
# push three pages first, wait for a yes
curl -s -X POST https://slidepane.net/api/live/hook/<token> \
  -H "Content-Type: application/json" \
  -d @deck.json

# keep going: new pages go to the end
curl -s -X POST https://slidepane.net/api/live/hook/<token> \
  -H "Content-Type: application/json" \
  -d '{"mode":"append","slides":[
        {"layout":"end-thanks","texts":["Thanks","See you"]}]}'

# rewrite page 1, leave the rest alone
curl -s -X POST https://slidepane.net/api/live/hook/<token> \
  -H "Content-Type: application/json" \
  -d '{"mode":"patch","index":0,
       "slides":[{"index":0,"layout":"cover-hero",
                  "texts":["New cover","Subtitle"]}]}'

This address needs no API key: the random string in it is the credential. It expires after 12 hours and can be rotated from the editor at any time. All it can do is reshape the deck in front of the user — it produces no file and reads nothing else.

Authentication

Two equivalent styles. Pick whichever reads better.

HTTP headers
Authorization: Bearer ppt_sk_1f3c9a...e07b
# or
x-api-key: ppt_sk_1f3c9a...e07b

Keys are stored hashed and cannot be recovered — revoke and reissue. Quota and rate limits hang off the key, and one client can hold several.

Endpoints

Drafts, exports, template fill and lookups in one place. Only file-producing calls (/pptx, /decks/:id/export, /fill) are billed by usage; everything else is free — including slot extraction via /fill/extract.

Endpoint Purpose Credits
POST /decks Create a draftSame body as /pptx, but it returns a preview URL (viewUrl). Send it to the user; it opens the finished deck. 0
PATCH /decks/:id Revise a draftPatch a page, append, replace the deck, switch theme or rename. Returns a new rev; the preview page updates itself. 0
POST /decks/:id/export Draft → PPTXCall it only after the user approves. Body is an empty {}, layout comes from the draft. The only charged step. 3 + 1/page
POST /pptx Layouts + slot copy → PPTXOne-shot: no draft. Body is a slides array, response body is .pptx binary. With dryRun it validates, produces no file and charges nothing. 3 + 1/page
POST /fill/extract Extract text slots from your PPTXSend a base64 template; get back a per-page slot table, a ready-made LLM prompt and a 30-minute fillToken. Parse only, no export — completely free. 0
POST /fill Write copy back into your PPTXSend the fillToken and your copy; images, theme, layouts and shapes stay byte-for-byte, only text changes. Returns the filled .pptx, billed per slot filled. 3 + 1/page
GET /layouts Layout catalogue / one layoutNo params: a compact list of every layout plus themes and pricing. With ?id=: each slot role, suggested length and reference copy for that layout. 0
GET /me Key statusRemaining quota, rate limit, expiry and current unit price. Good for a monitoring probe. 0
GET /usage Usage and historyDaily trend plus recent calls, for your own reconciliation. 0

GET /skill and /skill.zip are file downloads for the skill bundle, not API calls. The old endpoints (/compose, /render, /presentations) are retired: they return 404 with a message pointing at /pptx.

Fill your own PPTX template

Already have a designed .pptx and only want to swap the text? Two steps: extract the slots, then write the copy back. Images, theme, layouts and shapes stay exactly as they are — only text nodes change. The server never calls a model: you (or your AI) write the copy, so it is millisecond-fast and needs no model service.

  1. 1

    Extract slots (free). POST /fill/extract with the base64 template and a short brief; get back a per-page slot table (s = slot number on the page, max = length cap), a prompt you can send straight to an LLM, and a fillToken. The token caches the original template server-side for 30 minutes, so you never shuttle the whole base64 through your context again.

  2. 2

    Write the copy back (billed here). POST /fill with the fillToken and your finished copy object to get the .pptx binary. Copy maps to slots by s order; decorative slots (decor:true) left empty keep their original text.

fill/extract → fill
# 1) Extract slots (free)
curl -s -X POST https://slidepane.net/api/v1/fill/extract \
  -H "Authorization: Bearer $PPT_PLUS_KEY" -H "Content-Type: application/json" \
  -d '{"template":"<base64 of .pptx>","brief":"Quarterly review"}' > slots.json
# returns: fillToken / pages (slots) / prompt / resultFormat

# 2) Write your copy back (billed per filled slot; layout preserved)
curl -s -X POST https://slidepane.net/api/v1/fill \
  -H "Authorization: Bearer $PPT_PLUS_KEY" -H "Content-Type: application/json" \
  -d '{"fillToken":"token-from-step-1","result":{"pages":[{"i":1,"t":["page1 s1 copy","page1 s2 copy"]}]}}' \
  -o filled.pptx

result format: {"pages":[{"i":1,"t":["s1 copy","s2 copy"]}]}. Only /fill is billed (per slot filled, reusing the export formula 3 + 1/page); /fill/extract is free. You can also skip fillToken and send template directly on /fill for a stateless call.

Billing

In one line: one export = 3 credits + pages x 1 credit. A ten-page deck is thirteen credits. dryRun is always free.

Item Credits Notes
Per export 1 Auth, rendering, packaging and metering overhead
Per page 0.2 Page count is the only thing that scales with cost, hence per page and not per call
dryRun 0 Validates only, no file, logged at zero
per page

Per page, not per call

One call may be 3 pages or 30. Per-call pricing punishes small decks and undercharges big ones.

no tokens

No token charges

We call no model — your AI writes the copy. No token cost, so no token fee.

402

Reserve, then settle

Not enough quota returns 402 immediately instead of failing after rendering. If the real page count is lower, the difference stays in your balance.

Plans only set default quota and rate limit; what actually gets spent is the credits in the account. Credits do not expire, and an admin can top up or adjust at any time.

Errors

Every error is { ok:false, error:{ code, message } }. The code is stable for branching; the message is for humans.

HTTP code Meaning
400invalid_requestInvalid body: empty slides, unknown layout id, texts not an array. The message names the page.
401unauthorizedMissing, invalid or revoked key.
402insufficient_quotaOut of credits; the response carries required and quotaLeft.
404not_foundEndpoint does not exist. Old endpoints are retired; use /pptx.
429rate_limitedRate limit exceeded. Retry after the Retry-After seconds.
500internal_errorServer error. Safe to retry once; if it keeps failing, send us the timestamp.

A few things we learned

  • Edit example.texts rather than building an array from scratch. Starting empty almost always puts slot 7 content into slot 8.
  • A wrong layout id is cheap: the API returns 400 with the closest match, so fix it and resend.
  • Rewriting copy only means exporting again. The same slides cost the same 3 + 1/page — there is no regeneration surcharge.
  • The response is binary, so avoid HTTP wrappers that JSON.parse everything. Check Content-Type before reading the body.

Run the whole flow once

The free tier is about 50 pages — enough to try every layout and finish the loop. Pick a plan once it works.

Get an API key