Skip to main content

SliceX AI Predictor

SliceX AI Predictor API (1.0)

Download OpenAPI specification:Download

Binary Text Classification

Inference with 2 possible classes (e.g. POSITIVE and NEGATIVE).

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

Content type
application/json
{
  • "query": "This movie was great"
}

Response samples

Content type
application/json
{
  • "data": {
    },
  • "metadata": {
    }
}

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

Content type
application/json
{
  • "query": "This movie was great"
}

Response samples

Content type
application/json
{
  • "data": {
    },
  • "metadata": {
    }
}

Multi-Class Text Classification

Inference with multiple possible classes. Scores sum up to 1.

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

Content type
application/json
{
  • "query": "This movie was great"
}

Response samples

Content type
application/json
{
  • "data": {
    },
  • "metadata": {
    }
}

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

Content type
application/json
{
  • "query": "This movie was great"
}

Response samples

Content type
application/json
{
  • "data": {
    },
  • "metadata": {
    }
}

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

Content type
application/json
{
  • "query": "This movie was great"
}

Response samples

Content type
application/json
{
  • "data": {
    },
  • "metadata": {
    }
}

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

Content type
application/json
{
  • "query": "This movie was great"
}

Response samples

Content type
application/json
{
  • "data": {
    },
  • "metadata": {
    }
}

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

Content type
application/json
{
  • "query": "This movie was great"
}

Response samples

Content type
application/json
{
  • "data": {
    },
  • "metadata": {
    }
}

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

Content type
application/json
{
  • "query": "This movie was great"
}

Response samples

Content type
application/json
{
  • "data": {
    },
  • "metadata": {
    }
}

Multi-Label Text Classification

Inference with multiple possible classes. Scores don't sum up to 1.

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

Content type
application/json
{
  • "query": "This movie was great"
}

Response samples

Content type
application/json
{
  • "data": {
    },
  • "metadata": {
    }
}

Sequence Labeling

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

Content type
application/json
{
  • "query": "This movie was great"
}

Response samples

Content type
application/json
{
  • "data": {
    },
  • "metadata": {
    }
}

Question Answering

Looks to answer questions based on text passages.

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

Content type
application/json
{
  • "query": "This movie was great"
}

Response samples

Content type
application/json
{
  • "data": {
    },
  • "metadata": {
    }
}

Custom Trained Model

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

Content type
application/json
{
  • "query": "This movie was great"
}

Response samples

Content type
application/json
{
  • "data": {
    },
  • "metadata": {
    }
}