# D-ID

[D-ID](https://www.d-id.com) is a Generative AI service that generates talking avatars. You can select one of the
available avatars and provide a script or text. D-ID will then generate a video of the avatar speaking the text.

The D-ID provider allows you to generate assets using the [Create API](../../create-api) and includes the following
services:

- **Text to Avatar**: Generate a talking avatar who will narrate the provided text.

### Setup

[Sign up](http://studio.d-id.com/) for a trial account with D-ID to get started and then go to the [account
settings](https://studio.d-id.com/account-settings) page to generate an API key.

### Adding credentials

Login to the dashboard and navigate to the [integrations](https://dashboard.shotstack.io/integrations) page, find the
D-ID integration under Generative AI and click [configure](https://dashboard.shotstack.io/integrations/d-id).

Enter the D-ID API key (token) as shown below. You can add different keys for each Shotstack environment; sandbox and v1
(production).

![D-ID credentials](/img/d-id-credentials.png)

## Services

The D-ID provider includes is a single service:

### Text to avatar

Generate a talking avatar video using a provided script.

Using the Create API the following payload can be used to generate a video file:

```json
{
    "provider": "d-id",
    "options": {
        "type": "text-to-avatar",
        "avatar": "jack",
        "text": "Hi, I'm Jack and I'm a talking avatar generated by D-ID using the Shotstack Create API",
        "background": "#000000"
    }
}
```

This will generate an mp4 video file using the `jack` avatar and the text provided. The background has been set to
`#000000` and is optional. For the full list of avatars refer to the [D-ID
options](https://shotstack.io/docs/api/#tocs_didtexttoavataroptions) in the API reference documentation.
