Initial Documentation
This feature will be enabled and updated in Q1 2025
Welcome to the Strata AI API Documentation, designed to help you understand and integrate the core features and capabilities of Strata AI into your applications.
Overview
Strata AI offers a comprehensive framework to streamline AI-based workflows by optimizing prompt handling across multiple Large Language Models (LLMs). Its modular and extensible design allows developers to create sophisticated solutions that leverage the power of multiple LLMs efficiently.
Endpoints
Strata AI provides a set of APIs to interact with the system. Below are the details of the primary endpoints:
1. Initialize Configuration
Endpoint:
Description:
Generates a configuration file for Strata AI to initialize environment and tool settings.
Parameters:
Parameter
Type
Description
Required
path
string
The file path to store the configuration.
Yes
Example Request:
Example Response:
2. Execute Prompt
Endpoint:
Description:
Processes a user prompt by selecting the best LLM for the task and returning the optimized response.
Parameters:
Parameter
Type
Description
Required
prompt
string
The user-provided prompt to process.
Yes
context
object
Additional context or metadata for the prompt.
No
model_hint
string
Suggests a specific LLM model to use (optional).
No
Example Request:
Example Response:
3. Retrieve Logs
Endpoint:
Description:
Fetches execution logs for debugging and monitoring purposes.
Parameters:
Parameter
Type
Description
Required
session_id
string
Filter logs by a specific session ID.
No
limit
int
The maximum number of log entries to retrieve.
No
Example Request:
Example Response:
4. Configure Tools
Endpoint:
Description:
Configures external tools such as web searching APIs or text-to-speech engines.
Parameters:
Parameter
Type
Description
Required
tool_name
string
The name of the tool to configure.
Yes
configuration
object
Key-value pairs for tool settings.
Yes
Example Request:
Example Response:
5. Monitor System Status
Endpoint:
Description:
Retrieves the current status of the system, including API health and active LLMs.
Parameters:
None
Example Request:
Example Response:
Error Codes
Code
Message
Description
200
OK
Request was successful.
400
Bad Request
Invalid parameters were provided.
401
Unauthorized
API key is missing or invalid.
404
Not Found
Resource not found.
500
Internal Server Error
An unexpected error occurred.
Authentication
Strata AI uses API keys for authentication. Include your API key in the Authorization
header of each request:
To obtain your API key, contact the Strata AI support team or follow the onboarding process.
Rate Limits
Default rate limits:
Standard Plan: 250 requests per minute
Enterprise Plan: 1000 requests per minute
Contact support for custom rate limits.
For additional support contact us at support@strata.ai.
Last updated