Getting Started
Authentication
Learn how to authenticate your API requests and manage access keys securely.
API keys
Smallest AI uses API keys for authentication. You must include your key with every API request to authenticate your identity and track usage against your quota.
Each API key can be scoped to the following:
- Rate Limits: Controls the number of requests allowed within a specified time period.
- Credit Quota: Defines the maximum usage credits available for your account.
Your API key is confidential and should be kept secure. Never share it with others or expose it in client-side code (browsers, mobile apps, github repositories, etc.).
Making Requests
All API requests require your key in the Authorization
header using the Bearer key format:
Example API Request
Test the API with this curl command by replacing YOUR_API_KEY
with your actual key: