Quickstart
Make your first request in under a minute.
1. Get an API key
Sign in to the dashboard and copy your API key. Keep it secret: anyone with the key can use your budget.
Store it in an environment variable:
export STANDARDCOMPUTE_API_KEY=YOUR_API_KEY
2. Send a request
- curl
- Python
- Node.js
curl https://api.stdcmpt.com/v1/chat/completions \
-H "Authorization: Bearer $STANDARDCOMPUTE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "standardcompute",
"messages": [{ "role": "user", "content": "Say hello in one sentence." }]
}'
pip install openai
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.stdcmpt.com/v1",
api_key=os.environ["STANDARDCOMPUTE_API_KEY"],
)
response = client.chat.completions.create(
model="standardcompute",
messages=[{"role": "user", "content": "Say hello in one sentence."}],
)
print(response.choices[0].message.content)
npm install openai
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.stdcmpt.com/v1",
apiKey: process.env.STANDARDCOMPUTE_API_KEY,
});
const response = await client.chat.completions.create({
model: "standardcompute",
messages: [{ role: "user", content: "Say hello in one sentence." }],
});
console.log(response.choices[0].message.content);
3. Check your logs
Open Request Logs to see the request and the model that answered it.