Skip to Content
API

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:

  1. Sign in to the Octora
  2. Open sidebar and click on your account -> Settings
  3. Navigate to the API Keys tab
  4. Click ”+ Create new API key”
  5. Enter a name for the key (e.g. “My App”) and click “Create”
  6. 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.