API

One endpoint, one key, $0.03 per million tokens. OpenAI-compatible, ready in 30 seconds.

Endpoints

GET

/v1/models

Lists available models with context limits.

auth
POST

/v1/chat/completions

Chat completion, OpenAI format. Streaming via stream: true.

authstreaming
GET

/api/usage

Your counters: requests, tokens, estimated cost. One call.

auth
GET

/health

API state. No auth required.

public

Authentication

All requests (except /health) require your MIBIV key in the Authorization header:

Authorization: Bearer MY_MIBIV_KEY

Your key is miv_xxxxxxxxxxxx. Created once, usable everywhere. No rotation, no scopes — it's your key, keep it simple.

Examples

Curl

curl https://api.mibiv.com/v1/chat/completions \
  -H "Authorization: Bearer MY_MIBIV_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5.3-flash",
    "messages": [{"role": "user", "content": "Hi!"}],
    "max_tokens": 200
  }'

JavaScript (fetch)

const res = await fetch("https://api.mibiv.com/v1/chat/completions", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${MY_MIBIV_KEY}`,
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    model: "glm-5.3-flash",
    messages: [{ role: "user", content: "Hi!" }],
    max_tokens: 200
  })
});
const data = await res.json();
console.log(data.choices[0].message.content);

Node.js (OpenAI SDK)

import OpenAI from "openai";

const mibiv = new OpenAI({
  baseURL: "https://api.mibiv.com/v1",
  apiKey: process.env.MIBIV_KEY
});

const result = await mibiv.chat.completions.create({
  model: "glm-5.3-flash",
  messages: [{ role: "user", content: "Hi!" }]
});

console.log(result.choices[0].message.content);

Python

from openai import OpenAI

client = OpenAI(
    base_url="https://api.mibiv.com/v1",
    api_key="MY_MIBIV_KEY"
)

resp = client.chat.completions.create(
    model="glm-5.3-flash",
    messages=[{"role": "user", "content": "Hi!"}],
    max_tokens=200
)
print(resp.choices[0].message.content)

Error codes

CodeMeaning
401Missing or invalid key — check the Authorization header
404Unknown model or endpoint
429Too many requests — slow down, or contact us for volume
502Upstream provider unavailable — retry

Limits

60
requests / minute
16K
tokens / request
180K
max context
—
no monthly limit

Limits are per MIBIV key, not shared across clients. For higher volume, contact [email protected].

Ready to code?

Get your MIBIV key and make your first call in under 2 minutes.

Create my free key