Download OpenAPI specification:
API documentation for Scalytics Connect, including the OpenAI-compatible Scalytics API.
{- "object": "list",
- "data": [
- {
- "id": "string",
- "object": "model",
- "created": 0,
- "owned_by": "string",
- "root": "string",
- "parent": "string",
- "description": "string",
- "context_window": 0
}
]
}
required | Array of objects (ChatMessage) A list of messages comprising the conversation history. |
stream | boolean Default: false Whether to stream back partial progress. |
temperature | number <float> [ 0 .. 2 ] Controls randomness. Lower values make the output more deterministic. |
max_tokens | integer The maximum number of tokens to generate in the completion. |
top_p | number <float> [ 0 .. 1 ] Nucleus sampling parameter. |
frequency_penalty | number <float> [ -2 .. 2 ] Penalizes new tokens based on their existing frequency in the text so far. |
presence_penalty | number <float> [ -2 .. 2 ] Penalizes new tokens based on whether they appear in the text so far. |
model | string Optional ID of the model to use. Currently ignored by the server. |
object Options for streaming responses. |
{- "messages": [
- {
- "role": "system",
- "content": "string"
}
], - "stream": false,
- "temperature": 2,
- "max_tokens": 0,
- "top_p": 1,
- "frequency_penalty": -2,
- "presence_penalty": -2,
- "model": "string",
- "stream_options": {
- "include_usage": true
}
}
{- "id": "string",
- "object": "chat.completion",
- "created": 0,
- "model": "string",
- "choices": [
- {
- "role": "system",
- "content": "string"
}
], - "usage": {
- "prompt_tokens": 0,
- "completion_tokens": 0,
- "total_tokens": 0
}
}
query required | string The user's initial search query or topic. |
reasoningModelName required | string Required. Name/ID of the LLM for planning and intermediate reasoning. Use GET /v1/models to see available models. |
synthesisModelName required | string Required. Name/ID of the LLM for final report synthesis. Use GET /v1/models to see available models. |
search_providers | Array of strings Default: [] Items Enum: "google" "bing" "brave" "openalex" "wikipedia" "duckduckgo" Search providers. Defaults to a standard set if not provided. |
max_distinct_search_queries | integer Default: 7 Max distinct search engine queries. |
max_results_per_provider_query | integer Default: 5 Max search results per provider per query. |
max_url_exploration_depth | integer Max depth for exploring links. Defaults are handled by the Python service configuration. |
max_hops | integer Max research hops/iterations. Defaults are handled by the Python service configuration. |
chunk_size_words | integer Target chunk size in words. Defaults are handled by the Python service configuration. |
chunk_overlap_words | integer Target chunk overlap in words. Defaults are handled by the Python service configuration. |
top_k_retrieval_per_hop | integer Top-K chunks to retrieve from vector store per hop. Defaults are handled by the Python service configuration. |
{- "query": "string",
- "reasoningModelName": "string",
- "synthesisModelName": "string",
- "search_providers": [ ],
- "max_distinct_search_queries": 7,
- "max_results_per_provider_query": 5,
- "max_url_exploration_depth": 0,
- "max_hops": 0,
- "chunk_size_words": 0,
- "chunk_overlap_words": 0,
- "top_k_retrieval_per_hop": 0
}
texts required | Array of strings A list of text strings to be embedded. |
model_identifier | string Optional identifier (e.g., ID or name) of the embedding model to use. If None, the service's default will be used. |
{- "texts": [
- "Hello world",
- "How are you?"
], - "model_identifier": "sentence-transformers/all-MiniLM-L6-v2"
}
{- "success": true,
- "data": {
- "embeddings": [
- [
- 0.1
]
], - "model_used": "string",
- "dimension": 0
}
}
required | Array of objects (DocumentItemInput) A list of document items to add. |
group_id required | string An identifier to group these documents (e.g., user ID, session ID, collection name). |
{- "documents": [
- {
- "id": "string",
- "text_content": "string",
- "metadata": { }
}
], - "group_id": "string"
}
{- "success": true,
- "message": "string",
- "details": { }
}
query_text required | string The text to search for. |
group_id | string Optional group ID to scope the search within. |
top_k | integer [ 1 .. 100 ] Default: 5 Number of top results to return. |
{- "query_text": "string",
- "group_id": "string",
- "top_k": 5
}
{- "success": true,
- "message": "string",
- "results": [
- {
- "id": "string",
- "text_content": "string",
- "metadata": { },
- "distance": 0.1,
- "similarity": 0.1
}
], - "details": { }
}
group_id required | string The ID of the group whose vector documents should be deleted. |
{- "group_id": "string"
}
{- "success": true,
- "message": "string",
- "details": { }
}
model required | string ID of the model to use for image generation. |
prompt required | string A text description of the desired image(s). |
n | integer Default: 1 The number of images to generate. (Currently only 1 is supported). |
size | string Default: "1024x1024" Enum: "256x256" "512x512" "1024x1024" "1792x1024" "1024x1792" The size of the generated images. |
response_format | string Default: "b64_json" Enum: "url" "b64_json" The format in which the generated images are returned. |
{- "model": "string",
- "prompt": "string",
- "n": 1,
- "size": "256x256",
- "response_format": "url"
}
{- "created": 0,
}
texts required | Array of strings A list of text strings to be embedded. |
model_identifier | string Optional identifier (e.g., ID or name) of the embedding model to use. If None, the service's default will be used. |
{- "texts": [
- "Hello world",
- "How are you?"
], - "model_identifier": "sentence-transformers/all-MiniLM-L6-v2"
}
{- "success": true,
- "data": {
- "embeddings": [
- [
- 0.1
]
], - "model_used": "string",
- "dimension": 0
}
}
required | Array of objects (DocumentItemInput) A list of document items to add. |
group_id required | string An identifier to group these documents (e.g., user ID, session ID, collection name). |
{- "documents": [
- {
- "id": "string",
- "text_content": "string",
- "metadata": { }
}
], - "group_id": "string"
}
{- "success": true,
- "message": "string",
- "details": { }
}
query_text required | string The text to search for. |
group_id | string Optional group ID to scope the search within. |
top_k | integer [ 1 .. 100 ] Default: 5 Number of top results to return. |
{- "query_text": "string",
- "group_id": "string",
- "top_k": 5
}
{- "success": true,
- "message": "string",
- "results": [
- {
- "id": "string",
- "text_content": "string",
- "metadata": { },
- "distance": 0.1,
- "similarity": 0.1
}
], - "details": { }
}
group_id required | string The ID of the group whose vector documents should be deleted. |
{- "group_id": "string"
}
{- "success": true,
- "message": "string",
- "details": { }
}