AI Slide Decks API
Base path: /api/v1/deck/. Python: client.deck. API-key scope: ai_extract
(scopes).
Warning
Rows marked credits run a language model and spend credits
They start a background job and answer 202; poll the matching read route for the result.
A caller without enough credits gets 402. The ai section of the
rate card lists the base price of each AI feature.
Planning and drawing a deck
A deck goes from a plan (a project) to a drawn slide document. In order:
create the project, run stage1, stage2 and roster, optionally edit the spec, confirm
it, then start authoring and poll authoring.pages until it names the slide document.
| Python | Method and path | Credits |
|---|---|---|
deck.projects.create(title=..., topic=None, source_id=None, style_id=None, brand_id=None, theme=None) | POST /projects/ | |
deck.projects.list() · get(project_id) · delete(project_id) | GET /projects/ · GET/DELETE /projects/{project_id}/ | |
deck.projects.stage1(project_id, **hints): recommend the communication contract | POST /projects/{project_id}/stage1/ | credits |
deck.projects.stage2(project_id, contract=None): propose three design directions | POST /projects/{project_id}/stage2/ | credits |
deck.projects.roster(project_id, selected): pick a direction, plan the pages | POST /projects/{project_id}/roster/ | credits |
deck.projects.save_spec(project_id, spec=..., plan_version=...) | PUT /projects/{project_id}/spec/ | |
deck.projects.confirm(project_id, plan_version=...) | POST /projects/{project_id}/confirm/ | |
deck.research.start(project_id, urls): extract cited facts from your URLs | POST /research/{project_id}/ | credits |
deck.research.facts(project_id) · retire_fact(project_id, fact_id) | GET /research/{project_id}/facts/ · DELETE .../facts/{fact_id}/ | |
deck.authoring.start(project_id): draw every page | POST /authoring/{project_id}/ | credits |
deck.authoring.pages(project_id) | GET /authoring/{project_id}/pages/ | |
deck.authoring.retry_page(project_id, number) | POST /authoring/{project_id}/pages/{number}/retry/ | credits |
deck.quality.get(project_id) · rerun(project_id) | GET /quality/{project_id}/ · POST .../rerun/ | |
deck.documents.pages(document_id) | GET /documents/{document_id}/pages/ | |
deck.documents.page_image(document_id, number, output_path): one page as SVG | GET /documents/{document_id}/pages/{number}/image/ |
A save_spec or confirm with an outdated plan_version answers 409.
Inputs: sources, templates, brands, images
| Python | Method and path |
|---|---|
deck.sources.create(path) or create(text=..., name=...): ingest a file or pasted text | POST /sources/ |
deck.sources.get(source_id) · markdown(source_id) | GET /sources/{source_id}/ · GET .../markdown/ |
deck.templates.list(kind=None) · get(template_id) · fonts() | GET /templates/ · GET /templates/{template_id}/ · GET /templates/fonts/ |
deck.templates.create_brand(logo_path=None, **fields) | POST /templates/brands/ |
deck.templates.update_brand(template_id, **fields) · delete_brand(template_id) | PATCH/DELETE /templates/brands/{template_id}/ |
deck.templates.replace_brand_logo(template_id, logo_path) | POST /templates/brands/{template_id}/logo/ |
deck.images.search(q) · save(token, query=None) · list() | GET /images/search/ · POST /images/ · GET /images/ |
Working on existing decks
| Python | Method and path | Credits |
|---|---|---|
deck.edit.inspect(path): list a .pptx file’s slides, shapes and paragraphs | POST /edit/inspect/ | |
deck.edit.plan(job_id, instruction) | POST /edit/plan/ | credits |
deck.edit.apply(job_id, plan) · job(job_id) | POST /edit/apply/ · GET /edit/jobs/{job_id}/ | |
deck.fill.inspect(path): read your own .pptx template | POST /fill/inspect/ | |
deck.fill.plan(job_id, content): map your content onto its layouts | POST /fill/{job_id}/plan/ | credits |
deck.fill.save_plan(job_id, plan=..., plan_rev=...) · run(job_id, plan_rev=...) · get(job_id) | PUT /fill/{job_id}/plan/ · POST /fill/{job_id}/run/ · GET /fill/{job_id}/ | |
deck.from_image.create([paths]): PNG, JPEG or WebP slides to an editable deck | POST /from-image/ | credits |
deck.from_image.job(job_id) | GET /from-image/jobs/{job_id}/ | |
deck.narration.start(document_id, voice=..., model=...): read the speaker notes aloud | POST /narration/{document_id}/ | credits |
deck.narration.get(document_id): per-slide clip and subtitle URLs | GET /narration/{document_id}/ |
Completed edit and fill jobs carry a presigned download URL.
from indox_client import Indox
with Indox() as client:
project = client.deck.projects.create(title="Q3 review", topic="Quarterly results")
client.deck.projects.stage1(project["id"]) # credits; poll projects.get