Maniac LogoManiac

Quickstart

Welcome to Maniac! This guide walks you through creating your first container.


Install the library

npm install maniac-js

Initialize the client

Requires an API key

const maniac = new Maniac()

Run inference

const maniac = new Maniac()

const response = await maniac.chat.completions.create({
  model: "openai/gpt-5",
  messages: [{
      role: "user",
      content: "Hello!"
  }]
})

Run inference in a container

const maniac = new Maniac()

const container = await maniac.containers.create({
  label: "my-container"
  initial_model: "openai/gpt-5",
})

const response = await maniac.chat.completions.create({
  container,
  messages: [{
      role: "user",
      content: "Hello!"
  }]
})

That's it! Your all set up with Maniac.

Monitor your usage and optimization progress in the dashboard.

Install the library

pip install maniac

Initialize the client

Requires an API key

maniac = Maniac()

Run inference

maniac = Maniac()

response = maniac.chat.completions.create(
  model = "openai/gpt-5",
  messages = [{
      role: "user",
      content: "Hello!"
  }]
)

Run inference in a container

maniac = Maniac()

container = maniac.containers.create(
  label = "my-container"
  initial_model = "openai/gpt-5",
)

response = maniac.chat.completions.create(
  container = container,
  messages = [{
      role: "user",
      content: "Hello!"
  }]
)

That's it! Your all set up with Maniac.

Monitor your usage and optimization progress in the dashboard.