Skip to content

Authentication

The LlamaParse API uses Bearer token authentication.

Getting an API Key

  1. Sign up at cloud.llamaindex.ai
  2. Navigate to the API keys section
  3. Create a new API key

Client Initialization

1
2
3
4
using LlamaParse;

var client = new LlamaParseClient(
    apiKey: Environment.GetEnvironmentVariable("LLAMAPARSE_API_KEY")!);

Environment Variables

For integration tests, set the following environment variable:

1
export LLAMAPARSE_API_KEY=your-api-key-here