API

OpenAI-compatible, one key, $0.03 per million tokens β€” input, cache and output at the same price. Ready in 30 seconds.

Endpoints

GET

/v1/models

Lists available models with their context limits.

auth
POST

/v1/chat/completions

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

authstreaming
GET

/api/status

Account status: email, balance, type (top-up or plan), subscription, keys (masked), usage, pricing.

auth
GET

/api/usage

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

auth
GET

/api/billing

Balance, pricing, transactions and current subscription.

auth
GET

/api/auth/keys

Manage up to 10 keys: creation, revocation, allowed IPs, budgets.

authsession
GET

/health

API status. No auth required.

public

Authentication

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

Authorization: Bearer MA_CLE_MIBIV

Your key is miv_xxxxxxxxxxxx. Created once, usable everywhere. No rotation, no scopes β€” simple.

Pricing

Pay-as-you-go, prepaid. One price, three uses:

β†˜
Input
0,03 $
/ 1M tokens
10M input β†’ $0.30
⟳
Cache
0,03 $
/ 1M tokens
10M cached β†’ $0.30
β†—
Output
0,03 $
/ 1M tokens
1M output β†’ $0.03
βœ“ Uniform pricing β€” input, cache and output at the same price. $1 β‰ˆ 33M tokens.

Prices are exposed in GET /v1/models (fields pricing and pricing_per_1m): your harnesses (LiteLLM, Pi, OpenCode, cost scripts) read them to compute automatically. $1 β‰ˆ 33M tokens.

Credit is prepaid ($5 minimum), deducted per use. No subscription needed: you can also top up occasionally or choose a plan.

Thinking & streaming

The model glm-5.3-flash can reason before answering. Enable the thinking level with reasoning_effort in the request body (standard OpenAI format):

{
  "model": "glm-5.3-flash",
  "messages": [...],
  "reasoning_effort": "high"
}

Levels: low, medium, high (default: off). Reasoning tokens are billed at the output rate. Thinking content is returned in reasoning_content (or reasoning in streaming).

Streaming is available with "stream": true β€” tokens arrive progressively (SSE). Compatible with most OpenAI clients.

Examples

Curl

curl https://api.mibiv.com/v1/chat/completions \
  -H "Authorization: Bearer MA_CLE_MIBIV" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5.3-flash",
    "messages": [{"role": "user", "content": "Salut !"}],
    "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: "Salut !" }],
    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: "Salut !" }]
});

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

Python

from openai import OpenAI

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

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

Multimodal β€” image, video, file

The model accepts image_url blocks (public URL or base64 data-URI) in content. Multiple images per request are supported. Pricing unchanged: $0.03 / 1M, input and output β€” no image surcharge.

{
  "model": "glm-5.3-flash",
  "max_tokens": 200,
  "messages": [{
    "role": "user",
    "content": [
      {"type": "text", "text": "Que vois-tu sur cette capture ?"},
      {"type": "image_url", "image_url": {"url": "https://exemple.fr/capture.png"}}
    ]
  }]
}

Error codes

CodeSignification
401Missing or invalid key β€” check the Authorization header
402Balance exhausted β€” top up your account
404Unknown model or nonexistent endpoint
429Too many requests β€” slow down, or contact us for volume
504Upstream timeout β€” retry (the provider may take over 75 s to answer)

OpenAPI 3.1 specification (openapi.json) β†’ Full error code documentation β†’

Limits

400K
tokens of context
16K
max output tokens
10
API keys per account
β€”
no monthly limit

Budgets are set per key (daily / monthly) from your member area. For higher volume, contact [email protected].

Ready to code?

Create your account, add $5 and make your first call in under 2 minutes.

Create my account