Skip to content

tryAGI/Tripo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tripo

Nuget package dotnet License: MIT Discord

Features 🔥

  • Fully generated C# SDK based on official Tripo 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

using Tripo;

using var api = new TripoApi(apiKey);

SuccessTask response = await api.CreateTaskAsync(new CreateTaskRequestVariant1
{
    Type = CreateTaskRequestVariant1Type.TextToModel,
    Prompt = "Generate some girl face",
});

Console.WriteLine($"Code: {response.Code}");
Console.WriteLine($"TaskId: {response.Data.TaskId}");

await Task.Delay(TimeSpan.FromMinutes(1));

GetTaskResponse taskResponse = await api.GetTaskAsync(response.Data.TaskId);

Console.WriteLine($"Code: {taskResponse.Code}");
Console.WriteLine($"Status: {taskResponse.Data.Status}");
Console.WriteLine($"RenderedImage: {taskResponse.Data.Output.RenderedImage}");;
Console.WriteLine($"Model: {taskResponse.Data.Output.Model}");
Console.WriteLine($"PbrModel: {taskResponse.Data.Output.PbrModel}");
Console.WriteLine($"BaseModel: {taskResponse.Data.Output.BaseModel}");

Result

Support

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

Acknowledgments

JetBrains logo

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

CodeRabbit logo

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