For the complete documentation index, see llms.txt. This page is also available as Markdown.

Client Configuration

Reference documentation on preparing and configuring the Mindee client.

This is reference documentation.

Code samples shown are only examples, and will not work as-is. You'll need to copy-paste and modify according to your requirements.

Looking full code samples?

You can also use the "Ask" button at the top of any page in the documentation.

Before You Start

You'll need to have one of the official Mindee SDKs installed.

You'll also need to use one of your API keys and have at least one Model configured.

The client works for all model types.

Initialize the Mindee Client

Before sending any files to the Mindee servers for processing, you'll need to initialize your client.

This should be the first step in your code. It will determine which organization is used to make the calls.

You should reuse the same client instance for all calls of the same organization.

The client instance is thread-safe in applicable languages.

First import the needed classes:

from mindee.v2 import Client

For the API key, you can pass it directly to the client. This is useful for quick testing.

api_key = "MY_API_KEY"

mindee_client = Client(api_key)

Instead of passing the key directly, you can also set the following environment variable:

MINDEE_V2_API_KEY

This is recommended for production use. In this way there is no need to pass the api_key when initializing the client.

mindee_client = Client()

Last updated

Was this helpful?