Close Menu
    Facebook X (Twitter) Instagram Threads
    Digital.com.vnDigital.com.vn
    • Digital
    • AI
    • Chuyên gia
    • Công nghệ
    • Cuộc sống
      • Quản trị
    • Tổng
      • Tiêu dùng
      • Mới nhất
      • Truyền thông
    • Ứng dụng
    • Liên hệ
    Facebook X (Twitter) Instagram
    Subscribe
    Digital.com.vnDigital.com.vn
    Home»AI»Hướng Dẫn Sử Dụng Prompt JSON (Prompt Kỹ Thuật) Cho AI Tạo Ảnh – “Strict Instruction”
    AI

    Hướng Dẫn Sử Dụng Prompt JSON (Prompt Kỹ Thuật) Cho AI Tạo Ảnh – “Strict Instruction”

    digitalBy digitalOctober 29, 2025No Comments5 Mins Read40 Views
    Share Facebook Twitter Pinterest LinkedIn Tumblr Email Copy Link
    Share
    Facebook Twitter LinkedIn Pinterest Email Copy Link

    Mục tiêu: Giúp bạn hiểu rõ bản chất, cách viết và lợi ích vượt trội của prompt dạng JSON so với prompt phổ thông (mô tả tự nhiên), đặc biệt khi cần khóa chính xác khuôn mặt, tóc, trang phục trên các mô hình như Gemini, Midjourney, Firefly.


    1. Hai Loại Prompt – So Sánh Nhanh

    Loại Prompt Tên gọi tạm Đặc điểm Ưu điểm Nhược điểm
    Mô tả tự nhiên Prompt phổ thông Viết như câu nói thông thường Dễ viết, gần gũi AI dễ hiểu sai, “tự sáng tạo”, thay đổi khuôn mặt
    Cấu trúc JSON Prompt kỹ thuật Dùng key-value, mệnh lệnh rõ ràng Chính xác 100%, ít biến thể Cần học cấu trúc

    Kết luận: Dùng prompt kỹ thuật khi bạn cần khóa nhân vật cố định qua nhiều bối cảnh (truyện tranh, phim, quảng cáo).

    Trending
    loài nào sau đây có kiểu tăng trưởng số lượng


    2. Cấu Trúc Prompt JSON Chuẩn (Copy-Paste & Chỉnh)

    json
    {
    “critical_instruction”: “Giữ nguyên 100% khuôn mặt, tóc, màu da, dáng người từ ảnh tham chiếu. Không thay đổi bất kỳ chi tiết nào về danh tính.”,
    “description”: “Một chàng trai trẻ đang ngồi trên ghế sofa trong phòng khách hiện đại, cười rạng rỡ, ánh sáng ban ngày từ cửa sổ lớn chiếu vào.”,
    “requirements”: {
    “pose”: “ngồi tự nhiên, tay đặt lên đùi, hơi nghiêng người về trước”,
    “expression”: “cười tươi, mắt híp lại, răng trắng đều”,
    “clothing”: “áo thun xanh navy, quần jeans xám, giày sneaker trắng”
    },
    “camera”: {
    “type”: “portrait”,
    “lens”: “50mm”,
    “angle”: “eye-level”,
    “distance”: “medium shot”
    },
    “lighting”: {
    “type”: “natural daylight”,
    “direction”: “from left window, soft shadows”,
    “quality”: “warm, golden hour feel”
    },
    “styling”: {
    “art_style”: “photorealistic”,
    “quality”: “8K, ultra detailed, sharp focus”
    },
    “color_grading”: {
    “tone”: “warm, vibrant”,
    “contrast”: “medium”,
    “saturation”: “natural”
    },
    “style_control”: “Photorealistic portrait, match subject identity precisely, no artistic interpretation of face”
    }

    3. Giải Thích Từng Phần (Tại Sao Hiệu Quả?)

    Phần Ý nghĩa Tác dụng
    critical_instruction Mệnh lệnh tối cao AI phải tuân thủ tuyệt đối → khóa mặt 100%
    description Câu chuyện chính Xây dựng bối cảnh rõ ràng
    requirements Chi tiết hành động, cảm xúc Tránh AI tự diễn dịch sai (ví dụ: “cười” → có thể thành cười mỉm)
    camera Góc máy, tiêu cự Tạo cảm giác ảnh chụp thật
    lighting Ánh sáng Kiểm soát bóng đổ, mood
    styling Phong cách nghệ thuật Đảm bảo độ nét, chất lượng
    color_grading Chỉnh màu Tạo tông ảnh chuyên nghiệp
    style_control Khóa sáng tạo Ngăn AI vẽ lại mặt theo phong cách riêng

    4. So Sánh Kết Quả Thực Tế

    Prompt Phổ Thông Kết quả thường gặp
    “Giữ nguyên khuôn mặt, tạo ảnh anh ấy đang ngồi cười, mặc áo xanh, ánh sáng ban ngày” – Mặt thay đổi nhẹ – Cười thành cười mỉm – Ánh sáng tối, không tự nhiên
    Prompt JSON (như trên) Kết quả
    Cụ thể + có thứ tự + mệnh lệnh – Mặt giống 100% – Cười đúng ý – Ánh sáng chuẩn ban ngày – Trang phục đúng màu

    5. Mẹo Tinh Chỉnh Nâng Cao

    1. Thêm style_control (rất quan trọng):
      json
      “style_control”: “Photorealistic portrait, match subject identity precisely”

      → Dùng cho Gemini, Midjourney, Firefly.

    2. Khóa trang phục cố định (dùng cho nhân vật truyện):
      json
      “clothing”: “Luôn mặc áo thun xanh navy có logo nhỏ bên ngực trái, quần jeans xám rách nhẹ ở đầu gối”
    3. Tạo chuỗi ảnh nhất quán (nhân vật xuất hiện nhiều cảnh):
      • Dùng cùng 1 critical_instruction
      • Chỉ thay description + requirements

    6. Khi Nào Nên Dùng Prompt JSON?

    Trường hợp Dùng JSON?
    Tạo nhân vật cố định cho truyện, phim ✅ Bắt buộc
    Chỉnh sửa nhanh 1-2 ảnh ❌ Dùng phổ thông được
    Cần ảnh chuyên nghiệp, xuất bản ✅
    AI hay thay đổi khuôn mặt ✅

    7. Tóm Tắt 3 Bước Viết Prompt JSON

    1. Khóa mặt → critical_instruction
    2. Mô tả cảnh → description + requirements
    3. Kỹ thuật ảnh → camera, lighting, color_grading, style_control

     

     

     

    {
    “scene”: {
    “description”: “Stylish restroom dressing area captured via mirror.”,
    “environment”: “Warm wood-laminate stall doors and soft countertop reflections.”,
    “mood”: “Shy-playful confidence; cozy Gamseong (감성) aesthetic.”
    },
    “aesthetic”: {
    “style”: “Authentic smartphone mirror selfie.”,
    “look”: “Warm interior color, gentle roll-off; minimal grain; filmic soft contrast.”
    },
    “lighting”: {
    “description”: “Ceiling LEDs providing warm ambience; add subtle front fill from mirror to open eye sockets; maintain realistic specular highlights.”
    },
    “subject”: {
    “demographics”: {
    “ethnicity”: “East Asian (Korean)”,
    “age”: “adult”,
    “build”: “Very slender, petite with defined waist.”
    },
    “appearance”: {
    “hair”: “Messy top-bun with full fringe; a few loose side strands.”,
    “skin”: “Natural, dewy finish with preserved skin texture.”
    },
    “pose”: {
    “type”: “Mirror selfie, standing.”,
    “action”: “Gentle smile with lips slightly pressed; left hand lightly lifting ruched hem; right hand holding phone.”,
    “framing”: “Waist-up 3:4 vertical; slight downward camera angle; midriff visible.”
    },
    “wardrobe”: {
    “top”: “Asymmetrical olive-gray ruched one-shoulder top.”,
    “bottom”: “Low-rise jeans with faux-fur waistband trim.”
    },
    “accessories”: {
    “jewelry”: “Thin bracelets, rings, and delicate hoop earrings.”,
    “phone”: “Smartphone with black cat case featuring a pink bow (Hello-Kitty style).”
    }
    },
    “props_in_scene”: {
    “background”: “Wood-grain stall doors with verticals kept true; metal hinges subtly visible.”,
    “counter”: “Keep any edge reflections soft and realistic.”
    },
    “camera_technical”: {
    “requirements”: “Correct mirror reversal; maintain natural body proportions; no duplicated phones/hands.”,
    “capture”: “Smartphone wide lens ~24-26mm equiv, f/1.8 look, ISO ~250, 1/125s, WB 4200-4400K.”,
    “composition”: “Subject centered with slight lean; keep fur texture readable; ensure phone and hand pose feel natural.”,
    “retouching”: “Clean minor blemishes only; preserve fabric micro-wrinkles and fur fibers; avoid haloing.”,
    “avoid”: “Warped doors, heavy vignettes, oversharpening, cartoon smoothing, text/watermarks.”
    }
    }

    • Best phone batteries
      Best phone batteries
      by digitalApril 1, 2025
    • Làm sao để tối ưu hóa hiệu suất của doanh nghiệp
      Làm sao để tối ưu hóa hiệu suất của doanh nghiệp
      by digitalFebruary 6, 2023
    • tỷ số tăng trưởng bền vững
      tỷ số tăng trưởng bền vững
      by digitalDecember 30, 2024
    • ai-majic
      ai-majic
      by digitalSeptember 18, 2023
    • Top 5G phones
      Top 5G phones
      by digitalApril 1, 2025
    • Best remote work tools
      Best remote work tools
      by digitalApril 1, 2025
    • adam.ai
      adam.ai
      by digitalSeptember 18, 2023
    • tăng trưởng 2 con số là gì
      tăng trưởng 2 con số là gì
      by digitalDecember 30, 2024
    • abacus.ai
      abacus.ai
      by digitalSeptember 18, 2023
    • Software pricing reviews
      Software pricing reviews
      by digitalApril 1, 2025

    Follow on Google News Follow on Flipboard
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Telegram Email Copy Link
    Previous Article5 ngành hàng bùng nổ doanh thu nhất khi làm Affiliate Shopee dịp cuối năm
    Next Article Hướng Dẫn Tạo Video Kiểu “Boring History For Sleep”
    digital
    • Website

    Related Posts

    PHONG CÁCH MINIATURE

    January 31, 2026

    Tạo một infographic 3D điện ảnh về công thức bánh cuốn

    January 29, 2026

    PROMT làm quá trình làm món ăn

    January 29, 2026
    Recent Posts
    • Promt upscale image
    • PHONG CÁCH MINIATURE
    • Toàn bộ hành trình bún đậu mắm tôm
    • Thiết kế infographic hiện đại – cao cấp về [TÊN ĐỒ ĂN], phong cách clean
    • Tạo một infographic 3D điện ảnh về công thức bánh cuốn
    Categories
    • AI
    • Blog
    • Chuyên gia
    • Công nghệ
    • Cuộc sống
    • Mới nhất
    • Quản trị
    • Tiêu dùng
    • Tổng hợp
    • Truyền thông

    Type above and press Enter to search. Press Esc to cancel.