VoyageAI 0.0.0-dev.57
This is a prerelease version of VoyageAI.
dotnet add package VoyageAI --version 0.0.0-dev.57
NuGet\Install-Package VoyageAI -Version 0.0.0-dev.57
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="VoyageAI" Version="0.0.0-dev.57" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="VoyageAI" Version="0.0.0-dev.57" />
<PackageReference Include="VoyageAI" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add VoyageAI --version 0.0.0-dev.57
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: VoyageAI, 0.0.0-dev.57"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package VoyageAI@0.0.0-dev.57
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=VoyageAI&version=0.0.0-dev.57&prerelease
#tool nuget:?package=VoyageAI&version=0.0.0-dev.57&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
VoyageAI
Features 🔥
- Fully generated C# SDK based on official Voyage AI 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.
- Microsoft.Extensions.AI
IEmbeddingGeneratorsupport
Usage
using VoyageAI;
using var client = new VoyageAIClient(apiKey);
Microsoft.Extensions.AI
The SDK implements IEmbeddingGenerator:
using VoyageAI;
using Microsoft.Extensions.AI;
IEmbeddingGenerator<string, Embedding<float>> generator = new VoyageAIClient(apiKey);
var embeddings = await generator.GenerateAsync(
["Hello, world!"],
new EmbeddingGenerationOptions { ModelId = "voyage-3" });
Console.WriteLine($"Embedding dimension: {embeddings[0].Vector.Length}");
Embedding Generator Generate Async
using var client = GetAuthorizedApi();
IEmbeddingGenerator<string, Embedding<float>> generator = client;
var embeddings = await generator.GenerateAsync(
["Hello, world!"],
new EmbeddingGenerationOptions
{
ModelId = "voyage-3-lite",
});
Embedding Generator Get Service Returns Metadata
using var client = new VoyageAIClient("test-api-key");
IEmbeddingGenerator<string, Embedding<float>> generator = client;
var metadata = generator.GetService<EmbeddingGeneratorMetadata>();
Embedding Generator Get Service Returns Self
using var client = new VoyageAIClient("test-api-key");
IEmbeddingGenerator<string, Embedding<float>> generator = client;
var self = generator.GetService<VoyageAIClient>();
Embeddings
using var client = GetAuthorizedApi();
var response = await client.EmbeddingsApiAsync(
input: "Hello, world!",
model: "voyage-3-lite");
Multimodal Embeddings Text And Image Url
using var client = GetAuthorizedApi();
var inputs = new List<MultimodalInput>
{
new(
MultimodalContent.Text("This is a banana."),
MultimodalContent.ImageUrl("https://raw.githubusercontent.com/voyage-ai/voyage-multimodal-3/refs/heads/main/images/banana.jpg")),
};
var response = await client.MultimodalEmbeddingsAsync(
inputs: inputs,
model: "voyage-multimodal-3");
Multimodal Embeddings Text Only
using var client = GetAuthorizedApi();
var inputs = new List<MultimodalInput>
{
new(MultimodalContent.Text("Hello, world!")),
};
var response = await client.MultimodalEmbeddingsAsync(
inputs: inputs,
model: "voyage-multimodal-3");
Reranking
using var client = GetAuthorizedApi();
var response = await client.RerankerApiAsync(
query: "What is the capital of France?",
documents: [
"Paris is the capital of France.",
"Berlin is the capital of Germany.",
"London is the capital of the United Kingdom.",
],
model: "rerank-2-lite",
topK: 2,
returnDocuments: true);
Support
Priority place for bugs: https://github.com/tryAGI/VoyageAI/issues Priority place for ideas and general questions: https://github.com/tryAGI/VoyageAI/discussions Discord: https://discord.gg/Ca2xhfBf3v
Acknowledgments
This project is supported by JetBrains through the Open Source Support Program.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Microsoft.Extensions.AI.Abstractions (>= 10.4.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.0.0-dev.57 | 54 | 4/1/2026 |
| 0.0.0-dev.56 | 51 | 3/29/2026 |
| 0.0.0-dev.55 | 45 | 3/29/2026 |
| 0.0.0-dev.54 | 46 | 3/29/2026 |
| 0.0.0-dev.51 | 67 | 3/28/2026 |
| 0.0.0-dev.50 | 74 | 3/28/2026 |
| 0.0.0-dev.48 | 117 | 3/28/2026 |
| 0.0.0-dev.47 | 134 | 3/28/2026 |
| 0.0.0-dev.45 | 46 | 3/28/2026 |
| 0.0.0-dev.44 | 47 | 3/27/2026 |
| 0.0.0-dev.42 | 43 | 3/27/2026 |
| 0.0.0-dev.39 | 43 | 3/20/2026 |
| 0.0.0-dev.36 | 44 | 3/20/2026 |
| 0.0.0-dev.34 | 41 | 3/20/2026 |
| 0.0.0-dev.33 | 44 | 3/20/2026 |
| 0.0.0-dev.31 | 46 | 3/19/2026 |
| 0.0.0-dev.29 | 39 | 3/19/2026 |
| 0.0.0-dev.28 | 40 | 3/19/2026 |
| 0.0.0-dev.27 | 43 | 3/19/2026 |
| 0.0.0-dev.26 | 43 | 3/19/2026 |
Loading failed