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

# Introduction

> Welcome to the Distylia API documentation

## Overview

The Distylia API enables you to generate engaging social media content from text or PDF documents. Create single images, carousels, or video reels optimized for platforms like Instagram, TikTok, and YouTube Shorts.

## Key Features

* **Content Generation**: Transform text or PDFs into social media content
* **Multiple Formats**: Create images, carousels (2-5 slides), or reels (15-180 seconds)
* **Visual Templates**: Choose from 7 different visual styles (infographic, screenshot, meme, minimal, magazine, neon, news)
* **Platform Optimization**: Content tailored for Instagram, TikTok, or YouTube Shorts
* **Video Captions**: Automatic caption generation for reels with customizable styling
* **Async Processing**: Jobs are processed asynchronously with status tracking

## Authentication

The API uses API key authentication. Include your API key in the `x-api-key` header:

```bash theme={null}
x-api-key: YOUR_API_KEY
```

You can generate and manage API keys from your dashboard.

## Base URL

```
https://api.distylia.com/api/v1
```

## Response Format

All API responses follow this structure:

```json theme={null}
{
  "success": true,
  "message": "Operation completed successfully",
  "data": {
    // Response data
  }
}
```

Error responses include an `error` field:

```json theme={null}
{
  "success": false,
  "error": "Error message"
}
```
