Skip to content

DId

Nuget package dotnet License: MIT Discord

Features

  • Fully generated C# SDK based on the D-ID API using AutoSDK
  • Talking avatar videos, AI agents, streaming conversations, and animations
  • Same day update to support new features
  • Updated and supported automatically if there are no breaking changes
  • All modern .NET features - nullability, trimming, NativeAOT, etc.

Usage

1
2
3
using DId;

using var client = new DIdClient(apiKey);

Credits

Get the account's credit balance information.

1
2
3
4
5
// Retrieve the current credit balance for your D-ID account.
// The response includes the total credits allocated and remaining credits.
using var client = new DIdClient(apiKey);

var response = await client.Credits.GetCreditsAsync();

Voices

List available text-to-speech voices.

1
2
3
4
5
6
7
// List all available TTS voices for generating talking avatar videos.
// Each voice includes metadata such as provider, gender, language, and access level.
using var client = new DIdClient(apiKey);

var voices = await client.Voices.VoicesAsync();

var first = voices[0];

Agents

List AI agents configured for your account.

1
2
3
4
5
6
// List all AI agents associated with your account.
// Agents are interactive avatars powered by LLMs that can hold conversations.
using var client = new DIdClient(apiKey);

var response = await client.Agents.ListMyAgentsAsync(
    limit: 10);

Presenters

List available avatar presenters.

1
2
3
4
5
6
// List all available presenters (avatar source images) for generating clips.
// Presenters represent the visual faces used in premium avatar videos.
using var client = new DIdClient(apiKey);

var response = await client.ClipsPremiumAvatars.GetPresentersAsync(
    limit: 10);

Talks

List talks (standard avatar videos).

1
2
3
4
5
6
// List all talks (standard avatar videos) created in your account.
// Talks are generated videos where a photo-based avatar speaks provided text or audio.
using var client = new DIdClient(apiKey);

var response = await client.TalksStandardAvatars.GetTalksAsync(
    limit: 10);

Clips

List clips (premium avatar videos).

1
2
3
4
5
6
// List all clips (premium avatar videos) created in your account.
// Clips use premium presenters with higher-quality rendering compared to standard talks.
using var client = new DIdClient(apiKey);

var response = await client.ClipsPremiumAvatars.GetClipsAsync(
    limit: 10);

Support

Priority place for bugs: https://github.com/tryAGI/DId/issues
Priority place for ideas and general questions: https://github.com/tryAGI/DId/discussions
Discord: https://discord.gg/Ca2xhfBf3v

Acknowledgments

JetBrains logo

This project is supported by JetBrains through the Open Source Support Program.