Khởi Nghiệp Số
Đinh Dĩnh Liêm Là Ai? Chân Dung CEO Founder Trẻ Của Báo Doanh Thu, Nurxeris API Và Dinhliem.digital
Đinh Dĩnh Liêm là CEO Founder trẻ sinh năm 2009 tại Phủ Lý, Ninh Bình với 8 năm kinh nghiệm thực chiến MMO. An…
Tương thích 100% chuẩn OpenAI SDK và Anthropic SDK. Một base URL thống nhất cho toàn bộ hệ thống model.
Sử dụng URL này cho mọi thư viện OpenAI, LangChain, LlamaIndex, Cursor IDE.
Không cần cấu hình file thủ công! Tải tool exe siêu nhẹ (27KB, chạy ngay, không cần cài đặt). Bạn chỉ cần nhập API Key và chọn model mong muốn, ấn 1 nút là tool tự động phát hiện đường dẫn và ghi đè cấu hình vào Cursor IDE, Antigravity IDE (Google AGY), Claude Code CLI & Claude Desktop, OpenCode Interpreter, VS Code (Cline & Roo Code), Continue.dev, Windsurf, Aider CLI, Codex và thiết lập biến môi trường Windows.
Lập trình AI không giới hạn với chi phí tiết kiệm tới 80% so với đăng ký Pro.
01 Open the model settings
Press Ctrl+Shift+J (Cmd+J on Mac) to open Cursor Settings and choose Models.
[Cursor] Shortcut: Ctrl+Shift+J
02 Add the model
In the Models search box, type the model id exactly as shown and click Add Custom Model.
[Model] e.g. deepseek-v4.1-flash-1017 (hoặc deepseek-r1, qwen-3.8-max)
03 Open API Keys
Scroll down to the API Keys section on the same page.
[Cursor] Cursor Settings → Models → API Keys
04 Turn on OpenAI API Key
Cursor routes every custom endpoint through its OpenAI fields, including DeepSeek, Qwen, GLM and Grok models. Leave the Anthropic and Google fields empty.
[Cursor]
OpenAI API Key: on
Anthropic API Key: off
Google API Key: off
05 Paste your Nurxeris key
It goes in the OpenAI API Key field.
[Key] sk-nurxeris-xxxxxxxxx (lấy tại /app/keys)
06 Override the base URL
Turn on Override OpenAI Base URL, paste the URL and click Verify.
[Base URL] https://nurxeris.com/v1
07 Pick the model
In the chat model dropdown, turn off Auto and select your model. Chat, Agent and Cmd+K now run on Nurxeris. Tab completion keeps using Cursor's own models.
[Cursor] deepseek-v4.1-flash-1017
# Cách 1: Thiết lập cấu hình JSON tại ~/.gemini/antigravity/config.json
{
"api_base": "https://nurxeris.com/v1",
"api_key": "sk-nurxeris-xxxxxxxxx",
"model": "claude-3-7-sonnet"
}
# Cách 2: Thiết lập Biến Môi Trường (PowerShell / Windows / Linux)
export ANTIGRAVITY_BASE_URL="https://nurxeris.com/v1"
export ANTIGRAVITY_API_KEY="sk-nurxeris-xxxxxxxxx"
# Hoặc tải công cụ NurxerisConfigurator.exe bên dưới để tự động ghi đè 1-click!
# Thiết lập Terminal để chạy Claude Code CLI trực tiếp qua Nurxeris Gateway:
export ANTHROPIC_BASE_URL="https://nurxeris.com/v1"
export ANTHROPIC_API_KEY="sk-nurxeris-xxxxxxxxx"
# Chạy Claude Code:
claude --model claude-3-7-sonnet
# Cấu hình OpenCode Interpreter (~/.opencode/config.json hoặc .env):
{
"api_base": "https://nurxeris.com/v1",
"api_key": "sk-nurxeris-xxxxxxxxx",
"model": "deepseek-r1"
}
# Chạy terminal:
opencode run "Viết API server Node.js với Express"
# Cấu hình Biến môi trường hệ thống cho Codex & OpenAI CLI:
export OPENAI_BASE_URL="https://nurxeris.com/v1"
export OPENAI_API_BASE="https://nurxeris.com/v1"
export OPENAI_API_KEY="sk-nurxeris-xxxxxxxxx"
export NURXERIS_API_KEY="sk-nurxeris-xxxxxxxxx"
1. Mở extension Cline hoặc Roo Code trong VS Code
2. Vào Settings (biểu tượng bánh răng) -> Chọn Provider: "OpenAI Compatible"
3. Điền Base URL: https://nurxeris.com/v1
4. Điền API Key: sk-nurxeris-xxxxxxxxx
5. Model ID: claude-3-7-sonnet (hoặc deepseek-r1, gpt-4o)
Truyền hình ảnh qua image_url hỗ trợ cả URL công khai và Base64 data URI.
Áp dụng cho các model Vision như gpt-4o, claude-3-7-sonnet, gemini-2.5-flash, qwen-vl:
curl https://nurxeris.com/v1/chat/completions \
-H "Authorization: Bearer $NURXERIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o",
"messages": [
{
"role": "user",
"content": [
{"type": "text", "text": "Phân tích cấu trúc giao diện và trích xuất text trong ảnh này:"},
{"type": "image_url", "image_url": {"url": "https://images.unsplash.com/photo-1551288049-bebda4e38f71"}}
]
}
]
}'
from openai import OpenAI
client = OpenAI(apiKey="sk-nurxeris-xxxxxxxxx", base_url="https://nurxeris.com/v1")
# 1. Gửi ảnh qua link công khai (URL)
response = client.chat.completions.create(
model="gpt-4o",
messages=[{
"role": "user",
"content": [
{"type": "text", "text": "Mô tả nội dung hình ảnh:"},
{"type": "image_url", "image_url": {"url": "https://example.com/chart.png"}}
]
}]
)
print(response.choices[0].message.content)
# 2. Gửi ảnh trực tiếp từ file (Base64 data URI)
import base64
with open("invoice.png", "rb") as f:
b64 = base64.b64encode(f.read()).decode("utf-8")
res_b64 = client.chat.completions.create(
model="claude-3-7-sonnet",
messages=[{
"role": "user",
"content": [
{"type": "text", "text": "Đọc bảng số liệu trong hoá đơn:"},
{"type": "image_url", "image_url": {"url": f"data:image/png;base64,{b64}"}}
]
}]
)
print(res_b64.choices[0].message.content)
Endpoint POST /v1/images/generations chuẩn OpenAI.
Sinh ảnh độ phân giải cao với DALL-E 3, Flux 1 Schnell và Midjourney:
curl https://nurxeris.com/v1/images/generations \
-H "Authorization: Bearer $NURXERIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "dall-e-3",
"prompt": "Futuristic Vietnamese city with neon cyber lanterns and flying vehicles, cinematic 8k",
"n": 1,
"size": "1024x1024"
}'
Endpoint POST /v1/chat/completions
curl https://nurxeris.com/v1/chat/completions \
-H "Authorization: Bearer $NURXERIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"deepseek-r1","messages":[{"role":"user","content":"Xin chào"}]}'
Streaming từng token theo thời gian thực (Node.js SDK):
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.NURXERIS_API_KEY,
baseURL: "https://nurxeris.com/v1",
});
const res = await client.chat.completions.create({
model: "claude-3-7-sonnet",
messages: [{ role: "user", content: "Xin chào Nurxeris API" }],
stream: true,
});
for await (const chunk of res) {
process.stdout.write(chunk.choices[0]?.delta?.content || "");
}
Hỗ trợ đầy đủ tham số tools và tool_choice.
import OpenAI from "openai";
const client = new OpenAI({ apiKey: process.env.NURXERIS_API_KEY, baseURL: "https://nurxeris.com/v1" });
const res = await client.chat.completions.create({
model: "claude-3-7-sonnet",
messages: [{ role: "user", content: "Kiểm tra giá vàng hôm nay tại Hà Nội" }],
tools: [{
type: "function",
function: {
name: "get_gold_price",
description: "Tra cứu giá vàng hiện tại theo thành phố",
parameters: {
type: "object",
properties: { city: { type: "string" } },
required: ["city"]
}
}
}],
tool_choice: "auto"
});
console.log(res.choices[0].message.tool_calls);
Endpoint POST /v1/messages
curl https://nurxeris.com/v1/messages \
-H "x-api-key: $NURXERIS_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{"model":"claude-3-7-sonnet","max_tokens":1024,"messages":[{"role":"user","content":"Xin chào"}]}'
| Method & Path | Chức năng | Quyền hạn |
|---|---|---|
| GET /v1/models | Danh sách 144+ model đang mở kèm bảng giá niêm yết | Public / Bearer Key |
| GET /v1/key/info | Kiểm tra thông tin key, quota RPM/TPM và số dư credit | Bearer Key |
| GET /v1/usage | Thống kê lượng token và số tiền đã sử dụng trong 30 ngày | Bearer Key |
| POST /v1/chat/completions | Chat, Vision Multimodal, Function Calling, Streaming SSE | Bearer Key |
| POST /v1/images/generations | Cổng sinh ảnh chuẩn OpenAI (DALL-E 3, Flux, Midjourney) | Bearer Key |
| POST /v1/embeddings | Vector hóa văn bản phục vụ RAG và Semantic Search | Bearer Key |
| POST /v1/messages | Cổng chat tương thích SDK Anthropic chính thức | x-api-key |
| POST /api/payos/webhook | Webhook nhận tín hiệu thanh toán tự động PayOS VietQR | PayOS Checksum |
| Mã HTTP | Loại lỗi (type) | Nguyên nhân & Cách xử lý |
|---|---|---|
| 400 | invalid_request_error | Body JSON không hợp lệ hoặc thiếu trường bắt buộc (ví dụ thiếu prompt khi sinh ảnh). |
| 401 | authentication_error | API Key không đúng, đã bị thu hồi hoặc tài khoản đang bị khoá. |
| 402 | insufficient_credit | Tài khoản hết credit. Vui lòng nạp thêm tại /app/topup để tiếp tục. |
| 403 | model_not_allowed | Key của bạn bị giới hạn allowlist không được gọi model này. |
| 404 | model_not_found | Tên model không tồn tại hoặc đã tạm đóng bảo trì. |
| 429 | rate_limit_error | Vượt quá giới hạn RPM (Request/Phút) hoặc hạn mức chi tiêu Token/Ngày. |
| 502 | upstream_error | Lỗi nhà cung cấp sau khi engine đã tự động thử failover qua các provider dự phòng. |
| 503 | upstream_error | Chưa cấu hình hoặc toàn bộ upstream provider đang tạm ngưng kết nối. |
Kỹ thuật viên NUXERIS trực 24/7 để hỗ trợ bạn cấu hình Cursor, Cline, OpenCode, SDK Python/Node.js hoặc nạp credit.
Cập nhật phân tích kỹ thuật, tối ưu chi phí token và kỹ thuật reverse engineering.