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.
API key in Authorization header using Bearer .
200descPossible values: Successful Response
OpenAI-style list response for chat completions.
Object type identifier.
listTotal number of items available for this resource.
Bad Request
Unauthorized
Forbidden
Validation Error
Too Many Requests
Internal Server Error
Not Implemented
Upstream Unavailable
API key in Authorization header using Bearer .
OpenAI-compatible chat completion request with Maniac extensions.
Model slug to use. Supports global slugs or project slugs (maniac:).
openai/gpt-4oFallback models.
Frequency penalty.
Logit bias.
Include logprobs.
Top logprobs.
Max completion tokens.
Max tokens.
Arbitrary key/value metadata to attach to the request.
{"source":"dashboard"}Presence penalty.
Reasoning config.
Response format.
Random seed.
Stop sequences.
Stream response.
falseStream options.
Temperature.
Tool choice.
Tools.
Top p.
Optional tags for tracking.
[]Whether to store the completion in the database.
trueServer-Sent Events stream for streaming responses.
Completion id.
Creation timestamp (unix).
Model used.
Object type.
chat.completionToken usage.
Upstream provider name, if available.
Container label used for routing, if any.
Bad Request
Unauthorized
Forbidden
Not Found
Conflict
Validation Error
Too Many Requests
Internal Server Error
Not Implemented
Upstream Unavailable
API key in Authorization header using Bearer .
Successful Response
Completion id.
Creation timestamp (unix seconds).
Model slug used.
Object type.
chat.completionToken usage.
Upstream provider name, if available.
Container label used for routing, if any.
Model ID (uuid).
Estimated spend.
Tags for this completion.
Metadata for this completion.
Bad Request
Unauthorized
Forbidden
Not Found
Conflict
Validation Error
Too Many Requests
Internal Server Error
Not Implemented
Upstream Unavailable
API key in Authorization header using Bearer .
Register completed chat examples for evaluation or analytics.
Container label to associate these examples with.
maniac:my-containerSuccessful Response
Whether the register operation succeeded.
Container label used for registration.
Bad Request
Unauthorized
Forbidden
Not Found
Conflict
Validation Error
Too Many Requests
Internal Server Error
Not Implemented
Upstream Unavailable
API key in Authorization header using Bearer .
200Successful Response
Object type identifier.
listTotal number of items available for this resource.
Bad Request
Unauthorized
Forbidden
Validation Error
Too Many Requests
Internal Server Error
Not Implemented
Upstream Unavailable
API key in Authorization header using Bearer .
Container label.
Initial model slug.
API type.
chat.completionsPossible values: Default inference parameters.
Default system prompt.
Successful Response
Bad Request
Unauthorized
Forbidden
Not Found
Conflict
Validation Error
Too Many Requests
Internal Server Error
Not Implemented
Upstream Unavailable
API key in Authorization header using Bearer .
Successful Response
Container id.
Object type.
containerOrganization id.
Creation timestamp.
Container label.
API type.
chat.completionsPossible values: Default system prompt.
Default inference parameters.
Optimized system prompt.
Optimized inference parameters.
Initial model slug.
Soft delete flag.
falseBad Request
Unauthorized
Forbidden
Not Found
Conflict
Validation Error
Too Many Requests
Internal Server Error
Not Implemented
Upstream Unavailable
API key in Authorization header using Bearer .
Successful Response
Object type.
containerContainer label.
Deletion status.
trueBad Request
Unauthorized
Forbidden
Not Found
Conflict
Validation Error
Too Many Requests
Internal Server Error
Not Implemented
Upstream Unavailable
API key in Authorization header using Bearer .
Filter by purpose
Max number of files.
100Number of files to skip.
0Successful Response
OpenAI-compatible list response for files.
Object type identifier.
listTotal number of items available for this resource.
Bad Request
Unauthorized
Forbidden
Validation Error
Too Many Requests
Internal Server Error
Upstream Unavailable
API key in Authorization header using Bearer .
Successful Response
Bad Request
Unauthorized
Forbidden
Conflict
Validation Error
Too Many Requests
Internal Server Error
Upstream Unavailable
API key in Authorization header using Bearer .
File id (UUID)
Successful Response
OpenAI-compatible file object (subset).
We keep id as the DB UUID string, and expose the OpenAI-ish envelope.
File id (UUID).
Object type.
fileFile size in bytes.
Unix timestamp (seconds).
Original filename.
Intended file purpose.
Current file status.
Optional status details.
Bad Request
Unauthorized
Forbidden
Not Found
Validation Error
Too Many Requests
Internal Server Error
Upstream Unavailable
API key in Authorization header using Bearer .
File id (UUID)
Successful Response
OpenAI-compatible delete response.
File id (UUID).
Object type.
fileDeletion status.
trueBad Request
Unauthorized
Forbidden
Not Found
Validation Error
Too Many Requests
Internal Server Error
Upstream Unavailable
API key in Authorization header using Bearer .
File id (UUID)
Raw file bytes
Bad Request
Unauthorized
Forbidden
Not Found
Validation Error
Too Many Requests
Internal Server Error
Upstream Unavailable
No content
API key in Authorization header using Bearer .
Max number of models.
100Number of models to skip.
0Container ID or label to filter models by.
Successful Response
Object type identifier.
listTotal number of items available for this resource.
Bad Request
Unauthorized
Forbidden
Validation Error
Too Many Requests
Internal Server Error
Not Implemented
Upstream Unavailable
API key in Authorization header using Bearer .
200Successful Response
Object type identifier.
listTotal number of items available for this resource.
Bad Request
Unauthorized
Forbidden
Validation Error
Too Many Requests
Internal Server Error
Not Implemented
Upstream Unavailable
API key in Authorization header using Bearer .
Container label.
Evaluator type.
Judge model slug.
Judge prompt.
Code evaluator source.
Optional requirements list.
Optional pass threshold.
Optional metadata.
Evaluator name.
Evaluator description.
API type.
Optional inference parameters for judge evaluators (e.g. response_format, temperature).
Successful Response
Bad Request
Unauthorized
Forbidden
Not Found
Conflict
Validation Error
Too Many Requests
Internal Server Error
Not Implemented
Upstream Unavailable
API key in Authorization header using Bearer .
Successful Response
Object type.
evaluatorEvaluator id.
Deletion status.
trueBad Request
Unauthorized
Forbidden
Not Found
Conflict
Validation Error
Too Many Requests
Internal Server Error
Not Implemented
Upstream Unavailable
API key in Authorization header using Bearer .
Dataset name.
Dataset description.
Container id or label for source data.
Requested dataset size.
Optional dataset tags.
Successful Response
Bad Request
Unauthorized
Forbidden
Not Found
Conflict
Validation Error
Too Many Requests
Internal Server Error
Not Implemented
Upstream Unavailable
API key in Authorization header using Bearer .
Successful Response
Dataset id.
Object type.
datasetDataset name.
Dataset description.
Owner user id.
Project id.
Organization id.
Container id.
Requested dataset size.
Actual dataset size.
Filters applied when building the dataset.
Creation timestamp.
Optional dataset tags.
Bad Request
Unauthorized
Forbidden
Not Found
Conflict
Validation Error
Too Many Requests
Internal Server Error
Not Implemented
Upstream Unavailable
Last updated