ShuttleAI home page
Search...
βK
Support
Dashboard
Dashboard
Search...
Navigation
Documentation
API Reference
Introduction
Guides
API Reference
API Documentation
Introduction
Authentication
Endpoints
GET
Get Models
GET
Get Model by ID
GET
Create Web Search
POST
Create Chat Completions
POST
Create Image Generation
POST
Create Audio Generation
POST
Create Audio Transcription
POST
Create Audio Translation
POST
Create Moderation
POST
Create Embedding
On this page
API Key Requirement
Environment Variables
API Documentation
Authentication
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.
HTTP ShuttleAI API Auth
Python ShuttleAI API Auth Code
Copy
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.
Windows/cmd
Windows/PowerShell
Linux/macOS
Copy
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.
Introduction
Get Models
Assistant
Responses are generated using AI and may contain mistakes.