SacredAI Heretic
sacredai-hereticDirect answers with minimal refusals. 10 trial requests, then a chat plan.
API
SacredAI and Heretic in the familiar OpenAI format. Only the base URL and key change, and limits are shared with chat.
In your account, under API keys. Two-factor authentication is required.
https://sacredgpt.pro/v1, with the key sent as Bearer sg_live_…
sacredai-heretic or the free sacredgpt-auto
curl https://sacredgpt.pro/v1/chat/completions \
-H "Authorization: Bearer $SACREDGPT_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "sacredai-heretic",
"messages": [{"role": "user", "content": "Hello!"}]
}'No adapters: set the SacredGPT base URL and your key.
from openai import OpenAI
client = OpenAI(
base_url="https://sacredgpt.pro/v1",
api_key="sg_live_...",
)
response = client.chat.completions.create(
model="sacredai-heretic",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://sacredgpt.pro/v1",
apiKey: process.env.SACREDGPT_KEY,
});
const response = await client.chat.completions.create({
model: "sacredai-heretic",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);GET /v1/models lists the models available to your key.
sacredai-hereticDirect answers with minimal refusals. 10 trial requests, then a chat plan.
sacredgpt-autoThe everyday model. Free, with a limit that renews on its own.
Add stream: true to get the reply in parts over Server-Sent Events.
Pass tools and tool_choice in the OpenAI format. Function calls come back in tool_calls.
Use response_format for JSON Schema replies. Support depends on the current Heretic route.
const stream = await client.chat.completions.create({
model: "sacredai-heretic",
messages: [{ role: "user", content: "Explain this code" }],
stream: true,
});
for await (const chunk of stream) {
process.stdout.write(chunk.choices[0]?.delta?.content ?? "");
}A key uses the same model limits as chat and Agent mode. They renew every 5 hours and every week.
You get a 429. The x-ratelimit-reset-* headers and GET /v1/usage show when the limit returns.
The server enforces RPM, TPM, and concurrent streams. They aren't configurable in the dashboard yet.
Codes your application should handle.
| HTTP | Code | What happened |
|---|---|---|
| 400 | invalid_request | Invalid request body or parameters |
| 401 | invalid_api_key | The key is invalid, expired, or lacks the required scope |
| 403 | heretic_plan_required | The 10 free Heretic requests are used up; a chat plan is required |
| 404 | model_not_found | The model does not exist or is not available to this key |
| 409 | idempotency_replay | This Idempotency-Key has already been used |
| 413 | request_too_large | The request is too large |
| 429 | sacredai_limit_reached · heretic_limit_reached | The 5-hour or 7-day limit is exhausted |
| 429 | sacredai_concurrency_limit · heretic_concurrency_limit | Too many simultaneous requests to the model |
| 429 | rate_limit_exceeded · concurrent_stream_limit | The key's RPM, TPM, or stream limit is exceeded |
| 502 | provider_error | Temporary model failure; retry the request |
| 503 | model_provider_busy | The model is overloaded; retry in a minute |
| 504 | model_timeout | The model did not finish in time |
No. The API is included in your chat plan: an ordinary key uses the same model limits as chat and Agent mode. There is no per-token price.
API request content is not added to chat history. Only technical data for limits, billing, and security is kept. Heretic requests follow the current provider's retention terms.
GET /v1/usage with the usage:read scope returns the key's usage and the shared Heretic status. For sacredai-heretic, send /usage as the last message: the reply comes without a model call and uses no limit.
No. The model returns tool_calls; your code runs the function and sends the result back to the model.
Tell us what happened and what you expected. The page address and browser details help us reproduce it faster.