Skip to main content
The Tuteliq Python SDK provides both synchronous and asynchronous clients for the Tuteliq child safety API. It supports Python 3.9+.

Installation

Initialize the client

Never hardcode API keys in source code. Use environment variables or a secrets manager.

Detect unsafe content

Scan a single text input for harmful content across all KOSA categories.

Detect grooming patterns

Analyze a conversation history for grooming indicators.

Analyze emotions

Evaluate emotional well-being from conversation text.

Analyze voice

Upload an audio file for transcription and safety analysis.

Fraud detection and safety extended

These methods cover financial exploitation, romance scams, and coercive behaviour targeting minors. Other endpoints — detect_app_fraud, detect_mule_recruitment, detect_gambling_harm, detect_coercive_control, and detect_radicalisation — follow the same call pattern shown here.

Detect social engineering

Identify manipulation tactics designed to trick a child into disclosing information or taking unsafe actions.

Detect romance scam

Analyze conversation text for romantic manipulation patterns that may indicate an adult posing as a peer.

Detect vulnerability exploitation

Detect attempts to identify and target emotional or situational vulnerabilities in a child.

Analyse multiple texts in one request

Run any supported detection across multiple texts in a single API call to reduce round-trips.
analyse_multi is billed per individual input × detection combination, not per request.

Async support

For asynchronous applications, use the AsyncTuteliq client. It exposes the same methods with await syntax.
AsyncTuteliq is ideal for frameworks like FastAPI, aiohttp, and Django with ASGI. It uses httpx under the hood.

Error handling

The SDK raises typed exceptions that you can catch and inspect.

Configuration options

Next steps

API Reference

Explore the full API specification.

Node.js SDK

See the Node.js SDK guide.