docs

API documentation

ENIX AI is OpenAI Chat Completions compatible. Point any OpenAI SDK or tool at the base URL below and pay per use in pesos.

01Base URL & authentication

bash
https://enixph.com/api/v1

Send your key in every request header: Authorization: Bearer YOUR_ENIX_API_KEY

Important

Keep your API key secret. Never put it in website code that visitors can see; call ENIX AI from your server, automation tool or backend.

02Pricing: input (in) vs output (out)

in · input tokens

Everything you send to the model: the system prompt, the user message, earlier chat history, tool definitions and images. Longer conversations cost more input because the full history is sent every time.

out · output tokens

Everything the model writes back: the answer, code, tool calls and any reasoning/thinking text. Output is usually priced higher. Limit it with max_tokens.

Prices are per 1 million tokens (about 750,000 English words). 1 token is roughly 4 characters or ¾ of a word.

Example with doubao-seed-2-0-code-preview-260215 (₱40.3582 in · ₱201.7911 out):

# you send 2,000 tokens and get 500 tokens back
input = 2,000 / 1,000,000 × ₱40.3582 = ₱0.0807
output = 500 / 1,000,000 × ₱201.7911 = ₱0.1009
total = ₱0.1816

Tip

Every response includes a usage object with prompt_tokens (in) and completion_tokens (out). Your exact charge appears in Usage on your dashboard.

03Chat completions

POST/chat/completions

bash
curl https://enixph.com/api/v1/chat/completions \
-H "Authorization: Bearer YOUR_ENIX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "DeepSeek-V4-Flash",
"messages": [{"role": "user", "content": "Hello!"}]
}'

Supports stream, tools, tool_choice, response_format, stop, temperature and max_tokens. For streaming, read Server-Sent Events until [DONE]. Usage is billed from the final usage chunk.

04All models

Every model you can call, with live peso prices. Use the exact ID as model. Agentic models can call tools.

66 models
Model ID (click to copy)TypeAbilitiesPrice
imageStandard: ₱2.5224 / image
imageStandard: ₱6.306 / image
imageStandard: ₱2.2701 / image
image≤2,250,000 pixels: ₱3.153 / image>2,250,000 pixels: ₱6.306 / image
textagentic · toolscoding₱40.3582 in · ₱201.7911 out / 1M tokens
textagentic · tools₱7.5671 in · ₱45.4029 out / 1M tokens
textagentic · toolsvision₱2.5224 in · ₱25.2238 out / 1M tokens
textagentic · tools₱40.3582 in · ₱201.7911 out / 1M tokens
textagentic · tools₱75.6716 in · ₱378.3582 out / 1M tokens
text₱12.612 in · ₱25.2238 out / 1M tokens
textagentic · tools₱12.612 in · ₱50.4478 out / 1M tokens
textagentic · toolsvision₱12.612 in · ₱50.4478 out / 1M tokens
textagentic · toolscoding₱56.7537 in · ₱170.2612 out / 1M tokens
textagentic · tools₱12.612 in · ₱50.4478 out / 1M tokens
textagentic · toolscoding₱26.4851 in · ₱105.9403 out / 1M tokens
textagentic · tools₱26.4851 in · ₱105.9403 out / 1M tokens
textagentic · toolscodingvision₱26.4851 in · ₱105.9403 out / 1M tokens
textagentic · tools₱13.3088 in · ₱53.235 out / 1M tokens
textagentic · tools₱50.4478 in · ₱264.8507 out / 1M tokens
textagentic · toolscodingvision₱81.9776 in · ₱340.5224 out / 1M tokens
textagentic · toolscodingvision₱81.9776 in · ₱340.5224 out / 1M tokens
textagentic · toolscodingvision₱252.2388 in · ₱1,261.194 out / 1M tokens
textagentic · toolscoding₱171.8964 in · ₱899.1506 out / 1M tokens
textagentic · toolscoding₱343.7928 in · ₱1,798.301 out / 1M tokens
textagentic · tools₱10.0896 in · ₱80.7164 out / 1M tokens
textagentic · tools₱7.5671 in · ₱60.5373 out / 1M tokens
textagentic · tools₱5.0447 in · ₱40.3582 out / 1M tokens
textagentic · toolsvision₱15.1343 in · ₱90.806 out / 1M tokens
textagentic · tools₱37.8358 in · ₱227.0149 out / 1M tokens
textagentic · tools₱22.7015 in · ₱136.2089 out / 1M tokens
textagentic · tools₱1.8918 in · ₱18.9179 out / 1M tokens
text₱6.306 in · ₱25.2238 out / 1M tokens
textagentic · tools₱10.0896 in · ₱25.2238 out / 1M tokens
textagentic · tools₱10.0896 in · ₱25.2238 out / 1M tokens
textagentic · toolsvision₱22.7015 in · ₱87.0224 out / 1M tokens
textagentic · toolsvision₱12.612 in · ₱126.1194 out / 1M tokens
textagentic · tools₱2.5224 in · ₱25.2238 out / 1M tokens
textagentic · tools₱10.0896 in · ₱60.5373 out / 1M tokens
textagentic · toolsvision₱15.1343 in · ₱90.806 out / 1M tokens
textagentic · toolsvision₱25.2238 in · ₱151.3433 out / 1M tokens
textagentic · tools₱2.5224 in · ₱10.0896 out / 1M tokens
textagentic · toolscoding₱75.6716 in · ₱227.0149 out / 1M tokens
textagentic · toolscoding₱25.2238 in · ₱100.8955 out / 1M tokens
textagentic · tools₱10.0896 in · ₱34.0522 out / 1M tokens
textagentic · tools₱151.3433 in · ₱454.0298 out / 1M tokens
textagentic · tools₱12.612 in · ₱50.4478 out / 1M tokens
textagentic · tools₱15.1343 in · ₱50.4478 out / 1M tokens
textagentic · toolscoding₱50.4478 in · ₱227.0149 out / 1M tokens
textagentic · toolscoding₱63.0597 in · ₱277.4627 out / 1M tokens
textagentic · toolscoding₱75.6716 in · ₱302.6866 out / 1M tokens
textagentic · toolscoding₱100.8955 in · ₱353.1343 out / 1M tokens
textagentic · tools₱100.8955 in · ₱353.1343 out / 1M tokens
textagentic · toolsvision₱63.0597 in · ₱277.4627 out / 1M tokens
textagentic · tools₱10.0896 in · ₱35.3134 out / 1M tokens
video480P: ₱3.7836 / sec720P: ₱7.5672 / sec1080P: ₱22.7015 / sec
video480P: ₱5.6754 / sec720P: ₱11.3507 / sec1080P: ₱22.7015 / sec
video480P: ₱1.916 / sec720P: ₱4.1203 / sec1080P: ₱9.2707 / sec
video480P@no-video: ₱579.2846 / 1M tokens480P@video: ₱352.608 / 1M tokens720P@no-video: ₱579.2846 / 1M tokens
video480P@no-video: ₱881.5201 / 1M tokens480P@video: ₱528.9121 / 1M tokens720P@no-video: ₱881.5201 / 1M tokens
video720P@silent: ₱7.5672 / sec720P@sound: ₱11.3507 / sec720P@voice: ₱13.8731 / sec
video720P@silent: ₱7.5672 / sec720P@sound: ₱11.3507 / sec720P@voice: ₱13.8731 / sec
video736p: ₱3.7779 / sec
video736p: ₱3.7779 / sec
video480p: ₱2.5186 / sec768p: ₱3.1483 / sec
video480P: ₱1.7657 / sec1080P: ₱8.8284 / sec
video480P: ₱1.7657 / sec1080P: ₱8.8284 / sec

GET/models

bash
curl https://enixph.com/api/v1/models -H "Authorization: Bearer YOUR_ENIX_API_KEY"

05Developer frameworks

Works anywhere the OpenAI API works: just change the base URL and key.

python
# pip install openai
from openai import OpenAI
client = OpenAI(api_key="YOUR_ENIX_API_KEY", base_url="https://enixph.com/api/v1")
tools = [{
"type": "function",
"function": {
"name": "get_weather",
"description": "Get the weather for a city",
"parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]},
},
}]
res = client.chat.completions.create(
model="doubao-seed-2-0-code-preview-260215",
messages=[{"role": "user", "content": "Weather in Manila?"}],
tools=tools,
)
print(res.choices[0].message.tool_calls)

06Automation tools

Connect ENIX AI to n8n, Make or Zapier workflows.

  1. Open Credentials → Add credential → OpenAI.
  2. API Key: your ENIX API key. Base URL: https://enixph.com/api/v1
  3. Add an "OpenAI Chat Model" (or AI Agent → Chat Model) node and pick the credential.
  4. Model: choose "By ID" and type doubao-seed-2-0-code-preview-260215. Tools connected to the AI Agent node work with agentic models.
bash
# Alternative: HTTP Request node
Method: POST
URL: https://enixph.com/api/v1/chat/completions
Headers: Authorization = Bearer YOUR_ENIX_API_KEY
Body (JSON):
{
"model": "doubao-seed-2-0-code-preview-260215",
"messages": [{"role": "user", "content": "{{ $json.text }}"}]
}

07Image generation

POST/images/generations

bash
curl https://enixph.com/api/v1/images/generations \
-H "Authorization: Bearer YOUR_ENIX_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "qwen-image-3.0", "prompt": "A jeepney in neon Manila", "size": "1024x1024", "n": 1}'

Returns data[].url. Billed per image.

08Video generation

Videos are asynchronous: create a job, poll its status, then download. Billed when the job completes; failed jobs are free.

POST/videosGET/videos/{id}GET/videos/{id}/content

bash
# 1. create
curl https://enixph.com/api/v1/videos -H "Authorization: Bearer YOUR_ENIX_API_KEY" -H "Content-Type: application/json" \
-d '{"model": "Seedance-2.0", "prompt": "Drone shot over rice terraces", "size": "720P 16:9", "duration": 5}'
# -> {"id": "vid_...", "status": "queued", ...}
# 2. poll until status == "completed" (returns url + cost_php)
curl https://enixph.com/api/v1/videos/vid_... -H "Authorization: Bearer YOUR_ENIX_API_KEY"
# 3. download mp4
curl -o out.mp4 https://enixph.com/api/v1/videos/vid_.../content -H "Authorization: Bearer YOUR_ENIX_API_KEY"
ModelSize formatDuration (s)Image input
Seedance-2.0 / 2.5"size": "720P 16:9"4–15 / 4–30first_frame + images (up to 9 / 30)
Seedance-1.0-Pro"size": "720P 16:9"5–10first_frame or images (up to 4)
kling-v3-t2v / kling-v3-i2v"size": "720P 16:9"5–10i2v: first_frame (required)
Wan3.0-Video / Prime"size": "720P 16:9" ("720P adaptive" with first_frame)2–30first_frame or images (up to 10)
Wan2.2-T2V-Plus"size": "832x480" | "1920x1080"5—
Wan2.2-I2V-Plus"size": "480P" | "1080P"5first_frame (required)
minimax_h3_b99_001"size": "736p landscape"1–15—
minimax_h3_b99_002"size": "736p landscape"1–15first_frame + last_frame
minimax_h3_zm_u24"size": "768p portrait"1–15images: [urls] (1–9)

Note

For MiniMax models use landscape (16:9), portrait (9:16) or square (1:1) after the resolution, e.g. "768p portrait".

09Balance monitor

GET/balance

Check your peso balance and spending from any app, script or automation using your API key. Free to call and not billed. Use it to stop jobs or alert yourself before you run out of credits.

bash
curl https://enixph.com/api/v1/balance -H "Authorization: Bearer YOUR_ENIX_API_KEY"

Response

json
{
"object": "balance",
"currency": "PHP",
"balance_php": 842.5, // available to spend now
"on_hold_php": 3.2, // reserved for requests still running
"spent_php": { "today": 12.4, "last_7_days": 96.1, "last_30_days": 310.7, "this_key_total": 54.2 },
"requests_last_24h": 128,
"avg_daily_spend_php": 13.73, // based on the last 7 days
"estimated_days_left": 61, // null when there is no recent spending
"low_balance": false, // true below ₱50
"checked_at": "2026-06-01T08:00:00.000Z"
}

Example: low-balance alert (Node.js)

javascript
const r = await fetch("https://enixph.com/api/v1/balance", {
headers: { Authorization: "Bearer " + process.env.ENIX_API_KEY },
});
const b = await r.json();
if (b.balance_php < 100) {
console.warn(`ENIX balance low: ₱${b.balance_php} (≈${b.estimated_days_left ?? "?"} days left)`);
// send yourself an email / Slack / Telegram message here
}

Example: Python

python
import os, requests
b = requests.get("https://enixph.com/api/v1/balance",
headers={"Authorization": f"Bearer {os.environ['ENIX_API_KEY']}"}).json()
print(f"Balance: ₱{b['balance_php']:.2f} · spent today ₱{b['spent_php']['today']:.2f}")

Note

Poll every few minutes at most. A request that would cost more than your available balance is refused with 402, so you are never charged into a negative balance.

10Errors

400Invalid request body or parameters
401Missing or invalid ENIX API key
402Insufficient peso balance, please top up
404Model not available
429Rate limited, retry with backoff
502 / 503Upstream temporarily unavailable