# Getting started

### Generating an API Key

To use our API, you need to generate an API key. Follow these steps to create your key:

1. [**Log in**](https://divmagic.com/login) to your account
2. Navigate to the Dashboard
3. On the side menu, click on API section
4.

```
<div align="left"><figure><img src="https://1321172380-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6URweRGNKNYKXJxvg9E6%2Fuploads%2FadGENet3XoVghCTyjW6j%2FScreenshot%202024-09-09%20at%2020.19.18.png?alt=media&#x26;token=1eedcbee-0ef2-4be9-8b6e-805623aa79cd" alt="" width="251"><figcaption></figcaption></figure></div>
```

5. Click on "Generate API Key" button

### Get credits

If your API Status is *<mark style="color:red;">Inactive</mark>* or you ran out of credits, you can purchase credits from [**this link**](https://buy.stripe.com/6oEeWScPn1oT1ZS4gw) or click "Get now" button on the API section
