Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/reductoai/reducto-python-sdk/llms.txt

Use this file to discover all available pages before exploring further.

Overview

The Reducto Python SDK supports multiple environments to serve different geographic regions. You can specify which environment to use when initializing the client.

Available Environments

The SDK supports the following environments:

Production

Default US production environment

EU

European Union region

AU

Australia region

Configuration

Setting the Environment

Specify the environment using the environment parameter when initializing the client:
from reducto import Reducto

client = Reducto(
    environment="eu",  # or 'production' | 'au'; defaults to "production"
)

Environment Options

environment
string
default:"production"
The API environment to use. Valid values are:
  • "production" - US production environment (default)
  • "eu" - European Union region
  • "au" - Australia region

Examples

Production (Default)

import os
from reducto import Reducto

# Explicitly set to production
client = Reducto(
    api_key=os.environ.get("REDUCTO_API_KEY"),
    environment="production",
)

# Or omit the parameter (defaults to production)
client = Reducto(
    api_key=os.environ.get("REDUCTO_API_KEY"),
)

European Union

import os
from reducto import Reducto

client = Reducto(
    api_key=os.environ.get("REDUCTO_API_KEY"),
    environment="eu",
)

response = client.parse.run(
    input="https://pdfobject.com/pdf/sample.pdf",
)

Australia

import os
from reducto import Reducto

client = Reducto(
    api_key=os.environ.get("REDUCTO_API_KEY"),
    environment="au",
)

response = client.parse.run(
    input="https://pdfobject.com/pdf/sample.pdf",
)

Async Client

The async client supports the same environment configuration:
import os
from reducto import AsyncReducto

client = AsyncReducto(
    api_key=os.environ.get("REDUCTO_API_KEY"),
    environment="eu",
)
Choose the environment closest to your geographic location for optimal performance and latency.

Build docs developers (and LLMs) love