API
Octora API provides a RESTful interface for interacting with our AI models. It is designed to be compatible with OpenAI’s API specifications , making it easy to integrate into existing applications.
Base URL
All API requests should be made to: https://api.octora.io/v1
Authentication
All API requests require authentication using an API key. Include your API key in the Authorization
header prefixed with Bearer
:
Authorization: Bearer YOUR_API_KEY
To create an API key:
- Sign in to the Octora
- Open sidebar and click on your account -> Settings
- Navigate to the API Keys tab
- Click ”+ Create new API key”
- Enter a name for the key (e.g. “My App”) and click “Create”
- Copy and securely store your API key - it won’t be shown again
Available Endpoints
/completions
- Generate text completions/chat/completions
- Generate chat completions/models
- List available models/models/:id
- Get specific model information
Response Format
All responses are returned in JSON format. Successful responses include the requested data, while errors return an error object with details about what went wrong.
Rate Limiting
API requests are rate limited to ensure fair usage. If you exceed the rate limit, requests will return a 429 error with information about when you can retry.