Configure API keys for AI services

Set up API credentials for OpenAI, Anthropic, and other AI providers so Pixeltable can access them.

Core Operations · Notebook · Updated

Colab runs it in your browser. If it calls a model provider, it asks for that provider's API key in a cell.

How it works

You configure API keys using one of three methods, depending on your needs. Pixeltable automatically discovers credentials from environment variables or config files—no code changes needed.

What it covers

  • Set API keys using environment variables
  • Store keys in a config file for all projects
  • Use getpass for one-time session keys

What it uses

Install
terminal
pip install pixeltable
Environment variables it names
OPENAI_API_KEY
Pixeltable calls
pxt.home()
Browse all 103