https://github.com/tryagi/runway
C# SDK based on Runway OpenAPI specification
https://github.com/tryagi/runway
ai autosdk csharp dotnet langchain langchain-dotnet netstandard openapi sdk
Last synced: 12 months ago
JSON representation
C# SDK based on Runway OpenAPI specification
- Host: GitHub
- URL: https://github.com/tryagi/runway
- Owner: tryAGI
- License: mit
- Created: 2024-10-17T00:46:03.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-10T15:33:50.000Z (12 months ago)
- Last Synced: 2025-04-11T04:52:47.295Z (12 months ago)
- Topics: ai, autosdk, csharp, dotnet, langchain, langchain-dotnet, netstandard, openapi, sdk
- Language: C#
- Homepage: https://tryagi.github.io/Runway/
- Size: 243 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Runway
[](https://www.nuget.org/packages/Runway/)
[](https://github.com/tryAGI/Runway/actions/workflows/dotnet.yml)
[](https://github.com/tryAGI/Runway/blob/main/LICENSE.txt)
[](https://discord.gg/Ca2xhfBf3v)
## Features 🔥
- Fully generated C# SDK based on [official Runway OpenAPI specification](https://raw.githubusercontent.com/Runway/assemblyai-api-spec/main/openapi.yml) using [AutoSDK](https://github.com/HavenDV/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
```csharp
using Runway;
using var client = new RunwayClient(apiKey);
var response = await client.CreateVideoFromImageAsync(
xRunwayVersion: CreateVideoFromImageXRunwayVersion.x20240913,
promptImage: "https://img.freepik.com/free-photo/beautiful-woman-with-long-blond-hair-looking-camera-outdoors-generated-by-artificial-intelligence_188544-240170.jpg",
seed: 999999999,
model: CreateVideoFromImageRequestModel.Gen3aTurbo,
promptText: "The girl smiles a little",
watermark: false,
duration: 5,
ratio: CreateVideoFromImageRequestRatio.x16_9);
response.Id.Should().NotBe(default(Guid));
GetTaskDetailResponse taskDetail;
do
{
taskDetail = await client.GetTaskDetailAsync(GetTaskDetailXRunwayVersion.x20240913, response.Id);
Console.WriteLine($"Progress: {taskDetail.Progress}");
await Task.Delay(TimeSpan.FromSeconds(10));
}
while (taskDetail.Status != GetTaskDetailResponseStatus.FAILED &&
taskDetail.Status != GetTaskDetailResponseStatus.SUCCEEDED &&
taskDetail.Status != GetTaskDetailResponseStatus.CANCELLED);
Console.WriteLine($"Task ID: {taskDetail.Id}");
Console.WriteLine($"Task Status: {taskDetail.Status}");
Console.WriteLine($"CreatedAt: {taskDetail.CreatedAt}");
Console.WriteLine($"Failure: {taskDetail.Failure}");
Console.WriteLine($"FailureCode: {taskDetail.FailureCode}");
Console.WriteLine($"Progress: {taskDetail.Progress}");
foreach (var output in taskDetail.Output ?? [])
{
Console.WriteLine($"Video URL: {output}");
}
```
## Support
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
## Acknowledgments

This project is supported by JetBrains through the [Open Source Support Program](https://jb.gg/OpenSourceSupport).

This project is supported by CodeRabbit through the [Open Source Support Program](https://github.com/marketplace/coderabbitai).