Home

Generate AI 3D inside Roblox Studio

A single-file Luau plugin that adds a dock widget to Roblox Studio. Type a prompt β†’ get a 3D asset spawned in your Workspace, with the model URL ready for Asset Manager import.

Install (60 seconds)

  1. Download KingDavezStudios.lua above.
  2. In Roblox Studio: View β†’ Plugins Folder. Drop the file in.
  3. Restart Studio. Open the Plugins tab β€” click AI 3D Generator.
  4. Paste your API key from your profile, type a prompt, hit Generate.
  5. A MeshPart spawns in Workspace with the model URL stored as an Attribute.

Importing the mesh

Roblox Studio doesn't support importing .glb at runtime via script β€” that's an engine limitation. The plugin therefore:

  • spawns a placeholder MeshPart so the asset is selectable in Workspace,
  • saves the model_url, image_url, and prompt as Attributes,
  • copies the .glb URL to your clipboard so you can paste it in your browser, drop the file into Blender (or any DCC) to convert to .fbx, and bulk-import via Asset Manager.

Or call the API directly

-- Quick one-off call from any Server Script
local HttpService = game:GetService("HttpService")

local function generate(prompt, apiKey)
    local res = HttpService:RequestAsync({
        Url = "https://kingdavez.click/api/public/v1/generations",
        Method = "POST",
        Headers = {
            ["Content-Type"]  = "application/json",
            ["Authorization"] = "Bearer " .. apiKey,
        },
        Body = HttpService:JSONEncode({
            prompt = prompt,
            type   = "text-to-3d",
            source = "roblox",
        }),
    })
    return HttpService:JSONDecode(res.Body)
end

print(generate("low-poly stylized fox", "YOUR_API_KEY"))

Works in any Roblox server script with HTTP Requests enabled (Game Settings β†’ Security β†’ Allow HTTP Requests).

Endpoint reference

POST
/api/public/v1/generations
Auth
Authorization: Bearer <your API key>
Body
{ prompt, type, source? }
Poll
GET /api/public/v1/generations?limit=1