Skip to main content

Installation

Get started with the Reducto Python SDK by installing the package and configuring your API key.

Install from PyPI

1

Install the package

Install the Reducto SDK using pip:
pip install reductoai
2

Get your API key

Sign up for an account at Reducto and obtain your API key from the dashboard.
3

Configure your API key

We recommend using python-dotenv to manage your API key securely.First, install python-dotenv:
pip install python-dotenv
Then create a .env file in your project root:
REDUCTO_API_KEY="your-api-key-here"
Never commit your .env file to version control. Add it to your .gitignore file.
4

Verify installation

Verify the installation by checking the installed version:
import reducto
print(reducto.__version__)

Optional: Install with aiohttp

For improved concurrency performance with async operations, you can install Reducto with aiohttp support:
pip install reductoai[aiohttp]
The aiohttp backend provides better concurrency performance for async operations compared to the default httpx backend.

Environment Configuration

The SDK supports the following environment variables:
VariableDescriptionDefault
REDUCTO_API_KEYYour Reducto API keyRequired
REDUCTO_BASE_URLCustom base URL for API requestshttps://api.reducto.ai
REDUCTO_LOGLogging level (info or debug)None

Requirements

  • Python version: 3.9 or higher
  • Dependencies: Automatically installed with the package

Next Steps

Quick Start

Parse your first document

API Reference

Explore the full API