- Fully generated C# SDK based on official Runway 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
using Runway;
using var client = new RunwayClient(apiKey);
var response = await client.StartGenerating.CreateImageToVideoAsync(
xRunwayVersion: "2024-11-06",
request: new RequestGen3aTurbo
{
PromptImage = "https://img.freepik.com/free-photo/beautiful-woman-with-long-blond-hair-looking-camera-outdoors-generated-by-artificial-intelligence_188544-240170.jpg",
PromptText = "The girl smiles a little",
Seed = 999999999,
Model = "gen3a_turbo",
Duration = 5,
Ratio = RequestGen3aTurboRatio.x1280_768,
});
response.Id.Should().NotBe(default(Guid));
Response taskDetail;
do
{
taskDetail = await client.TaskManagement.GetTasksByIdAsync(
id: response.Id,
xRunwayVersion: "2024-11-06");
if (taskDetail.IsRunning)
{
Console.WriteLine($"Progress: {taskDetail.Running!.Progress}");
}
await Task.Delay(TimeSpan.FromSeconds(10));
}
while (!taskDetail.IsFailed && !taskDetail.IsSucceeded && !taskDetail.IsCancelled);
if (taskDetail.IsSucceeded)
{
Console.WriteLine($"Task ID: {taskDetail.Succeeded!.Id}");
Console.WriteLine($"Task Status: {taskDetail.Succeeded.Status}");
Console.WriteLine($"CreatedAt: {taskDetail.Succeeded.CreatedAt}");
foreach (var output in taskDetail.Succeeded.Output)
{
Console.WriteLine($"Video URL: {output}");
}
}Priority place for bugs: https://github.com/tryAGI/Runway/issues
Priority place for ideas and general questions: https://github.com/tryAGI/Runway/discussions
Discord: https://discord.gg/Ca2xhfBf3v
This project is supported by JetBrains through the Open Source Support Program.
This project is supported by CodeRabbit through the Open Source Support Program.
