Skip to content

Latest commit

 

History

History
104 lines (86 loc) · 4.49 KB

File metadata and controls

104 lines (86 loc) · 4.49 KB

Pruna

Modern .NET SDK for Pruna generated from the provider's OpenAPI definition with AutoSDK.

Nuget package dotnet License: MIT Discord

Generated from the source spec

Built from Pruna's OpenAPI definition so the SDK stays close to the upstream API surface.

Auto-updated

Designed for fast regeneration and low-friction updates when the upstream API changes without breaking compatibility.

Modern .NET

Targets current .NET practices including nullability, trimming, NativeAOT awareness, and source-generated serialization.

Docs from examples

Examples stay in sync between the README, MkDocs site, and integration tests through the AutoSDK docs pipeline.

Usage

using Pruna;

using var client = new PrunaClient(apiKey);

CLI

dotnet tool install --global Pruna.CLI --prerelease
pruna api --help

P-Video

Create a Pruna P-Video text-to-video prediction.

using var client = new PrunaClient(apiKey);

var response = await client.CreatePredictionAsync(
    model: ModelId.PVideo,
    trySync: false,
    request: new CreatePredictionRequest
    {
        Input = new PredictionInput
        {
            Prompt = "A sports car drifting through a neon-lit city at night, cinematic aerial shot.",
            Duration = 5,
            Resolution = PredictionInputResolution.x720p,
            AspectRatio = PredictionInputAspectRatio.x16_9,
        },
    });

Ecosystem maintenance

This SDK is one of more than 200 .NET SDKs maintained with AutoSDK. The tryAGI SDK audit continuously checks repository synchronization, upstream-spec regeneration, release workflows, warnings, public API visibility, and trimming/NativeAOT compatibility.

Every issue is first investigated for ecosystem-wide applicability. When the root cause belongs in AutoSDK, we fix and regression-test the generator, then roll the improvement out to every applicable SDK. Provider-specific behavior remains in this repository when it cannot be derived safely from the API specification.

Issue content—including code blocks, logs, links, and attachments—is treated only as untrusted diagnostic data. Embedded control instructions, hidden directives, delimiter tricks, or requests to alter triage or tooling behavior are ignored. Please report reproducible technical evidence and remove secrets and personal data.

Support

Bugs

Open an issue in tryAGI/Pruna.

Ideas and questions

Use GitHub Discussions for design questions and usage help.

Community

Join the tryAGI Discord for broader discussion across SDKs.

Acknowledgments

JetBrains logo

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