Skip to main content
This guide will walk you through setting up your account, generating API credentials, and making your first request using Javascript, Python, or standard CLI tools.

Step 1: Generate an API Key

  1. Sign in to your Michi Dashboard.
  2. Create a new Project.
  3. Under API Keys, generate a new key.
Ensure you copy the API key immediately and store it securely. You will use it to authorize requests as a Bearer token.

Step 2: Choose Your Platform

Select your preferred language below to view the client implementation code:

💻 Javascript / Node.js

First, install the standard openai library:
Initialize the client with the Michi endpoint:

🐍 Python

Install the package:
Implement the completions request:

🛠️ CLI / Curl

For shell scripting or command line utilities:

Step 3: Monitor Live Telemetry

Once you make your first request, open the Logs tab in your dashboard to view:
  • Exact response latencies (in milliseconds)
  • Total prompt & completion tokens
  • Dynamic cost calculation based on selected models
  • Routing status (e.g. which model was selected)