Quickstart

Ship your first request in 60 seconds.

1 — get a key

Sign up at /signup (it's free; the demo plan covers 100 requests/day on Qwen3-1.7B). Once signed in, head to /dashboard/keys and click Create key. Copy the value immediately — it's shown once.

2 — call it

curl

curl https://api.qgre.com/v1/chat/completions \
  -H "Authorization: Bearer $QGRE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen3-1.7b",
    "messages": [{"role": "user", "content": "What is QGRE?"}],
    "stream": true
  }'

Python (OpenAI SDK)

from openai import OpenAI

client = OpenAI(
    api_key=os.environ["QGRE_API_KEY"],
    base_url="https://api.qgre.com/v1",
)

stream = client.chat.completions.create(
    model="qwen3-1.7b",
    messages=[{"role": "user", "content": "Explain TQ4 quantization."}],
    stream=True,
)
for chunk in stream:
    print(chunk.choices[0].delta.content or "", end="", flush=True)

Python (Anthropic SDK)

from anthropic import Anthropic

client = Anthropic(
    api_key=os.environ["QGRE_API_KEY"],
    base_url="https://api.qgre.com/anthropic",
)

with client.messages.stream(
    model="qwen3-1.7b",
    max_tokens=512,
    messages=[{"role": "user", "content": "What is the moat of QGRE?"}],
) as stream:
    for text in stream.text_stream:
        print(text, end="", flush=True)

Node (AI SDK)

import { createOpenAI } from "@ai-sdk/openai";
import { streamText } from "ai";

const qgre = createOpenAI({
  apiKey: process.env.QGRE_API_KEY,
  baseURL: "https://api.qgre.com/v1",
});

const { textStream } = await streamText({
  model: qgre("qwen3-1.7b"),
  messages: [{ role: "user", content: "Write a haiku about CUDA." }],
});
for await (const chunk of textStream) {
  process.stdout.write(chunk);
}

3 — top up

Hit any of the cards on /dashboard/billing to add prepaid credits. PIX (Brazil), OXXO (Mexico), Boleto, and credit cards are all accepted at checkout.