API keys
OpenAI-compatible. Same credits as the app. 10 requests per second.
No keys yet. Create one to call the API.
| Name | Key | Created | Last used |
|---|
Quick start
BASE
https://askpuck.app/v1import os from openai import OpenAI client = OpenAI( base_url="https://askpuck.app/v1", api_key=os.environ["PUCK_KEY"], ) r = client.chat.completions.create( model="puck-cortex-1.2", messages=[{"role": "user", "content": "Hello"}], )
import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://askpuck.app/v1", apiKey: process.env.PUCK_KEY, }); const r = await client.chat.completions.create({ model: "puck-cortex-1.2", messages: [{ role: "user", content: "Hello" }], });
curl https://askpuck.app/v1/chat/completions \ -H "Authorization: Bearer $PUCK_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"puck-cortex-1.2","messages":[{"role":"user","content":"Hello"}]}'
API usage
last 14 daysCalls—
Spent—
Keys—
Rate limit10 req / s
Context1M tokens
Max output256k tokens
Modelscortex-1.2 · 1.1
Your new key
Copy it now. It is not shown again.
Anyone with this key spends your credits. Keep it on a server, never in a web page or in git.