SliceX AI Predictor
SliceX AI Predictor API (1.0)
Download OpenAPI specification:Download
Customer Review Sentiment
header Parameters
x-api-key required | string (x-api-key) |
Request Body schema: application/json
query | string (The string to run the inference on.) |
Responses
Request samples
- Payload
- cURL
- Python3 (requests)
- JavaScript (axios)
Content type
application/json
{- "query": "This movie was great"
}
Response samples
- 200
- 422
Content type
application/json
{- "data": {
- "labels": [
- "POSITIVE",
- "NEGATIVE"
], - "scores": [
- 0.95,
- 0.05
], - "tokens": [
- "New York"
], - "token_start_positions": [
- 2
]
}, - "metadata": {
- "model_inference_time_ms": 7.8
}
}
Toxicity Detection
header Parameters
x-api-key required | string (x-api-key) |
Request Body schema: application/json
query | string (The string to run the inference on.) |
Responses
Request samples
- Payload
- cURL
- Python3 (requests)
- JavaScript (axios)
Content type
application/json
{- "query": "This movie was great"
}
Response samples
- 200
- 422
Content type
application/json
{- "data": {
- "labels": [
- "POSITIVE",
- "NEGATIVE"
], - "scores": [
- 0.95,
- 0.05
], - "tokens": [
- "New York"
], - "token_start_positions": [
- 2
]
}, - "metadata": {
- "model_inference_time_ms": 7.8
}
}
News Classification
header Parameters
x-api-key required | string (x-api-key) |
Request Body schema: application/json
query | string (The string to run the inference on.) |
Responses
Request samples
- Payload
- cURL
- Python3 (requests)
- JavaScript (axios)
Content type
application/json
{- "query": "This movie was great"
}
Response samples
- 200
- 422
Content type
application/json
{- "data": {
- "labels": [
- "POSITIVE",
- "NEGATIVE"
], - "scores": [
- 0.95,
- 0.05
], - "tokens": [
- "New York"
], - "token_start_positions": [
- 2
]
}, - "metadata": {
- "model_inference_time_ms": 7.8
}
}
Sentiment Analysis
header Parameters
x-api-key required | string (x-api-key) |
Request Body schema: application/json
query | string (The string to run the inference on.) |
Responses
Request samples
- Payload
- cURL
- Python3 (requests)
- JavaScript (axios)
Content type
application/json
{- "query": "This movie was great"
}
Response samples
- 200
- 422
Content type
application/json
{- "data": {
- "labels": [
- "POSITIVE",
- "NEGATIVE"
], - "scores": [
- 0.95,
- 0.05
], - "tokens": [
- "New York"
], - "token_start_positions": [
- 2
]
}, - "metadata": {
- "model_inference_time_ms": 7.8
}
}
Financial Customer Support
header Parameters
x-api-key required | string (x-api-key) |
Request Body schema: application/json
query | string (The string to run the inference on.) |
Responses
Request samples
- Payload
- cURL
- Python3 (requests)
- JavaScript (axios)
Content type
application/json
{- "query": "This movie was great"
}
Response samples
- 200
- 422
Content type
application/json
{- "data": {
- "labels": [
- "POSITIVE",
- "NEGATIVE"
], - "scores": [
- 0.95,
- 0.05
], - "tokens": [
- "New York"
], - "token_start_positions": [
- 2
]
}, - "metadata": {
- "model_inference_time_ms": 7.8
}
}
Financial Sentiment Analysis
header Parameters
x-api-key required | string (x-api-key) |
Request Body schema: application/json
query | string (The string to run the inference on.) |
Responses
Request samples
- Payload
- cURL
- Python3 (requests)
- JavaScript (axios)
Content type
application/json
{- "query": "This movie was great"
}
Response samples
- 200
- 422
Content type
application/json
{- "data": {
- "labels": [
- "POSITIVE",
- "NEGATIVE"
], - "scores": [
- 0.95,
- 0.05
], - "tokens": [
- "New York"
], - "token_start_positions": [
- 2
]
}, - "metadata": {
- "model_inference_time_ms": 7.8
}
}
Conversational Language Understanding (En)
header Parameters
x-api-key required | string (x-api-key) |
Request Body schema: application/json
query | string (The string to run the inference on.) |
Responses
Request samples
- Payload
- cURL
- Python3 (requests)
- JavaScript (axios)
Content type
application/json
{- "query": "This movie was great"
}
Response samples
- 200
- 422
Content type
application/json
{- "data": {
- "labels": [
- "POSITIVE",
- "NEGATIVE"
], - "scores": [
- 0.95,
- 0.05
], - "tokens": [
- "New York"
], - "token_start_positions": [
- 2
]
}, - "metadata": {
- "model_inference_time_ms": 7.8
}
}
Conversational Language Understanding (Jp)
header Parameters
x-api-key required | string (x-api-key) |
Request Body schema: application/json
query | string (The string to run the inference on.) |
Responses
Request samples
- Payload
- cURL
- Python3 (requests)
- JavaScript (axios)
Content type
application/json
{- "query": "This movie was great"
}
Response samples
- 200
- 422
Content type
application/json
{- "data": {
- "labels": [
- "POSITIVE",
- "NEGATIVE"
], - "scores": [
- 0.95,
- 0.05
], - "tokens": [
- "New York"
], - "token_start_positions": [
- 2
]
}, - "metadata": {
- "model_inference_time_ms": 7.8
}
}
Emotion Detection
header Parameters
x-api-key required | string (x-api-key) |
Request Body schema: application/json
query | string (The string to run the inference on.) |
Responses
Request samples
- Payload
- cURL
- Python3 (requests)
- JavaScript (axios)
Content type
application/json
{- "query": "This movie was great"
}
Response samples
- 200
- 422
Content type
application/json
{- "data": {
- "labels": [
- "POSITIVE",
- "NEGATIVE"
], - "scores": [
- 0.95,
- 0.05
], - "tokens": [
- "New York"
], - "token_start_positions": [
- 2
]
}, - "metadata": {
- "model_inference_time_ms": 7.8
}
}
Named Entity Recognition. Finds the tokens (e.g. person, location, etc.) in the query.
Named Entity Recognition
header Parameters
x-api-key required | string (x-api-key) |
Request Body schema: application/json
query | string (The string to run the inference on.) |
Responses
Request samples
- Payload
- cURL
- Python3 (requests)
- JavaScript (axios)
Content type
application/json
{- "query": "This movie was great"
}
Response samples
- 200
- 422
Content type
application/json
{- "data": {
- "labels": [
- "POSITIVE",
- "NEGATIVE"
], - "scores": [
- 0.95,
- 0.05
], - "tokens": [
- "New York"
], - "token_start_positions": [
- 2
]
}, - "metadata": {
- "model_inference_time_ms": 7.8
}
}
Research Papers Search
header Parameters
x-api-key required | string (x-api-key) |
Request Body schema: application/json
query | string (The string to run the inference on.) |
Responses
Request samples
- Payload
- cURL
- Python3 (requests)
- JavaScript (axios)
Content type
application/json
{- "query": "This movie was great"
}
Response samples
- 200
- 422
Content type
application/json
{- "data": {
- "labels": [
- "POSITIVE",
- "NEGATIVE"
], - "scores": [
- 0.95,
- 0.05
], - "tokens": [
- "New York"
], - "token_start_positions": [
- 2
]
}, - "metadata": {
- "model_inference_time_ms": 7.8
}
}
User Model Inference
path Parameters
model_id required | string (Model Id) |
header Parameters
x-api-key required | string (x-api-key) |
Request Body schema: application/json
query | string (The string to run the inference on.) |
Responses
Request samples
- Payload
- cURL
- Python3 (requests)
- JavaScript (axios)
Content type
application/json
{- "query": "This movie was great"
}
Response samples
- 200
- 422
Content type
application/json
{- "data": {
- "labels": [
- "POSITIVE",
- "NEGATIVE"
], - "scores": [
- 0.95,
- 0.05
], - "tokens": [
- "New York"
], - "token_start_positions": [
- 2
]
}, - "metadata": {
- "model_inference_time_ms": 7.8
}
}