Skip to content

Synthesia

Nuget package dotnet License: MIT Discord

Features 🔥

  • Fully generated C# SDK based on official Synthesia OpenAPI specification using AutoSDK
  • 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.
  • Support .Net Framework/.Net Standard 2.0

Usage

1
2
3
using Synthesia;

using var client = new SynthesiaClient(apiKey);

Generate

Basic example showing how to create a client and make a request.

1
using var client = new SynthesiaClient(apiKey);

Templates

Shows how to list available video templates in your Synthesia workspace.

1
2
3
4
5
6
using var client = new SynthesiaClient(apiKey);

// List all available video templates in your Synthesia STUDIO workspace.
// Templates define reusable video layouts with customizable variables.
var response = await client.Templates.GetTemplatesAsync(
    limit: 10);

Videos

Shows how to list videos in your Synthesia workspace.

1
2
3
4
5
6
using var client = new SynthesiaClient(apiKey);

// List all videos created via the API or STUDIO in your workspace.
// Supports pagination with limit and offset parameters.
var response = await client.Videos.GetVideosAsync(
    limit: 10);

Languages

Shows how to get supported languages for video translations.

1
2
3
4
5
using var client = new SynthesiaClient(apiKey);

// Retrieve the list of supported languages for video translations.
// Use these language codes when creating translated versions of your videos.
var response = await client.Translations.GetTranslateLanguagesAsync();

Webhooks

Shows how to list webhooks configured in your Synthesia account.

1
2
3
4
5
6
using var client = new SynthesiaClient(apiKey);

// List all currently configured webhooks in your Synthesia account.
// Webhooks notify your application when video generation events occur.
var response = await client.Webhooks.GetWebhooksAsync(
    limit: 10);

Audit Logs

Shows how to query audit log events for your workspace.

1
2
3
4
5
6
7
using var client = new SynthesiaClient(apiKey);

// Query paginated audit log events for a workspace.
// Supports filtering by date range, actions, actor IDs, and target ID.
// Exactly one of workspaceId or organizationId must be provided.
var response = await client.AuditLogs.GetAuditLogEventsAsync(
    limit: 10);

Support

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

Acknowledgments

JetBrains logo

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