Booting neural core...
Booting neural core...
freya.cybernethicc.comFREYA is an AI inference API that provides access to multiple model tiers through a single, OpenAI-compatible endpoint. Use it to add AI capabilities to your applications with simple HTTP requests.
OpenAI-compatible
Drop-in replacement using the standard /v1/chat/completions format.
Three model tiers
Nano, Pro, and Big Brain for different use cases and budgets.
Pay-per-token
Billed from your billing account balance with no minimum commitment.
Streaming support
Server-sent events (SSE) for real-time token delivery.
Base URL
https://freya.cybernethicc.com/v1Content Type
application/jsonSet up your account and make your first AI request.
Create an account
Sign up at portal.cybernethicc.com and set up a billing account.
Top up your balance
Add funds to your billing account. FREYA usage is deducted from your account balance in real time.
Generate an API key
Navigate to Services > FREYA > API Keys in the portal. Click Create Key and save the key securely -- it is shown only once.
Make your first request
Use the API key as a Bearer token and call the chat completions endpoint.
All inference requests are authenticated with your FREYA API key. Include it as a Bearer token in the Authorization header.
Authorization: Bearer FREYA-YOUR_API_KEYKeep your API key secret
Do not expose API keys in client-side code or public repositories. API keys are shown only once when created. If compromised, revoke it immediately in the portal and create a new one.
API keys are prefixed with FREYA-. Requests with missing, invalid, or revoked keys receive a 401 Unauthorized response.
FREYA offers three model tiers. Choose the right tier based on your task complexity and budget requirements.
freya-nanoFast and affordable. Optimized for high-throughput tasks like chat, Q&A, summarization, and simple generation.
Rp 10,000 / 1M tokens
freya-proBalanced quality and speed. Great for coding assistance, content generation, data analysis, and structured output.
Rp 25,000 / 1M tokens
freya-bigbrainMost capable model. Designed for complex reasoning, deep analysis, research, and tasks requiring nuanced understanding.
Rp 750,000 / 1M tokens
Retrieve the list of available models. No authentication required.
GET https://freya.cybernethicc.com/v1/modelsCreate a chat completion by sending a conversation history to the model. The API follows the OpenAI chat completions format.
https://freya.cybernethicc.com/v1/chat/completions| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | Optional | Model tier: freya-nano, freya-pro, or freya-bigbrain. Defaults to freya-nano. |
| messages | array | Required | Array of message objects with role (system, user, assistant) and content |
| temperature | number | Optional | Sampling temperature between 0 and 2. |
| max_tokens | integer | Optional | Maximum number of tokens to generate. |
| stream | boolean | Optional | If true, returns a stream of server-sent events. Default: false |
| top_p | number | Optional | Nucleus sampling. Use either temperature or top_p, not both. |
{
"id": "chatcmpl-abc123",
"object": "chat.completion",
"created": 1711680000,
"model": "freya-pro",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Quantum computing uses quantum bits (qubits) that can exist in multiple states simultaneously..."
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 32,
"completion_tokens": 128,
"total_tokens": 160
}
}Set stream: true to receive tokens as they are generated via server-sent events (SSE). Each event contains a JSON chunk with a delta field.
data: {"id":"chatcmpl-abc123","object":"chat.completion.chunk","created":1711680000,"model":"freya-pro","choices":[{"index":0,"delta":{"role":"assistant","content":"Quantum"},"finish_reason":null}]}
data: {"id":"chatcmpl-abc123","object":"chat.completion.chunk","created":1711680000,"model":"freya-pro","choices":[{"index":0,"delta":{"content":" computing"},"finish_reason":null}]}
data: [DONE]The stream ends with a data: [DONE] message. The OpenAI Python and Node.js SDKs handle streaming automatically.
curl https://freya.cybernethicc.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer FREYA-YOUR_API_KEY" \
-d '{
"model": "freya-pro",
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Explain quantum computing in simple terms."}
],
"temperature": 0.7,
"max_tokens": 1024
}'The Python and Node.js examples use the official openai SDK. Install with pip install openai or npm install openai. The Go example uses github.com/openai/openai-go.
from openai import OpenAI
client = OpenAI(
api_key="FREYA-YOUR_API_KEY",
base_url="https://freya.cybernethicc.com/v1",
)
stream = client.chat.completions.create(
model="freya-pro",
messages=[
{"role": "user", "content": "Write a short poem about the ocean."},
],
stream=True,
)
for chunk in stream:
if chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)Limits are set per API key in the portal. A new key allows 60 requests per minute; you can change it, and add a daily or monthly spend cap. When a limit is reached the API returns429 Too Many Requests with aRetry-After header in seconds.
A key can also be limited to certain models and given an expiry date. A request for a model the key may not use returns 403; an expired key returns 401.
Need higher limits? Raise them on the key, or contact support.
FREYA uses token-based pricing, billed per 1 million tokens. Each request is charged to your billing account balance as soon as it completes, and shows up in the usage tab of the portal.
| Model Tier | Model ID | Price per 1M Tokens |
|---|---|---|
| FREYA Nano | freya-nano | Rp 10,000 |
| FREYA Pro | freya-pro | Rp 25,000 |
| FREYA Big Brain | freya-bigbrain | Rp 750,000 |
How billing works
Both input (prompt) and output (completion) tokens are counted toward the total. After each request, the cost is calculated and deducted from your billing account balance. If your balance reaches zero, requests will return a 402 Payment Required error.
For steady, heavy workloads you can rent a GPU server of your own, billed monthly. Our team sets it up and it appears in your Core server list, with unlimited FREYA tokens on it.
The API returns standard HTTP status codes and a JSON error body.
{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or revoked API key"
}
}| Status | Code | Description |
|---|---|---|
| 400 | BAD_REQUEST | Missing or invalid parameters, an unknown model, or no billing account linked to the key |
| 401 | UNAUTHORIZED | Missing, invalid, revoked or expired API key |
| 402 | insufficient_balance | Your billing account balance is zero. Top up to continue. |
| 403 | FORBIDDEN | This key is not allowed to use the requested model |
| 429 | rate_limit_exceeded / spending_limit_reached | A rate or spend limit on the key was reached. Wait for Retry-After seconds. |
| 5xx | provider_error | The model could not complete the request. Retry with exponential backoff. |
Cybernethicc FREYA API v1