TouAI Python SDK

Use one Python client to work with Connectors, Unstructured, Deep Research, Web Access, Object Storage, Knowledge Base, pgvector, Workflows, and Billing.

TouAI Python SDK is the official Python client for the TouAI platform. It gives application developers, agents, and backend services a single entry point for the platform's data, research, storage, and billing APIs.

Package: touai · Python: >= 3.10 · Auth: project API key (created in the web console)

Why this SDK

  • One client for the full TouAI platform
  • First-class Python examples for synchronous and streaming workflows
  • Built-in retry handling for transient failures
  • Typed response models powered by Pydantic v2

Service Map

Installation at a Glance

pip install touai
from touai import TouAI
 
# Reads TOUAI_ACCESS_KEY_ID / TOUAI_SECRET_KEY from the environment
with TouAI() as client:
    results = client.connectors.search("quarterly revenue")
    print(results.total_results)

Client Surface

The SDK exposes the nine platform services as namespaced properties on the TouAI client:

PropertyServiceDescription
client.connectorsConnectors50+ data connectors, sync, RAG search
client.unstructuredUnstructuredDocument and video processing, file management
client.deep_researchDeep Researchresearch() / research_stream() workflows with SSE
client.web_accessWeb AccessWeb scraping, search, deep crawl
client.object_storageObject StorageBuckets and objects with project-scoped access
client.knowledge_baseKnowledge BaseManaged document stores with hybrid search
client.pgvectorpgvectorManaged vector collections, upsert and query
client.workflowsWorkflowsAsset registry, runs, lineage, usage
client.billingBillingRead-only credits, usage, and plan catalog

Authentication is API key only — create a project API key in the web console and pass it as access_key_id / secret_key (or the TOUAI_ACCESS_KEY_ID / TOUAI_SECRET_KEY environment variables). Account, organization, project, and API-key management — plus credit purchases and subscription changes — are web console features and are not part of the SDK.

1

Install and authenticate

Start with installation, authentication, configuration, and client lifecycle so every example later in the docs feels familiar.

2

Pick a core service

Move into Connectors, Unstructured, Deep Research, Web Access, or Object Storage based on the workflow you are building.

3

Finish with platform reference

Use the Billing, Error Handling, and Type Reference pages as reference material while integrating.

Installation