To start using the ShuttleAI API, register for an account at ShuttleAI and obtain a free trial API key from your dashboard.

API Key Requirement

Every API request must include your API key, provided in the Authorization HTTP header as illustrated below:

Secure your API key at all times! Avoid sharing it, and if you suspect it’s been compromised, regenerate it immediately from your dashboard.
Authorization: Bearer YOUR_API_KEY

Environment Variables

Setting your API key as an environment variable simplifies authorization by not having to explicitly include the key in your code.

setx SHUTTLEAI_API_KEY "YOUR_API_KEY"
When SHUTTLEAI_API_KEY is set as an environment variable, the API will automatically utilize it, eliminating the need for manual entry in your code.