Download OpenAPI specification:Download
Joint Intent Slot Classification Model API
query required | string (Query) |
model_name | string (Model Name) |
model_version | string (Model Version) |
{- "query": "string",
- "model_name": "string",
- "model_version": "string"
}
{- "domain": {
- "class_name": "none",
- "score": 1
}, - "intent": {
- "class_name": "none",
- "score": 1
}, - "entities": {
- "entities": [ ]
}
}
Text Classification Model API
query required | string (Query) |
model_name | string (Model Name) |
model_version | string (Model Version) |
{- "query": "string",
- "model_name": "string",
- "model_version": "string"
}
{- "class_name": "string",
- "score": 0
}
Named Entity Recognition Model API
query required | string (Query) |
model_name | string (Model Name) |
model_version | string (Model Version) |
{- "query": "string",
- "model_name": "string",
- "model_version": "string"
}
{- "entities": [
- {
- "token": "string",
- "label": {
- "class_name": "string",
- "score": 0
}, - "span": {
- "property1": 0,
- "property2": 0
}
}
]
}
Embedding Model API
queries required | Array of strings (Queries) |
model_name | string (Model Name) |
model_version | string (Model Version) |
{- "queries": [
- "string"
], - "model_name": "string",
- "model_version": "string"
}
{- "queries": [
- "string"
], - "embeddings": [
- [
- 0
]
]
}
Extractive QA Model API
query required | string (Query) |
documents required | Array of strings (Documents) |
top_n required | integer (Top N) |
model_name | string (Model Name) |
model_version | string (Model Version) |
{- "query": "string",
- "documents": [
- "string"
], - "top_n": 0,
- "model_name": "string",
- "model_version": "string"
}
{- "results": [
- {
- "answer": "string",
- "score": 0
}
]
}
required | Array of objects (Anchors) |
store_name required | string (Store Name) |
model_name | string (Model Name) |
model_version | string (Model Version) |
{- "anchors": [
- {
- "text": "string",
- "metadata": { }
}
], - "store_name": "string",
- "model_name": "string",
- "model_version": "string"
}
null
query required | string (Query) |
embedding_stores | Array of strings (Embedding Stores) |
Array of objects (Anchors) | |
model_name | string (Model Name) |
model_version | string (Model Version) |
top_k | integer (Top K) Default: 1 |
{- "query": "string",
- "embedding_stores": [
- "string"
], - "anchors": [
- {
- "text": "string",
- "metadata": { }
}
], - "model_name": "string",
- "model_version": "string",
- "top_k": 1
}
{- "results": [
- {
- "text": "string",
- "metadata": { },
- "confidence_score": 0
}
]
}
Translate text from source language to target language
texts required | Array of strings (Texts) |
source_language required | string (Source Language) |
target_language required | string (Target Language) |
model_name | string (Model Name) |
model_version | string (Model Version) |
{- "texts": [
- "string"
], - "source_language": "string",
- "target_language": "string",
- "model_name": "string",
- "model_version": "string"
}
{- "translated_texts": [
- "string"
]
}
Text to Speech API
text required | string (Text) |
voice_name required | string (Voice Name) |
model_name | string (Model Name) Default: "" |
model_version | string (Model Version) Default: "" |
language_code | string (Language Code) Default: "en-US" |
sample_rate_hz | integer (Sample Rate Hz) Default: 44100 |
{- "text": "string",
- "voice_name": "string",
- "model_name": "",
- "model_version": "",
- "language_code": "en-US",
- "sample_rate_hz": 44100
}
null