Home

Generate AI 3D inside Blender

A single-file Python add-on that puts a panel in Blender's 3D viewport. Type a prompt β†’ the generated GLB is downloaded and imported straight into your scene, ready to sculpt, retopo, or bake.

Install (60 seconds)

  1. Download kingdavez_studios_addon.py above.
  2. In Blender: Edit β†’ Preferences β†’ Add-ons β†’ Install… and pick the file.
  3. Enable KingDavez Studios β€” AI 3D Generator, expand it, and paste your API key from your profile.
  4. In the 3D viewport press N to open the sidebar β†’ KingDavez tab.
  5. Type a prompt, hit Generate 3D Model. The GLB imports automatically when ready.

What you get

  • Native .glb import β€” materials, normals, and PBR maps wired up.
  • Non-blocking generation: Blender stays responsive while the model is queued, generated, and downloaded.
  • Works with the same credits as the web app β€” no separate billing.

Or call the API directly

# Quick one-off call from Blender's Scripting tab
import bpy, json, tempfile, urllib.request, time

API = "https://kingdavez.click/api/public/v1"
KEY = "kd_live_xxx"  # from https://kingdavez.click/profile

def post(path, body):
    req = urllib.request.Request(API + path,
        data=json.dumps(body).encode(),
        headers={"Content-Type": "application/json",
                 "Authorization": "Bearer " + KEY})
    return json.loads(urllib.request.urlopen(req).read())

def get(path):
    req = urllib.request.Request(API + path,
        headers={"Authorization": "Bearer " + KEY})
    return json.loads(urllib.request.urlopen(req).read())

created = post("/generations",
    {"prompt": "low-poly stylized fox",
     "type": "text-to-3d", "source": "blender"})

# Poll until done
while True:
    items = get("/generations?limit=1")
    items = items if isinstance(items, list) else items.get("data", [])
    g = items[0]
    if (g.get("status") or "").lower() in ("complete","completed","done","success"):
        url = g["model_url"]; break
    time.sleep(5)

tmp = tempfile.mktemp(suffix=".glb")
urllib.request.urlretrieve(url, tmp)
bpy.ops.import_scene.gltf(filepath=tmp)

Paste into Blender's Scripting tab to test without installing the add-on.

Endpoint reference

POST
/api/public/v1/generations
Auth
Authorization: Bearer kd_live_…
Body
{ prompt, type, source? }
Poll
GET /api/public/v1/generations?limit=1