- 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 RequestVariant3
{
PromptImage = new AnyOf<AnyOf<string, string, string>?, IList<RequestVariant3PromptImageVariant2Item>>
{
Value1 = new AnyOf<string, string, string>
{
Value1 = "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 = RequestVariant3Ratio.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.IsValue4)
{
Console.WriteLine($"Progress: {taskDetail.Value4!.Progress}");
}
await Task.Delay(TimeSpan.FromSeconds(10));
}
while (!taskDetail.IsValue5 && !taskDetail.IsValue6 && !taskDetail.IsValue3);
if (taskDetail.IsValue6)
{
Console.WriteLine($"Task ID: {taskDetail.Value6!.Id}");
Console.WriteLine($"Task Status: {taskDetail.Value6.Status}");
Console.WriteLine($"CreatedAt: {taskDetail.Value6.CreatedAt}");
foreach (var output in taskDetail.Value6.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.
