REST API

The Maniac API provides openai compatible inference endpoints for interacting with both frontier models and your custom models. This reference details the available endpoints.

Run inference with Maniac

post

OpenAI Chat Completions-compatible endpoint.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
modelstringRequired

Required. Examples:

  • <provider>:<model>
  • <provider>/<model> (e.g. openai/gpt-4o)
  • maniac:<container_label>
  • maniac:<container_label>:<model_slug>
streambooleanOptional
tool_choiceone ofOptional
string · enumOptionalPossible values:
or
temperaturenumberOptional
top_pnumberOptional
max_tokensintegerOptional
response_formatone ofOptional
or
or
Responses
chevron-right
200

Successful completion (non-streaming or streaming)

post
/v1/chat/completions

List containers for a project

get

Returns all available containers for the authenticated project. If "label" is provided, returns a single matching container or a 400 not_found error.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
labelstringOptional

Optional container label to filter by.

Responses
chevron-right
200

List of containers or a single container (if label is given)

application/json
Responseone of
or
get
/v1/containers

Create a new container

post

Creates a new container for the authenticated project, or returns the existing container if one with the same label already exists.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
labelstringRequired

Human-readable label for the container

initial_modelstringOptional

The initial model to use for the container. e.g. "openai/gpt-4o"

initial_system_promptstringOptional
Responses
chevron-right
200

Container already existed; returned as-is

application/json
post
/v1/containers

List available models and containers

get

Returns a model list combining external models with project containers (as "maniac/").

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
chevron-right
200

List of models and containers (anything you can use in the "model" field of a chat completion request)

application/json
get
/v1/models
200

List of models and containers (anything you can use in the "model" field of a chat completion request)

Register existing chat completions data to a container

post

Bulk-register a dataset of (input, output) chat completion pairs against a given container/label. Used for logging and training data ingestion.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
containerstringOptional

Container label.

Responses
chevron-right
200

Completions registered successfully.

application/json
post
/v1/chat/completions/register

Last updated