Ownlayer
  • 👋Welcome
  • Getting Started
    • 💫Quickstart
  • Iterate
    • 💡Prompt
    • 📃Dataset
      • Dataset Creation
      • Data point Evaluation
      • Dataset Evaluation
  • Monitor
    • 🔬Evaluators
      • 🖌️Create Evaluators
      • 🔌Smart Trigger an online Evaluator
      • 🎛️Evaluator Playground
    • 🧐Analyzers
  • Integrations
    • Segment
    • Amplitude
    • Posthog
  • REST API
  • Python SDK
Powered by GitBook
On this page

Python SDK

PreviousREST API

Last updated 7 months ago

Python is the easiest and most recommended way to integrate with Ownlayer

Install SDK

pip install ownlayer

Add add OWNLAYER_API_KEY to your .env file:

OWNLAYER_API_KEY=ey...xxx

Change OpenAI or Anthropic imports to use Ownlayer wrapper

- import openai
+ from ownlayer.openai import openai
Python SDK