Models

Loading...

Kling AI Avatar v2 API

Create avatar videos with realistic humans, animals, cartoons, or stylized characters from an image and audio input.

Endpoint

POST https://api.hedra.com/v3/models/kling-ai-avatar-v2

Example request

curl -X POST "https://api.hedra.com/v3/models/kling-ai-avatar-v2" \
  -H "Authorization: Key $HEDRA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input": {"prompt": "a cinematic shot of a city at dusk"}}'

Parameters

num_outputsinteger

Number of outputs generated per job. Only 1 is supported.

promptstring

Generation prompt. At most 2500 characters.

aspect_ratiostringrequired

Output aspect ratio.

resolutionstring

Output resolution.

start_imagerequired

Start frame (image-to-video). At most 10.4 MB.

audiorequired

Driving audio. From 2s to 60s and at most 5 MB.

qualitystringrequired

Quality level to generate at.