Skip to main content
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
  • GenerateVideoRequest
  • GenerateTextToSpeechRequest
  • GenerateImageRequest
  • GenerateIsolatedAudioRequest
  • GenerateSpeechToSpeechRequest
  • GenerateVoiceCloneRequest
generated_video_inputs
object
required

Inputs for generating the video.

type
string
default:video
Allowed value: "video"
ai_model_id
string<uuid>
default:d1dd37a3-e39a-4854-a298-6510289f9cf2

ID of the model to use for the generation.

start_keyframe_id
string<uuid> | null

The id of the Image asset to use as the start keyframe.

audio_id
string<uuid> | null

The id of the Audio asset to use.

Response

Successful Response

  • GenerateVideoResponse
  • GenerateTextToSpeechResponse
  • GenerateImageResponse
  • GenerateImageToImageResponse
  • GenerateIsolatedAudioResponse
  • GenerateSpeechToSpeechResponse
  • GenerateVoiceCloneResponse
generated_video_inputs
object
required

Inputs for generating the video.

id
string<uuid>
required

The id of the generation created.

asset_id
string<uuid>
required

The id of the video asset resulting from the generation.

type
string
default:video
Allowed value: "video"
ai_model_id
string<uuid>
default:d1dd37a3-e39a-4854-a298-6510289f9cf2

ID of the model to use for the generation.

start_keyframe_id
string<uuid> | null

The id of the Image asset to use as the start keyframe.

audio_id
string<uuid> | null

The id of the Audio asset to use.

I