Zum Inhalt springen
DeutschlandGPT

Create avatar (from photo)

Creates a custom HeyGen avatar from an uploaded image (talking photo). The returned avatar_id is scoped to your workspace — only your workspace may use it in /v2/videos/avatar-generations. Submit as multipart/form-data.

POSThttps://api.deutschlandgpt.de/v2/videos/avatars

Example request

curl https://api.deutschlandgpt.de/v2/videos/avatars \
  -X POST \
  -H "Authorization: Bearer $DGPT_API_KEY"

Response

200application/json
{
  "id": "00000000-0000-0000-0000-000000000000",
  "object": "avatar",
  "avatar_id": "string",
  "name": "string",
  "preview_url": "string",
  "created": 0
}

The created avatar.

idstring<uuid>

Registry id (pass to DELETE /v2/videos/avatars/{id}).

objectstring
avatar_idstring

HeyGen avatar id — pass as avatar_id to /v2/videos/avatar-generations.

namestring
preview_urlstring | null
createdinteger

Response codes

200

The created avatar.

object
400

Missing name/file or provider error.

401

Unauthorized

503

HeyGen is not configured.

Was this page helpful?