Installation

Install the TouAI SDK from PyPI and verify that your runtime matches the supported Python version.

Requirements

  • Python >= 3.10
  • httpx >= 0.25.0
  • pydantic >= 2.0.0
  • typing-extensions >= 4.5.0

Install from PyPI

pip install touai

Verify the package

from touai import TouAI
 
client = TouAI()
print(type(client).__name__)
client.close()

First Client

from touai import TouAI
 
with TouAI() as client:
    results = client.web_access.search("TouAI platform", limit=5)
    print(results.total_results)
  • Go to Authentication to create a project API key and configure it.
  • Go to Configuration if you need to override base_url, timeout, or retry behavior.

The SDK authenticates with a project API key — the recommended (and only) mode for scripts, agents, and CI/CD pipelines.

TouAI Python SDKAuthentication