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
https://enixph.com/api/v1
Send your key in every request header: Authorization: Bearer YOUR_ENIX_API_KEY
Important
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):
Tip
usage object with prompt_tokens (in) and completion_tokens (out). Your exact charge appears in Usage on your dashboard.03Chat completions
POST/chat/completions
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.
| Model ID (click to copy) | Type | Abilities | Price |
|---|---|---|---|
| image | Standard: ₱2.5224 / image | ||
| image | Standard: ₱6.306 / image | ||
| image | Standard: ₱2.2701 / image | ||
| image | ≤2,250,000 pixels: ₱3.153 / image>2,250,000 pixels: ₱6.306 / image | ||
| text | agentic · toolscoding | ₱40.3582 in · ₱201.7911 out / 1M tokens | |
| text | agentic · tools | ₱7.5671 in · ₱45.4029 out / 1M tokens | |
| text | agentic · toolsvision | ₱2.5224 in · ₱25.2238 out / 1M tokens | |
| text | agentic · tools | ₱40.3582 in · ₱201.7911 out / 1M tokens | |
| text | agentic · tools | ₱75.6716 in · ₱378.3582 out / 1M tokens | |
| text | ₱12.612 in · ₱25.2238 out / 1M tokens | ||
| text | agentic · tools | ₱12.612 in · ₱50.4478 out / 1M tokens | |
| text | agentic · toolsvision | ₱12.612 in · ₱50.4478 out / 1M tokens | |
| text | agentic · toolscoding | ₱56.7537 in · ₱170.2612 out / 1M tokens | |
| text | agentic · tools | ₱12.612 in · ₱50.4478 out / 1M tokens | |
| text | agentic · toolscoding | ₱26.4851 in · ₱105.9403 out / 1M tokens | |
| text | agentic · tools | ₱26.4851 in · ₱105.9403 out / 1M tokens | |
| text | agentic · toolscodingvision | ₱26.4851 in · ₱105.9403 out / 1M tokens | |
| text | agentic · tools | ₱13.3088 in · ₱53.235 out / 1M tokens | |
| text | agentic · tools | ₱50.4478 in · ₱264.8507 out / 1M tokens | |
| text | agentic · toolscodingvision | ₱81.9776 in · ₱340.5224 out / 1M tokens | |
| text | agentic · toolscodingvision | ₱81.9776 in · ₱340.5224 out / 1M tokens | |
| text | agentic · toolscodingvision | ₱252.2388 in · ₱1,261.194 out / 1M tokens | |
| text | agentic · toolscoding | ₱171.8964 in · ₱899.1506 out / 1M tokens | |
| text | agentic · toolscoding | ₱343.7928 in · ₱1,798.301 out / 1M tokens | |
| text | agentic · tools | ₱10.0896 in · ₱80.7164 out / 1M tokens | |
| text | agentic · tools | ₱7.5671 in · ₱60.5373 out / 1M tokens | |
| text | agentic · tools | ₱5.0447 in · ₱40.3582 out / 1M tokens | |
| text | agentic · toolsvision | ₱15.1343 in · ₱90.806 out / 1M tokens | |
| text | agentic · tools | ₱37.8358 in · ₱227.0149 out / 1M tokens | |
| text | agentic · tools | ₱22.7015 in · ₱136.2089 out / 1M tokens | |
| text | agentic · tools | ₱1.8918 in · ₱18.9179 out / 1M tokens | |
| text | ₱6.306 in · ₱25.2238 out / 1M tokens | ||
| text | agentic · tools | ₱10.0896 in · ₱25.2238 out / 1M tokens | |
| text | agentic · tools | ₱10.0896 in · ₱25.2238 out / 1M tokens | |
| text | agentic · toolsvision | ₱22.7015 in · ₱87.0224 out / 1M tokens | |
| text | agentic · toolsvision | ₱12.612 in · ₱126.1194 out / 1M tokens | |
| text | agentic · tools | ₱2.5224 in · ₱25.2238 out / 1M tokens | |
| text | agentic · tools | ₱10.0896 in · ₱60.5373 out / 1M tokens | |
| text | agentic · toolsvision | ₱15.1343 in · ₱90.806 out / 1M tokens | |
| text | agentic · toolsvision | ₱25.2238 in · ₱151.3433 out / 1M tokens | |
| text | agentic · tools | ₱2.5224 in · ₱10.0896 out / 1M tokens | |
| text | agentic · toolscoding | ₱75.6716 in · ₱227.0149 out / 1M tokens | |
| text | agentic · toolscoding | ₱25.2238 in · ₱100.8955 out / 1M tokens | |
| text | agentic · tools | ₱10.0896 in · ₱34.0522 out / 1M tokens | |
| text | agentic · tools | ₱151.3433 in · ₱454.0298 out / 1M tokens | |
| text | agentic · tools | ₱12.612 in · ₱50.4478 out / 1M tokens | |
| text | agentic · tools | ₱15.1343 in · ₱50.4478 out / 1M tokens | |
| text | agentic · toolscoding | ₱50.4478 in · ₱227.0149 out / 1M tokens | |
| text | agentic · toolscoding | ₱63.0597 in · ₱277.4627 out / 1M tokens | |
| text | agentic · toolscoding | ₱75.6716 in · ₱302.6866 out / 1M tokens | |
| text | agentic · toolscoding | ₱100.8955 in · ₱353.1343 out / 1M tokens | |
| text | agentic · tools | ₱100.8955 in · ₱353.1343 out / 1M tokens | |
| text | agentic · toolsvision | ₱63.0597 in · ₱277.4627 out / 1M tokens | |
| text | agentic · tools | ₱10.0896 in · ₱35.3134 out / 1M tokens | |
| video | 480P: ₱3.7836 / sec720P: ₱7.5672 / sec1080P: ₱22.7015 / sec | ||
| video | 480P: ₱5.6754 / sec720P: ₱11.3507 / sec1080P: ₱22.7015 / sec | ||
| video | 480P: ₱1.916 / sec720P: ₱4.1203 / sec1080P: ₱9.2707 / sec | ||
| video | 480P@no-video: ₱579.2846 / 1M tokens480P@video: ₱352.608 / 1M tokens720P@no-video: ₱579.2846 / 1M tokens | ||
| video | 480P@no-video: ₱881.5201 / 1M tokens480P@video: ₱528.9121 / 1M tokens720P@no-video: ₱881.5201 / 1M tokens | ||
| video | 720P@silent: ₱7.5672 / sec720P@sound: ₱11.3507 / sec720P@voice: ₱13.8731 / sec | ||
| video | 720P@silent: ₱7.5672 / sec720P@sound: ₱11.3507 / sec720P@voice: ₱13.8731 / sec | ||
| video | 736p: ₱3.7779 / sec | ||
| video | 736p: ₱3.7779 / sec | ||
| video | 480p: ₱2.5186 / sec768p: ₱3.1483 / sec | ||
| video | 480P: ₱1.7657 / sec1080P: ₱8.8284 / sec | ||
| video | 480P: ₱1.7657 / sec1080P: ₱8.8284 / sec |
GET/models
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.
# pip install openaifrom openai import OpenAIclient = 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.
- Open Credentials → Add credential → OpenAI.
- API Key: your ENIX API key. Base URL: https://enixph.com/api/v1
- Add an "OpenAI Chat Model" (or AI Agent → Chat Model) node and pick the credential.
- Model: choose "By ID" and type doubao-seed-2-0-code-preview-260215. Tools connected to the AI Agent node work with agentic models.
# Alternative: HTTP Request nodeMethod: POSTURL: https://enixph.com/api/v1/chat/completionsHeaders: Authorization = Bearer YOUR_ENIX_API_KEYBody (JSON):{"model": "doubao-seed-2-0-code-preview-260215","messages": [{"role": "user", "content": "{{ $json.text }}"}]}
07Image generation
POST/images/generations
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
# 1. createcurl 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 mp4curl -o out.mp4 https://enixph.com/api/v1/videos/vid_.../content -H "Authorization: Bearer YOUR_ENIX_API_KEY"
| Model | Size format | Duration (s) | Image input |
|---|---|---|---|
| Seedance-2.0 / 2.5 | "size": "720P 16:9" | 4–15 / 4–30 | first_frame + images (up to 9 / 30) |
| Seedance-1.0-Pro | "size": "720P 16:9" | 5–10 | first_frame or images (up to 4) |
| kling-v3-t2v / kling-v3-i2v | "size": "720P 16:9" | 5–10 | i2v: first_frame (required) |
| Wan3.0-Video / Prime | "size": "720P 16:9" ("720P adaptive" with first_frame) | 2–30 | first_frame or images (up to 10) |
| Wan2.2-T2V-Plus | "size": "832x480" | "1920x1080" | 5 | — |
| Wan2.2-I2V-Plus | "size": "480P" | "1080P" | 5 | first_frame (required) |
| minimax_h3_b99_001 | "size": "736p landscape" | 1–15 | — |
| minimax_h3_b99_002 | "size": "736p landscape" | 1–15 | first_frame + last_frame |
| minimax_h3_zm_u24 | "size": "768p portrait" | 1–15 | images: [urls] (1–9) |
Note
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.
curl https://enixph.com/api/v1/balance -H "Authorization: Bearer YOUR_ENIX_API_KEY"
Response
{"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)
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
import os, requestsb = 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
402, so you are never charged into a negative balance.