OpenAI-compatible API
Use RedWake AI from your own apps
Create a user API key from Account, subscribe for balance, then call the RedWake endpoint. Each key is bound to a model and system prompt, so the AI follows the behavior configured for that key.
Create key
Account → Create API Key. Choose model, request limit, and system prompt.
Subscribe
Subscribe VIP or Premium via Lemon Squeezy. Balance updates live after checkout.
Call API
Use Authorization: Bearer rw-... with the chat completions endpoint.
Endpoint
https://redwakeai.vercel.app/api/v1/chat/completionscURL example
curl -N https://redwakeai.vercel.app/api/v1/chat/completions \
-H "Authorization: Bearer rw-YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"messages": [
{ "role": "user", "content": "Build me a landing page" }
],
"stream": true
}'JavaScript / OpenAI SDK
The endpoint is OpenAI-compatible, so the official SDK works with a one-line baseURL change.
import OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://redwakeai.vercel.app/api/v1',
apiKey: 'rw-YOUR_KEY',
})
const stream = await client.chat.completions.create({
model: 'REDWAKE FAST',
messages: [{ role: 'user', content: 'Hello!' }],
stream: true,
})
for await (const chunk of stream) {
process.stdout.write(chunk.choices[0]?.delta?.content || '')
}HTML preview in chat
If the assistant returns an HTML code block, RedWake shows a sandboxed preview card in the chat.
```html <div style="padding:40px;background:#111;color:white">Hello RedWake</div> ```
Billing
User-owned keys consume account balance. A small per-request amount is charged after the upstream AI accepts the request. Subscribe via Lemon Squeezy from the Account page — VIP and Premium plans fund your balance automatically.