API Documentation

Everything you need to send your first request.

Authentication

Every request needs your API key in the Authorization header. Get a key from your dashboard.

Authorization: Bearer YOUR_API_KEY

Base URL

https://ai.fireclashpro.com

Chat completion

POST /v1/chat/completions — OpenAI-compatible. The model field is required by the format but its value doesn't matter — every request is served by life-ai-1.

curl https://ai.fireclashpro.com/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "life-ai-1",
    "messages": [
      {"role": "user", "content": "Hello!"}
    ]
  }'

Python example

import requests

response = requests.post(
    "https://ai.fireclashpro.com/v1/chat/completions",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={
        "model": "life-ai-1",
        "messages": [{"role": "user", "content": "Hello!"}],
    },
)
print(response.json()["choices"][0]["message"]["content"])

Node.js example

const res = await fetch("https://ai.fireclashpro.com/v1/chat/completions", {
  method: "POST",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    model: "life-ai-1",
    messages: [{ role: "user", content: "Hello!" }],
  }),
});
const data = await res.json();
console.log(data.choices[0].message.content);

Streaming

Add "stream": true to get a Server-Sent Events response, same format as OpenAI's streaming API.

Rate limits

Each API key can make up to 200 requests per day. Going over returns HTTP 429. Create additional keys from your dashboard if you need to separate usage across projects.

Errors

401Missing, invalid, or revoked API key
429Daily request limit reached for this key
502Backend model router unreachable — try again shortly