POST
/
generations
Generate Asset
curl --request POST \
  --url https://api.hedra.com/web-app/public/generations \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "type": "video",
  "ai_model_id": "d1dd37a3-e39a-4854-a298-6510289f9cf2",
  "start_keyframe_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "audio_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "generated_video_inputs": {
    "text_prompt": "<string>",
    "resolution": "<string>",
    "aspect_ratio": "<string>",
    "duration_ms": 123,
    "bounding_box_target": [
      "<any>"
    ]
  }
}'
{
  "type": "video",
  "ai_model_id": "d1dd37a3-e39a-4854-a298-6510289f9cf2",
  "start_keyframe_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "audio_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "generated_video_inputs": {
    "text_prompt": "<string>",
    "resolution": "<string>",
    "aspect_ratio": "<string>",
    "duration_ms": 123,
    "bounding_box_target": [
      "<any>"
    ]
  },
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

X-API-Key
string
header
required

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.