> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markpdf.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Installation

> Install and configure the official Bun SDK for Markpdf.

# Installation

Use `@markpdf/bun` when your app runs on Bun and you want file uploads that work naturally with Bun's runtime.

## Install

```bash theme={null}
bun add @markpdf/bun
```

## Configure the API key

Set the key in your environment:

```bash theme={null}
MARKPDF_API_KEY=YOUR_API_KEY
```

Then create the client:

```ts theme={null}
import { MarkpdfClient } from "@markpdf/bun";

const client = new MarkpdfClient();
const markdown = await client.convertFile("report.pdf", { mode: "fast" });
```

## API endpoint

The production API endpoint is:

```text theme={null}
https://api.markpdf.tech
```

## Next step

Continue with [Quickstart](/docs/sdks/bun/quickstart).
