Base URL
All API requests are sent to:
Authentication
Starrise AI uses Bearer Token authentication. Include your API key in the Authorization header of every request:
You can generate and manage API keys in the Console.
Keep your API key secure. Do not expose it in client-side code or public repositories.
All requests must use Content-Type: application/json with a JSON-encoded request body.
Supported Endpoints
All responses are JSON-encoded. Successful responses typically contain:
Error Handling
When an error occurs, the API returns a JSON response containing an error object:
HTTP Status Codes
Rate Limits
Rate limits vary by model and subscription tier. When rate limits are exceeded, the API returns a 429 status code. We recommend implementing exponential backoff to handle rate limits gracefully.
OpenAI SDK Compatibility
Starrise AI is compatible with the OpenAI SDK. Simply change the base_url to use it: