Instantiate the Literal client
How to get my API key?
To get your API key, go to your project page and click on the Settings tab. You will find your API key in the API Key section.Next up
Quick Start
Log your data to Literal
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Install the Literal client and get your API key
pip install literalai
npm i @literalai/client
import os
from literalai import LiteralClient
client = LiteralClient(api_key=os.getenv("LITERAL_API_KEY")) # This is the default and can be omitted
import { LiteralClient } from '@literalai/client';
const client = new LiteralClient(process.env['LITERAL_API_KEY']); // This is the default and can be omitted
Was this page helpful?