API reference

Everything you need to call Geniusgents.

The desk speaks the chat-completions shape. Point a client at the base URL, send the key, and leave the rest of the request alone. Buying credits is separate: that payment is ETH on Robinhood Chain, approved in your wallet.

Quick start

Sign in on the home page, buy credits, and keep the key the dashboard shows you. Then send the first request with the same model ID you already use.

Shell
export GENIUSGENTS_API_KEY=sk-geniusgents-…

curl https://api.geniusgents.example/v1/chat/completions \
  -H "Authorization: Bearer $GENIUSGENTS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "anthropic/claude-sonnet",
    "messages": [{ "role": "user", "content": "Name three indexes that would speed this query." }]
  }'

Already on an OpenAI or OpenRouter client? Change the base URL and the key. Leave the model ID and the message list as they are.

TypeScript
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.geniusgents.example/v1",
  apiKey: process.env.GENIUSGENTS_API_KEY,
});

const reply = await client.chat.completions.create({
  model: "openai/gpt-4.1",
  messages: [{ role: "user", content: "Summarize the diff in four lines." }],
});
Python
from openai import OpenAI

client = OpenAI(
    base_url="https://api.geniusgents.example/v1",
    api_key="sk-geniusgents-…",
)

reply = client.chat.completions.create(
    model="google/gemini-2.5-flash",
    messages=[{"role": "user", "content": "List the failing assertion first."}],
)