Client Configuration
Reference documentation on preparing and configuring the Mindee client.
Before You Start
Initialize the Mindee Client
from mindee.v2 import Clientapi_key = "MY_API_KEY"
mindee_client = Client(api_key)mindee_client = Client()import * as mindee from "mindee";
// If you're on CommonJS:
// const mindee = require("mindee");const apiKey = "MY_API_KEY";
const mindeeClient = new mindee.Client({ apiKey: apiKey });const mindeeClient = new mindee.Client();import { Agent, interceptors } from "undici";
// Init the custom Dispatcher
// REPLACE THE LINE BELOW WITH YOUR CODE - this example will NOT work!
const myDispatcher = new Agent().compose( ... );
const mindeeClient = new mindee.Client({
// Don't set if using an environment variable
apiKey: apiKey,
// Activates verbose logging - disable in production!
debug: true,
// Pass the custom dispatcher to the Mindee client
dispatcher: myDispatcher,
});Last updated
Was this helpful?

