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

# Getting Started

> Quick start guide for JoggAI API

## Welcome to JoggAI API

The JoggAI API unlocks new possibilities, enabling you to effortlessly create dynamic avatar videos and seamlessly integrate JoggAI's advanced AI features into your product.

***

## Create Account

Sign up to create an account at [https://app.jogg.ai/register](https://app.jogg.ai/register) to access JoggAI's API capabilities.

***

## Get API Key

1. Click your avatar in the dashboard
2. Click 'API'

<img src="https://mintcdn.com/joggai/2WfnmgQwwQkeXdv3/images/img01.png?fit=max&auto=format&n=2WfnmgQwwQkeXdv3&q=85&s=45a94f04793499c54afa854e473208ff" alt="" width="3006" height="1648" data-path="images/img01.png" />

3. Copy your API Key

<img src="https://mintcdn.com/joggai/2WfnmgQwwQkeXdv3/images/APIKey.png?fit=max&auto=format&n=2WfnmgQwwQkeXdv3&q=85&s=255ab40e7506cfffe6283ad25e08cb75" alt="" width="868" height="322" data-path="images/APIKey.png" />

***

## API Credit Consumption

<Tip>
  **Video Generation:**

  * 1 credit per 2 minutes of video
  * Less than 2 minutes = 1 credit

  **Preview Video:**

  * 0.5 credit per 2 minutes
  * Less than 2 minutes = 0.5 credit

  **AI Scripts:**

  * 0.2 credit per API call

  **Image Generation:**

  * 0.05 credit per image
  * 0.2 credit per call (4 images)

  **Motion Generation:**

  * Motion 1.0: 2 credits
  * Motion 2.0: 2 credits
  * Motion 2.0 Pro: 3 credits
</Tip>

***

## Best Practices

<CardGroup cols={2}>
  <Card title="Check Response Codes" icon="check">
    Always verify the `code` field in responses
  </Card>

  <Card title="Implement Retry Logic" icon="rotate">
    Use exponential backoff for retries
  </Card>

  <Card title="Cache Responses" icon="database">
    Cache frequently accessed data
  </Card>

  <Card title="Use Webhooks" icon="webhook">
    Avoid polling, use webhooks
  </Card>
</CardGroup>

***

## Need Help?

For questions or issues:

* **Email:** [support@jogg.ai](mailto:support@jogg.ai)
* **Dashboard:** [app.jogg.ai](https://app.jogg.ai)
* **Documentation:** Explore [Error Handling](/api-reference/v2/QuickStart/ErrorHandling) and [Rate Limits](/api-reference/v2/QuickStart/RateLimits)

<Note>
  Include your user ID (not API key) when contacting support.
</Note>
