Quickstart

Create a key, make one request, read the response. About a minute.

1. Create an API key

  • Sign in to your account and open stevai.com/app/keys.
  • Click Create key, give it a name (e.g. “Production server”).
  • Copy the key immediately — it's shown once and starts with sk_live_. We only store a hash and can never show it again.

Keep it on your server. Treat it like a password.

2. Install our SDK

The quickest way is our own SDK — no third‑party AI library required.

javascript / typescript
npm install @stevai-ai/sdk
python
pip install stevai

3. Make your first request

javascript / typescript
import { Stevai } from "@stevai-ai/sdk";

const stevai = new Stevai({ apiKey: process.env.STEVAI_API_KEY });

const res = await stevai.chat.completions.create({
  messages: [{ role: "user", content: "Say hello in five words." }],
});
console.log(res.choices[0].message.content);
python
from stevai import Stevai

stevai = Stevai(api_key="sk_live_...")  # or set STEVAI_API_KEY
res = stevai.chat.completions.create(
    messages=[{"role": "user", "content": "Say hello in five words."}],
)
print(res["choices"][0]["message"]["content"])

Prefer plain HTTP? Every endpoint works with a simple request — no SDK needed:

curl
curl -X POST https://stevai.com/api/v1/chat/completions \
  -H "Authorization: Bearer sk_live_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"messages": [{"role": "user", "content": "Say hello in five words."}]}'

That's it — you're calling the network. See the SDKs page for the full surface (streaming, images, audio, moderation), Chat API for the request/response reference, and Errors & reliability for the one behaviour worth handling: a cold start.