Learn how to authenticate with the Electron Hub API
Authorization
Bearer
curl -X POST "https://api.electronhub.ai/v1/chat/completions" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-3.5-turbo", "messages": [ {"role": "user", "content": "Hello!"} ] }'
export ELECTRONHUB_API_KEY="your_api_key_here"
import os api_key = os.getenv("ELECTRONHUB_API_KEY")