Skip to content

LlamaParse

Nuget package dotnet License: MIT Discord

Features 🔥

  • Fully generated C# SDK based on official LlamaParse OpenAPI specification using AutoSDK
  • Covers the current LlamaParse Platform surface: Parse, Extract, Classify, Split, Sheets, Index, Retrieval, files, directories, batches, usage metrics, and webhook configuration APIs.
  • Supports current Parse options from the official API, including user metadata, cost optimizer settings, saved configuration IDs, webhook configuration IDs, and per-request usage tags.
  • Retrieval Harness endpoints are generated for retrieve, find files, grep files, and read files workflows.
  • 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.
  • Targets .NET 10.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
using LlamaParse;

using var client = new LlamaParseClient(apiKey);

var requestOptions = LlamaParseRequestOptions.CreateWithUsageTags("team:search", "env:prod");
var job = await client.V2.ParseFileApiV2ParsePostAsync(
    tier: "agentic",
    version: "latest",
    sourceUrl: "https://example.com/document.pdf",
    userMetadata: new Dictionary<string, string>
    {
        ["customer"] = "acme",
    },
    requestOptions: requestOptions);

Generate

Basic example showing how to create a client and make a request.

1
using var client = new LlamaParseClient(apiKey);

Support

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

Acknowledgments

JetBrains logo

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