Skip to content

Getting Started

1) Get a team token

Ask an admin for a KeyPool team token (it looks like nxkp-...).

2) Call the proxy

All upstream APIs are accessed via:

  • https://keypool.lvtu.in/v1/{service}

Example (Exa):

curl -X POST "https://keypool.lvtu.in/v1/exa/search" \
  -H "Authorization: Bearer $KEYPOOL_TEAM_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"query":"keypool", "numResults": 3}'

Most official SDKs allow overriding the base URL.

Example (OpenAI-compatible SDK routing to Groq via KeyPool):

import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.KEYPOOL_TEAM_TOKEN!,
  baseURL: "https://keypool.lvtu.in/v1/groq",
});

const res = await client.chat.completions.create({
  model: "llama-3.1-8b-instant",
  messages: [{ role: "user", content: "hi" }],
});
console.log(res.choices[0]?.message?.content);

4) Run SDK samples

We keep real SDK smoke tests in sdk-samples/:

  • sdk-samples/python
  • sdk-samples/typescript

See: sdk-samples/README.md in the repo.