Tork Get Started with Tork in 5 Minutes

STEP 1Get Your API Key

First, you'll need an API key to authenticate your requests. You can generate one in seconds from your dashboard.

Go to Dashboard

STEP 2Install the SDK

Install the Tork Python SDK using pip. It's lightweight and framework-agnostic.

pip install tork-governance

Using JS/TS? Check the curl example

STEP 3Add to Your Code

Just a few lines of code to make your AI safe and compliant.

from tork import PolicyEngine

# Initialize with your API key
engine = PolicyEngine(api_key="your_api_key_here")

# Check any AI output for safety
result = engine.evaluate("Your AI agent's response here")

# Act on the result
if result.allowed:
    print("Safe to send!")
else:
    print(f"Blocked: {result.reason}")

STEP 4You're Ready!

Successfully integrated Tork!

📺 Video Tutorial Coming Soon

Watch a step-by-step walkthrough of integrating Tork

Need Help?

Get help from our team

Full Documentation

Deep dive into API reference and features

Join Community

Share ideas and get help from other builders