> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trypekto.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Limits and credits

> Rate limits, sizes and what each call costs.

## Rate limits

| Token | Limit |
| - | - |
| API key | 60 requests a minute per key |
| Connected app (Sign in with Pekto) | 120 requests a minute per app and user |

Over the limit you get `429 rate_limit_exceeded` with `Retry-After: 60`. Wait and retry; generation calls that hit the limit aren't charged.

## Credits

| Action | Cost |
| - | - |
| Generate a presentation or carousel (`POST /presentations`, `create_presentation`) | 2.5 credits |
| Everything else (reading, editing, scheduling, listing) | Free |

Credits are reserved when generation starts and refunded if it fails before the project is saved. Check your balance with `GET /account`. When the balance is too low you get `402 insufficient_credits` with your balance, the cost and an upgrade link.

## Sizes

| What | Limit |
| - | - |
| Slides | Presentations 3–20, carousels 3–30 |
| `content` (source text) | 36,000 characters |
| `topic` | 4,000 characters |
| `instructions` | 12,000 characters |
| Request body | 100 KB (5 MB for project content updates) |
| Active API keys | 20 per account |
| `media_urls` | 20 per post |
| Caption | 3,000 characters |

## What the API doesn't do yet

* Upload files (PDFs, images) for generation: paste the text into `content` instead
* Fill picture slots with stock or AI images: carousels keep the theme's sample photos, which you can swap in the editor
* Export PDF, PPTX or PNG: export from the editor
* Connect social accounts: connect them in the Pekto app


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.