BAGLE

Configuration

Set up your environment variables to start making API calls to Bagle.

Set your API key

Get your API key from the developer console and set it as an environment variable:

bash
export BAGLE_API_KEY='your-api-key-here'

Initialize the client

Python

python
import os
from bagle import Bagle

client = Bagle(api_key=os.getenv('BAGLE_API_KEY'))

TypeScript

typescript
import Bagle from "@bagle/sdk";

const client = new Bagle({
  apiKey: process.env.BAGLE_API_KEY
});

Next: Make your first call

Test your configuration with a sample inference request.

Quickstart →