Skip to main content
The Ablo Decks SDK (@abloatai/decks) gives you a fully typed TypeScript client for creating and managing Ablo slide decks from code. Decks you build with the SDK are indistinguishable from ones created by hand in the Ablo editor or generated by Ablo’s AI — the same styling, the same layer model, the same fidelity. Whether you’re generating pitch decks on the fly, automating report slides, or integrating presentations into your application, the SDK puts the full Ablo surface area at your fingertips.

Introduction

Learn what the Ablo Decks SDK does, what resources it exposes, and when you should reach for it.

Quickstart

Install the package, grab an API key, and create your first deck in under five minutes.

API Reference

Explore the full reference for decks, slides, layers, layouts, themes, and images endpoints.

Guides

Go deeper with batch operations, advanced layer styling, and production patterns.

Get up and running in three steps

Follow these steps to go from zero to your first programmatic Ablo deck.
1

Install the SDK

Add @abloatai/decks to your project using your preferred package manager.
npm i @abloatai/decks
2

Get your API key

Open your Ablo workspace, navigate to Settings → API, and copy your API key. Store it as the environment variable ABLO_API_KEY so it stays out of your source code.
3

Create your first deck

Import Decks, initialise the client, and call ablo.decks.create. The SDK returns the new deck object — including its id — as soon as the API confirms the operation.
import { Decks } from '@abloatai/decks';

const ablo = new Decks(process.env.ABLO_API_KEY);

const deck = await ablo.decks.create({
  title: 'My First Deck',
  slides: [
    {
      title: 'Hello, Ablo',
      layers: [
        {
          type: 'text',
          text: 'Built from code.',
          style: 'h1',
          at: { x: 160, y: 120, w: 1600, h: 160 },
        },
      ],
    },
  ],
});

console.log('Created deck:', deck.id);