A Private AI Services Container API Reference

Learn about the REST APIs available to use with Oracle Private AI Services Container.

models

Use GET requests to print a list of all currently deployed models.

Syntax

/v1/models

Returns

A list of deployed models.

Example Output

{
    "data": [
        {
            "id": "all_minilm_l12",
            "modelDeployedTime": "2026-02-09T00:35:11.365558079Z",
            "modelSize": "127.13M",
            "capabilities": [
                "TEXT_EMBEDDINGS"
            ]
        },
        {
            "id": "Phi-3.5-mini-instruct",
            "modelDeployedTime": "2026-02-09T00:26:58.875399477Z",
            "modelSize": "7.12G",
            "capabilities": [
                "TEXT_GENERATION"
            ]
        }
    ]
}

models/{id}

Use GET requests to print information about a specific model.

Syntax

/v1/models/{id}

Parameters

id (string): A unique model name. This parameter is required.

Returns

Information about the model specified by model ID.

Example Output

embeddings

Use POST requests to get embeddings against a model.

Syntax

/v1/embeddings

Parameters

x-convert-images (boolean): Indicates whether images in the input list require conversion to JPG. The default value is false.

Example Input

Note that input can be a string or an array of strings.

{
  "input": "string",
  "model": "string"
}

Example Output

health

Use GET requests to verify that the container is ready to use.

Syntax

/health

Example Output

metrics

Use GET requests to return a list of metric names exposed by the application.

Syntax

/metrics

Returns

Returns a list of metric names exposed by the application.

Example Output

metrics/{metricName}

Use GET requests to return detailed information for a metric, including measurements and available tags. Supports optional tag filters using repeated tag query params in the form key:value.

Syntax

/metrics/{metricName}

Parameters

metricName (string): Metric name as returned by GET /metrics. This parameter is required.

tag (array<string>): Tag filter(s) in the form key:value. Repeat for multiple tags.

Example Output

api

Use GET requests to return the OpenAI specification for this API in YAML format.

Syntax

/v1/api

Returns

Returns the OpenAPI (YAML) document as a string.

chat/completions

Use POST requests to accept a chat completion request and return a generated response.

Syntax

/v1/chat/completions

Parameters

Example Output

rerank

Use POST requests to get rerankings against a model.

Syntax

/v1/rerank

Parameters

query (string): Text to be compared with the list of documents. Required parameter.

documents (array of string): List of documents that will get sorted according to their relevance to the query. Required parameter.

model (string): A unique model name. Required parameter.

top_n (integer): Number of results with bigger relevance score to return.

max_tokens_per_doc (integer): Maximum tokens to consider per document.

Example Output

classify

Use POST requests to classify one or more text inputs using the specified model. Use this endpoint with models configured for TEXT_CLASSIFICATION, such as an ONNX sentiment model.

Syntax

/classify

Parameters

model (string): Model identifier to use for classification. Required.

input (array): List of input texts to classify. Required.

Example Output