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

# Dafty API

> Generate on-brand image and video from a simple, opinionated REST API.

The Dafty API turns a prompt into on-brand images and video. Generation is asynchronous: you create
a **job**, then poll it (or long-poll with `?wait=true`) until it returns the result.

Authenticate with an API key via the `x-api-key` header (or `Authorization: Bearer`), create from
`/api-keys`.

<CardGroup cols={2}>
  <Card title="Quickstart" icon="bolt" href="/quickstart">
    Auth → generate → poll, in three calls.
  </Card>

  <Card title="Authentication" icon="key" href="/authentication">
    API keys and how to send them.
  </Card>

  <Card title="Video" icon="film" href="/videos">
    Animate an image, or transition between two frames.
  </Card>

  <Card title="Polling & wait" icon="clock" href="/polling-and-wait">
    Wait for results efficiently - no tight loops.
  </Card>

  <Card title="Errors & rate limits" icon="triangle-exclamation" href="/errors">
    Error shapes, codes, and backoff.
  </Card>
</CardGroup>

The full endpoint reference (with a live "Try it" playground) is in the **API reference** section.
