Quickstart
Use the OpenAI SDK with Teselo’s base URL and your Teselo API key.
1. Create an API key
Sign in and open API keys. Choose Create key and give the key a name.
Copy the credential when it is created. You won’t be able to see it again. Store it in your server’s TESELO_API_KEY environment variable, not in source control or browser code.
2. Install the SDK
Python install
pip install openaiJavaScript install
npm install openai3. Send a request
In Python, change base_url to https://api.beyonditsparts.ai/v1. The JavaScript SDK calls the same option baseURL. Authenticate with your Teselo key and replace the model placeholder with the confirmed model ID.
Python
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.beyonditsparts.ai/v1",
api_key=os.environ["TESELO_API_KEY"],
)
response = client.chat.completions.create(
model="[MODEL ID — LEARNING]",
messages=[{"role": "user", "content": "What is 12 times 8?"}],
)
print(response.choices[0].message.content)JavaScript · server-side
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.beyonditsparts.ai/v1",
apiKey: process.env.TESELO_API_KEY,
});
const response = await client.chat.completions.create({
model: "[MODEL ID — LEARNING]",
messages: [{ role: "user", content: translate("text354", "en") }],
});
console.log(response.choices[0].message.content);Model IDs: [MODEL IDS]
A matching proven skill answers without a model call. New work goes to a frontier model; successful work can be learned into your private library.