---
title: "Create a Video"
method: POST
path: "/expressives"
tags: ["V4 Avatars"]
---

# Create a Video

`POST /expressives`

## Headers

- `x-api-key-external` string

## Request body

- FlattenPickExpressiveVideoAvatarIdOrSentimentIdOrNameOrConfigOrBackgroundOrUserDataOrPersistOrResultUrlOrWebhookOrInternalCallConfigAndScriptScript — Flattens intersection types into a single object type. This is useful for improving validation error messages and type display.
  - `name` string — The name of the video
  - `avatar_id` string, required — The id of the avatar of the video
  - `sentiment_id` string — The chosen sentiment id of the video
  - `config` ExpressiveVideoConfig
    - `logo` union
      - Logo
        - `url` string, required — https url to an ARGB jpg/png image, a default logo is used otherwise
        - `position` integer[], required — position of the logo in pixels from the top left corner (w,h) negative values are subtracted from last pixel
      - boolean
    - `result_format` 'mp4' | 'mov' | 'webm' — The file format of the result. If result_url is provided, result_format must match the format of the result_url.
    - `output_resolution` 480 | 720 | 1080 — The output resolution of the video (height in pixels, 16:9 aspect ratio). Allowed values: 480 (SD), 720 (HD), 1080 (Full HD).
  - `background` union
    - ColorBackground
      - `type` 'color', required
      - `value` string, required
    - ExpressiveImageBackground
      - `type` 'image_url', required
      - `value` string, required
    - TransparentBackground
      - `type` 'transparent', required
      - `value` true, required
  - `user_data` string
  - `persist` boolean
  - `result_url` string — The result url of the video. Cannot be provided together with config.result_format.
  - `webhook` string
  - `script` union, required
    - TextScript3
      - `type` 'text', required — The type of the script.
      - `subtitles` boolean — Should subtitles be created.
      - `provider` union
        - MicrosoftTtsProvider
          - `type` 'microsoft', required
          - `voice_id` string, required — Voice ID selected from the list of available voices.</br>Retrieve available options from the GET /voices endpoint.
          - `voice_config` VoiceConfigMicrosoft
            - `style` string — The style of the voice. Available styles change between voices.
            - `rate` string — The speed of the voice. The value is relative to 1, 0.5 being half speed, 2 being twice as fast, etc. Another option is a constant value from x-slow/slow/medium/fast/x-fast.
            - `pitch` string — The pitch of the voice. Value could be an absolute value in Hz (including units), a relative value in Hz or st(semitones) or a constant value from x-low/low/medium/high/x-high.
          - `language` string — Voice customization options. To save the language of the selected agent voice
        - ElevenlabsTtsProvider
          - `type` 'elevenlabs', required
          - `voice_id` string — Voice ID selected from the list of available voices.</br>Retrieve available options from the GET /voices endpoint.
          - `voice_config` VoiceConfigElevenlabs
            - `stability` number, double — How stable the voice is and the randomness of each new generation. If ElevenLabs V3 model is selected, must be one of these values: 0.0, 0.5, 1.0 (0.0 = Creative, 0.5 = Natural, 1.0 = Robust).
            - `similarity_boost` number, double — The similarity slider dictates how closely the AI should adhere to the original voice when attempting to replicate it.
            - `rate` string — The speed of the voice. The value is relative to 1. Valid range is 0.7 to 1.2.
            - `style` string — Determines the style exaggeration of the voice. This setting attempts to amplify the style of the original speaker. It does consume additional computational resources and might increase latency if set to anything other than 0. Valid range is 0 to 1.
            - `use_speaker_boost` boolean — boosts the similarity to the original speaker. Using this setting requires a slightly higher computational load, which in turn increases latency.
            - `apply_language_text_normalization` boolean — Controls language text normalization. This helps with proper pronunciation of text in some supported languages. WARNING: This parameter can heavily increase the latency of the request. Currently only supported for Japanese.
            - `apply_text_normalization` 'auto' | 'on' | 'off' — Controls text normalization on the ElevenLabs side (expanding numbers, abbreviations and symbols). 'auto' lets ElevenLabs decide, 'on' forces normalization, 'off' disables it. Defaults to 'off' when not provided.
          - `model_id` string — The model id from the list of available models. https://elevenlabs.io/docs/speech-synthesis/models.
          - `language` string — Voice customization options. To save the language of the selected voice
        - AmazonTtsProvider
          - `type` 'amazon', required
          - `voice_id` 'Amy' | 'Aria' | 'Ayanda' | 'Bianca' | 'Brian' | 'Camila' | 'Emma' | 'Gabrielle' | 'Ivy' | 'Joanna' | 'Joey' | 'Justin' | 'Kendra' | 'Kevin' | 'Kimberly' | 'Léa' | 'Lucia' | 'Lupe' | 'Matthew' | 'Olivia' | 'Salli' | 'Seoyeon' | 'Takumi' | 'Vicki', required
          - `language` string — Voice customization options. To save the language of the selected agent voice
        - GoogleTtsProvider
          - `type` 'google', required
          - `voice_id` string — Voice ID selected from the list of available voices.</br>Retrieve available options from the GET /voices endpoint.
        - AzureOpenAiTtsProvider
          - `voice_id` string, required — Voice ID selected from the list of available voices.</br>Retrieve available options from the GET /voices endpoint.
          - `voice_config` VoiceConfigMicrosoft
            - `style` string — The style of the voice. Available styles change between voices.
            - `rate` string — The speed of the voice. The value is relative to 1, 0.5 being half speed, 2 being twice as fast, etc. Another option is a constant value from x-slow/slow/medium/fast/x-fast.
            - `pitch` string — The pitch of the voice. Value could be an absolute value in Hz (including units), a relative value in Hz or st(semitones) or a constant value from x-low/low/medium/high/x-high.
          - `language` string — Voice customization options. To save the language of the selected agent voice
          - `type` 'azure-openai', required
      - `input` string — The input text that will be synthesized to an audio file. Note that each provider has its own limitations on the text length. Maximum 40K characters (10K excluding SSML tags).
      - `ssml` boolean — Is the text provided in ssml form.
      - `dictionary_id` string — Pronunciation dictionary ID for word/phrase substitutions before TTS.
    - AudioScript3
      - `type` 'audio', required — The type of the script.
      - `subtitles` boolean — Should subtitles be created.
      - `audio_url` string, required

## Response `201`

Created

- CreateExpressiveResponseDto — From T, pick a set of properties whose keys are in the union K
  - `id` string, required — The id of the expressive video
  - `status` 'created' | 'done' | 'error' | 'started' | 'rejected', required
  - `created_at` string, required — The date the video was created
  - `object` 'expressive', required

## Other responses

- `400` — BadRequestError | InvalidFileSizeError
- `401` — AuthorizationError
- `402` — InsufficientCreditsError

---

[API](https://skmtc.net/d-id/apis/realtime-endpoints.md) · [All operations](https://skmtc.net/d-id/apis/realtime-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/d-id/realtime-endpoints/versions/2f2425e1b6b6/schema)
