Project in progress — API

The Qlub AI API for developers

For organizations with a development team: Qlub AI models, hosted in Québec, through an OpenAI-compatible API.

qlub ia — api

curl https://ia.qlub.social/v1/chat/completions \
  -H "Authorization: Bearer $QLUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qlub-ia",
    "messages": [
      {"role": "system", "content": "You are the communications assistant of a Québec organization."},
      {"role": "user", "content": "Adapt this press release for LinkedIn and Qlub Social."}
    ]
  }'
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://ia.qlub.social/v1",
    api_key=os.environ["QLUB_API_KEY"],
)

response = client.chat.completions.create(
    model="qlub-ia",
    messages=[
        {"role": "system", "content": "You are the communications assistant of a Québec organization."},
        {"role": "user", "content": "Adapt this press release for LinkedIn and Qlub Social."},
    ],
)
print(response.choices[0].message.content)
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://ia.qlub.social/v1",
  apiKey: process.env.QLUB_API_KEY,
});

const response = await client.chat.completions.create({
  model: "qlub-ia",
  messages: [
    { role: "system", content: "You are the communications assistant of a Québec organization." },
    { role: "user", content: "Adapt this press release for LinkedIn and Qlub Social." },
  ],
});
console.log(response.choices[0].message.content);
curl https://ia.qlub.social/v1/embeddings \
  -H "Authorization: Bearer $QLUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "qlub-ia-embeddings", "input": "Press release: launching our new season"}'

01 — The API

OpenAI

OpenAI-compatible

Your existing tools and libraries work by changing only the address and the key. Embeddings power search across your content.

Endpoints

  • POST /v1/chat/completions Text generation and conversations
  • POST /v1/embeddings Representations for search
  • GET /v1/models List of available models

02 — Billing

developer portal — usage · november

key · product team

12,480 requests · qlub-ia

3,210 requests · qlub-ia-embeddings

per-request billing · monthly invoice

Per request

You pay for each request, nothing more

The Qlub AI API is billed per request: every call to the models is counted, and you only pay for what your applications use. Rates are set out in your proposal.

  • Every request counted, by key and by model
  • Usage and costs tracked in the developer portal
  • A monthly invoice, based on actual use

03 — Get started

Get started

  1. 01Get a keyAfter a meeting, your team gets its key and tracks usage in the developer portal.
  2. 02Change the addressUse https://ia.qlub.social/v1 as the base URL.
  3. 03Make your first callWith the qlub-ia model, in Python, JavaScript or cURL.

04 — The models

Two models

Open models from the Qwen family, served by Qlub on its infrastructure hosted by Leaseweb, in Montréal.

qlub-ia — generation

Writing, summarizing, French–English translation, information extraction and agents.

qlub-ia-embeddings — search

Representations of your documents for semantic search and answers grounded in your sources.

Want to connect your applications to Qlub AI?