> ## 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 Java SDK for Markpdf.

# Installation

Use `tech.markpdf:markpdf-sdk` in Java 17+ applications.

## Install

<CodeGroup>
  ```xml Maven theme={null}
  <dependency>
    <groupId>tech.markpdf</groupId>
    <artifactId>markpdf-sdk</artifactId>
    <version>0.1.0</version>
  </dependency>
  ```

  ```groovy Gradle (Groovy) theme={null}
  implementation 'tech.markpdf:markpdf-sdk:0.1.0'
  ```

  ```kotlin Gradle (Kotlin DSL) theme={null}
  implementation("tech.markpdf:markpdf-sdk:0.1.0")
  ```
</CodeGroup>

## Configure the API key

Set the key in your environment:

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

Then create the client:

```java theme={null}
MarkpdfClient client = new MarkpdfClient(System.getenv("MARKPDF_API_KEY"));
```

## API endpoint

The production API endpoint is:

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

## Next step

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