> ## 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 Dart and Flutter SDK for Markpdf.

# Installation

Use `markpdf` for Flutter apps, Dart CLIs, and Dart server code.

## Install

<CodeGroup>
  ```bash Flutter theme={null}
  flutter pub add markpdf
  ```

  ```bash Dart theme={null}
  dart pub add markpdf
  ```
</CodeGroup>

## Import

```dart theme={null}
import 'package:markpdf/markpdf.dart';
```

## Configure the client

```dart theme={null}
final client = MarkpdfClient(apiKey: 'YOUR_API_KEY');
```

<Warning>
  Keys embedded in Flutter mobile or web apps can be extracted. For public apps, call your own backend and keep the private API key server-side.
</Warning>

## API endpoint

The production API endpoint is:

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

## Next step

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