Tài liệu API

bp-interior-design

Thiết Kế Nội Thất AI — Biến ảnh phòng trống thành không gian được thiết kế chuyên nghiệp — nội thất, ngoại thất, nhà ở và thương mại.

type: imageoutput: imageTheo tham số — dùng POST /v1/generations/estimate để báo giá

Input — tham số đầu vào

POST/v1/generations

Gửi JSON gồm "model": "bp-interior-design" và các tham số dưới đây ở cùng cấp. Tham số không có trong bảng sẽ bị từ chối (400).

Tham sốKiểuGiá trị hỗ trợMô tả
modelrequiredstringbp-interior-designMã model
room_photo_urlrequiredstring (URL image)
Ảnh phòng của bạn — Upload ảnh phòng trống hoặc cần thiết kế lại. Ảnh rõ nét cho kết quả tốt hơn.
spacerequiredenum
residential_interiorresidential_exteriorcommercial_interiorcommercial_exterior

Mặc định: residential_interior

Loại không gian
room_typerequiredenum

Lựa chọn thay đổi theo space

Mặc định: living room

Loại phòng
stylerequiredenum
modernminimalistcontemporaryscandinavianmidcentury moderntransitionalindustrialneoclassicbaroqueart decoart nouveauvintagefarmhouserusticfrench country provence elegantshabby chic romantic distressedcoastaltropicalbohemianeclecticmaximalist bold layered ornatebiophilic nature-inspired organiczenjapanese designvietnamese traditional lacquer mother-of-pearlindochine colonial vietnameseasian traditional chinese classical

Mặc định: modern

Phong cách thiết kế
resolutionrequiredenum
1K2K4K

Mặc định: 2K

Chất lượng ảnh
num_rendersrequiredenum
1234

Mặc định: 1

Số ảnh render
extrastring

Tối đa 2.000 ký tự

Yêu cầu thêm (không bắt buộc)
tierrequiredenum
economyfast

Mặc định: economy

Tốc độ xử lý
  • Tham số file (string URL) nhận link công khai http(s) — máy chủ tự tải về — hoặc URL trả về từ API tải file POST /account/ai/uploads.
  • Bỏ trống tham số không bắt buộc thì dùng giá trị mặc định.

Ví dụ request

curl -X POST https://nov.ai.vn/api/v1/generations \
  -H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \
  -d '{
  "model": "bp-interior-design",
  "room_photo_url": "https://example.com/image.jpg",
  "space": "residential_interior",
  "room_type": "living room",
  "style": "modern",
  "resolution": "2K",
  "num_renders": "1",
  "tier": "economy"
}'

Output — kết quả trả về

Tác vụ chạy bất đồng bộ. POST /v1/generations trả ngay đối tượng generation với status queued hoặc processing; hỏi lại GET /v1/generations/{id} mỗi 5–10 giây tới khi status là succeeded, failed hoặc cancelled.

GET/v1/generations/{id}
{
  "id": "3f1c...-uuid",
  "object": "generation",
  "code": "T8KQ2M4X",
  "model": "bp-interior-design",
  "status": "succeeded",       // queued | processing | succeeded | failed | cancelled
  "progress": 100,
  "cost": 2400,                // số tiền đã trừ
  "currency": "VND",
  "refunded": false,
  "output": {
    "type": "image",
    "files": [{ "url": "https://nov.ai.vn/uploads/ai/outputs/....png", "type": "image", "name": "image.png" }],
    "text": null
  },
  "error": null,
  "created_at": "2026-10-30T08:00:00.000Z",
  "completed_at": "2026-10-30T08:01:12.000Z"
}
TrườngÝ nghĩa
output.files[].urlLink file kết quả — nên tải về hệ thống của bạn, file trên máy chủ có thể được dọn sau một thời gian.
output.textNội dung văn bản (chỉ có với model trả văn bản).
costSố tiền VND đã trừ vào số dư; lỗi hoặc huỷ thì tự hoàn lại (refunded = true).
errorLý do lỗi khi status = failed.

Báo giá trước khi chạy

POST/v1/generations/estimate

Cùng body với POST /v1/generations, không chạy và không trừ tiền.

# => { "object": "estimate", "model": "bp-interior-design", "cost": 2400, "currency": "VND" }
Lấy API key
bp-interior-design · Tài liệu API | NOV AI