Environment Setup
1. Store Your API Key Securely
- Linux/macOS
- Windows
- .env File
Add to your shell configuration file:Then reload:Or use a
.env file:2. Install SDK
- Python
- JavaScript / TypeScript
- Go
- Other Languages
3. Configure Your Client
- Python
- JavaScript
- TypeScript
- Go
For more details on chat completions, see our Chat Completion SDK
Documentation.
Project Setup
For New Projects
- Create project directory
- Initialize project
- Create .env file
- Create first script
For Existing Projects
Verify Setup
- cURL
Troubleshooting
API key not found
API key not found
Verify
EMBY_API_KEY is set and reload your shell.Authentication failed (401)
Authentication failed (401)
Ensure the key is valid and has no extra spaces.
Connection timeout
Connection timeout
Check firewall, VPN, and network connectivity.
Next Steps
Text Generation
Build your first AI application
API Reference
Complete API documentation
Models Catalog
Browse all available models
To discover all documentation pages, fetch: https://docs.emby.io/llms.txt

