D-ID
A digital human generation platform
A digital human generation platform
D-ID is an AI-based digital human generation platform developed by an Israeli startup. When you input a single still face image and text/audio, it generates a naturally speaking video. AI automatically generates lip-sync, facial expression animation, and head movements to make it look as if a real person is speaking.
D-ID started in 2017 with face de-identification technology and pivoted toward generative AI starting in 2022. The company name D-ID is short for "De-Identification". After the launch of Creative Reality Studio, it gained millions of monthly users, and it received $25 million in investment in its Series B in 2023.
The core technology is multimodal AI that combines face recognition, lip-sync generation, and facial expression synthesis. It analyzes the phonemes of the audio to match mouth shapes, and infers emotion to add facial expressions. Through the API, it can be combined with TTS in more than 100 languages, and voice recorded directly by the user can also be used.
In practice, it is used for educational lecture videos, marketing content, customer service avatars, news anchor generation, and more. Generating a 1-minute video costs about $0.05-0.10, and the API can handle hundreds of concurrent requests per minute. The enterprise plan supports custom avatar training.
import requests
import time
# D-ID API 키 설정
API_KEY = "your-api-key"
BASE_URL = "https://api.d-id.com"
headers = {
"Authorization": f"Basic {API_KEY}",
"Content-Type": "application/json"
}
# 토킹 헤드 비디오 생성
def create_talking_video(image_url, text, voice_id="en-US-JennyNeural"):
"""
이미지와 텍스트로 토킹 헤드 비디오 생성
"""
payload = {
"source_url": image_url,
"script": {
"type": "text",
"input": text,
"provider": {
"type": "microsoft",
"voice_id": voice_id
}
},
"config": {
"stitch": True, # 배경 포함
"result_format": "mp4"
}
}
response = requests.post(
f"{BASE_URL}/talks",
json=payload,
headers=headers
)
return response.json()["id"]
# 비디오 생성 상태 확인 및 다운로드
def get_video_result(talk_id, max_wait=120):
"""
비디오 생성 완료까지 대기 후 URL 반환
"""
for _ in range(max_wait // 5):
response = requests.get(
f"{BASE_URL}/talks/{talk_id}",
headers=headers
)
result = response.json()
if result["status"] == "done":
return result["result_url"]
elif result["status"] == "error":
raise Exception(f"생성 실패: {result.get('error')}")
time.sleep(5)
raise TimeoutError("비디오 생성 시간 초과")
# 사용 예시
if __name__ == "__main__":
# 얼굴 이미지 URL (512x512 권장)
image_url = "https://example.com/presenter.jpg"
# 발화할 텍스트
script = "안녕하세요, KAITRUST AI 백과사전입니다. 오늘은 D-ID 플랫폼에 대해 알아보겠습니다."
# 비디오 생성 요청
talk_id = create_talking_video(
image_url=image_url,
text=script,
voice_id="ko-KR-SunHiNeural" # 한국어 여성 음성
)
print(f"생성 요청 ID: {talk_id}")
# 결과 확인
video_url = get_video_result(talk_id)
print(f"비디오 URL: {video_url}")
"Shooting presenter videos in each country's language for a global campaign is very expensive. If we photograph one presenter's image with D-ID and generate 20 language versions with AI, we can cut production costs by 90%. However, we must include an AI video generation clause in the portrait rights contract beforehand."
"There's research showing that showing the instructor's face in online lectures increases concentration by 30%. With D-ID, instructor videos are generated automatically just by updating the script, so there's no need to reshoot every time. However, expressions can be monotonous, so try adjusting the emotion parameters."
"Using a photo of a real person without permission in a video generated with D-ID is a violation of portrait rights. Be sure to obtain the person's consent or use an AI-generated avatar. Also, deepfake-related regulations are being strengthened, so it is safer to include an 'AI-generated content' watermark in the generated video."
Using someone else's face without permission causes legal problems. When using a photo of a real person, be sure to obtain written consent, and in some countries, labeling AI-generated video is a legal obligation.
Even if an AI-generated video is 90% natural, subtle unnaturalness can make viewers uncomfortable. Produce clips of 30 seconds or less rather than long videos, and if possible, use a frontal image rather than a side-angle one.
High-quality video cannot be generated from low-resolution or poorly lit source images. Use an image with a minimum resolution of 512x512, a frontal face, and uniform lighting, and the face should take up at least 70% of the frame.