# AJAX CLICK AI STUDIO × Draw Things

## English

There are two ways to use Draw Things with AJAX CLICK AI STUDIO. Pick whichever fits how you use the app — none of them cost Credit Units, since Draw Things generates on your own device.

### Method 1 — Copy → Paste (works from any device, zero setup)

1. Build your Persona, Fashion, Art Director direction and Finalize prompt in the browser, on the shared AJAX CLICK link.
2. In Finalize, click the **Draw Things** button under the prompt — it copies the prompt to your clipboard.
3. Open Draw Things on your own Mac or iPad and paste it in.
4. Choose your model and generate. Draw Things uses your own model, sampler, steps and device — nothing here overrides those.

### Method 2 — Draw Things Bridge (recommended: real "Generate" button, from the shared link)

The shared AJAX CLICK link runs on a cloud server, and Draw Things only runs on your own Mac — a browser page can't normally reach it directly, and Draw Things itself doesn't send the permission headers browsers require. The **Bridge** is a small helper that solves this: it runs on your own Mac, answers that browser permission check itself, then relays your request to Draw Things. Once it's running, the **Generate in Draw Things** button in Finalize works for real, straight from the shared link — no copy-paste needed.

Setup (one-time):

1. Open Draw Things → **Settings → HTTP API Server** and turn it **ON**.
2. [Download the Bridge](/downloads/draw-things-bridge.mjs) — a single small file, no installer.
3. Open **Terminal** (Applications → Utilities → Terminal) and run:
   ```
   node ~/Downloads/draw-things-bridge.mjs
   ```
   (Requires Node.js — if `node` isn't found, install it once from [nodejs.org](https://nodejs.org).)
4. Keep that Terminal window open while you generate — closing it stops the Bridge.
5. In AJAX CLICK, go to **Settings → Connected Services → Draw Things**, set the address to:
   ```
   http://127.0.0.1:7861
   ```
6. Click **Test** — it should say "Draw Things is reachable." Then **Save**.
7. The first time, your browser may show a one-time permission prompt near the address bar asking to allow access to devices on your local network — click **Allow**. This only happens once per browser.
8. In Finalize, choose **Draw Things** and click **Generate in Draw Things** — it now generates for real, using Draw Things on your Mac.

## မြန်မာ

AJAX CLICK AI STUDIO ကို Draw Things နဲ့ ချိတ်ဆက်တဲ့ နည်းလမ်း ၂ မျိုး ရှိပါတယ်။ ကိုယ့်အသုံးပြုပုံနဲ့ ကိုက်ညီတာကို ရွေးလို့ရပါတယ် — Draw Things က ကိုယ့်ကိုယ်ပိုင် Device ပေါ်မှာပဲ generate လုပ်တာမို့ ဘယ်နည်းကမှ Credit Units မကုန်ပါ။

### Method 1 — Copy → Paste (Device မရွေး၊ setup ဘာမှ မလို)

1. Shared AJAX CLICK link ပေါ်မှာ browser ကနေ Persona၊ Fashion၊ Art Director direction နဲ့ Finalize prompt ကို တည်ဆောက်ပါ။
2. Finalize room ထဲက prompt အောက်က **Draw Things** ခလုတ် နှိပ်ပါ — prompt ကို clipboard ထဲ copy ဖြစ်သွားပါမယ်။
3. ကိုယ့် Mac / iPad ထဲက Draw Things App ကို ဖွင့်ပြီး paste လုပ်ပါ။
4. Model ရွေးပြီး generate လုပ်ပါ — Draw Things က ကိုယ့် model၊ sampler၊ steps၊ device ကိုပဲ သုံးပါတယ်၊ ဘာမှ ကျော်လွှားပြောင်းလဲမသွားပါ။

### Method 2 — Draw Things Bridge (အကြံပြုချက် — Shared link ကနေပဲ တကယ့် "Generate" ခလုတ်နဲ့ ထုတ်လို့ရ)

Shared AJAX CLICK link က cloud server ပေါ်မှာ run နေပြီး Draw Things ကတော့ ကိုယ့် Mac ပေါ်မှာပဲ run ပါတယ် — browser page တစ်ခုက ကိုယ့် Mac ကို ပုံမှန်အားဖြင့် တိုက်ရိုက် မရောက်နိုင်ပါ၊ Draw Things ကိုယ်တိုင်ကလည်း browser လိုအပ်တဲ့ permission header ကို ပြန်မပေးပါဘူး။ **Bridge** ဆိုတာ ဒီပြဿနာကို ဖြေရှင်းပေးတဲ့ helper တစ်ခုပါ — ကိုယ့် Mac ပေါ်မှာပဲ run ပြီး browser ရဲ့ permission check ကို ကိုယ်တိုင် ဖြေပေးကာ Draw Things ဆီ request ကို ပြန်ပို့ပေးပါတယ်။ တစ်ခါ run ထားရင် Finalize room ထဲက **Generate in Draw Things** ခလုတ်က shared link ကနေတိုက်ရိုက် တကယ် အလုပ်လုပ်ပါပြီ — copy-paste လုပ်စရာ မလိုတော့ပါ။

Setup (တစ်ကြိမ်ပဲ လုပ်ရန်):

1. Draw Things ဖွင့် → **Settings → HTTP API Server** ကို **ON** လုပ်ပါ။
2. [Bridge ကို Download လုပ်ပါ](/downloads/draw-things-bridge.mjs) — file တစ်ခုတည်းပါ၊ install လုပ်စရာ မလိုပါ။
3. **Terminal** ဖွင့်ပါ (Applications → Utilities → Terminal) ပြီး ဒီလို run ပါ —
   ```
   node ~/Downloads/draw-things-bridge.mjs
   ```
   (Node.js လိုအပ်ပါတယ် — `node` ရှာမတွေ့ရင် [nodejs.org](https://nodejs.org) ကနေ တစ်ကြိမ် install လုပ်ပါ။)
4. Generate မလုပ်ခင် ဒီ Terminal ဝင်းဒိုးကို ပိတ်မထားပါနှင့် — ပိတ်လိုက်ရင် Bridge ရပ်သွားပါမယ်။
5. AJAX CLICK ထဲက **Settings → Connected Services → Draw Things** သွားပြီး address ကို —
   ```
   http://127.0.0.1:7861
   ```
   လို့ ထားပါ။
6. **Test** နှိပ်ပါ — "Draw Things is reachable." ပြရင် **Save** နှိပ်ပါ။
7. ပထမဆုံးအကြိမ် browser က address bar ဘေးမှာ "local network device ကို ဝင်ခွင့်ပြုမလား" ဆိုတဲ့ permission popup ပေါ်နိုင်ပါတယ် — **Allow** နှိပ်ပါ။ ဒါက တစ်ခါပဲ တောင်းပါလိမ့်မယ်။
8. Finalize ထဲမှာ **Draw Things** ရွေးပြီး **Generate in Draw Things** နှိပ်ပါ — Draw Things ကနေ တကယ် generate ဖြစ်သွားပါမယ်။
