Illustrative workflow cover: a Claude Code editor window flows through the N4D API into a white teapot rendered half as glazed ceramic and half as a purple wireframe mesh.

How to Generate a 3D Model with Claude Code and the N4D API

Tested on November 30, 2026 with Claude Code, the N4D API (N4D 2.5 model) and Blender 5.3.

Can Claude create 3D models? Yes, with one tool in between. This tutorial shows how to generate a 3D model with Claude Code and the N4D API: Claude Code writes and runs the requests, the N4D API builds the mesh and textures, and you get a GLB on disk. We ran the whole Claude 3D modeling workflow once with real requests and real files, then took the model into Blender and out as a printable STL.

No MCP server, plugin, or separate orchestration service is required. A CLAUDE.md file and an API key in the execution environment are enough.

How we tested. This guide is published by N4D. On November 30, 2026 we submitted one text to 3D task through the N4D API, polled it to completion, downloaded the GLB, imported it into Blender 5.3 with a background Python script, rendered it and exported two STL files. All numbers below come from that run. Task IDs are real; signed URLs and the API key are removed.

Can Claude Make 3D Models?

Yes, but not on its own. Claude can plan a model, write code that builds one (Blender Python, CAD scripts or Three.js), and drive tools that do the heavy work; it does not output a mesh file by itself. For a finished, textured asset from a text prompt, the practical route is Claude Code plus a 3D generation API like the N4D API. Claude Code handles the requests, files and checks; the API handles the geometry.

Claude Code is the operator. It turns a plain-language request into API calls, keeps the task record, and reports what came back. The N4D API is the generator. Your own software is what decides whether the result is usable.

Who does what in a Claude 3D modeling workflow

Which tool handles each job in this guide

Job Handled by
Turn your request into API calls, save the task record, poll, download Claude Code
Generate the mesh, textures and PBR materials N4D API
Open, inspect, render, print or import the file Blender (driven by a script Claude Code writes), or your own viewer, game engine or slicer
Decide if the model is good enough You, in the tool where the model will be used

This tutorial uses plain HTTP requests and command-line Blender, which work in any terminal and need no extra server. If you are deciding between this route and Claude driving Blender through MCP, see N4D API vs Blender MCP for Claude 3D Modeling below.

If you would rather write and run the HTTP calls yourself instead of having Claude Code generate them, the official v1 generation reference documents the same request fields and response shape.

Before You Start

  • Claude Code, installed and signed in. See the Claude Code quickstart.
  • An N4D API key. The API is part of the paid plans (Go and above); the free plan does not include API access. Check current plans, then create a key on the N4D API page.
  • Blender 4.2 or newer for Steps 5 and 6. We used Blender 5.3. Download it from blender.org.
  • A project folder where Claude Code runs and can write files, for example assets/neural4d/ for results.
  • Network access from that environment to api.neural4d.com for API calls and to the host in the returned download links, which can differ from the API host (ours were served from cos.neural4d.com).

How to Generate a 3D Model with Claude Code in 6 Steps

Steps 1 to 4 take you from an API key to a GLB on disk. Steps 5 and 6 check the model in Blender and export it for 3D printing.

Step 1: Configure Your N4D API Key

Create a key on the N4D API page and copy it once. Keep it in an environment variable, not in chat or in project files. On macOS or Linux, append the export to the profile file your shell reads; if you are not sure which shell you use, run echo $SHELL. With Zsh:

Zsh
echo 'export NEURAL4D_API_KEY="<YOUR_API_KEY>"' >> ~/.zshrc
source ~/.zshrc

Use ~/.bashrc for Bash. On macOS, a Bash login shell may read ~/.bash_profile instead, so put the export in the file your terminal actually loads. On Windows PowerShell, set a user variable and load it into the current session:

PowerShell
[Environment]::SetEnvironmentVariable("NEURAL4D_API_KEY", "<YOUR_API_KEY>", "User")
$env:NEURAL4D_API_KEY = [Environment]::GetEnvironmentVariable("NEURAL4D_API_KEY", "User")

Open a new terminal, start claude in your project, and ask it to confirm the variable exists without printing it:

Prompt
Check whether NEURAL4D_API_KEY is set in the environment where you run commands.
Report only whether it exists. Do not print the key, request headers, or the variable value,
and do not submit a generation task.

In our run the check returned:

Terminal output
$ test -n "$NEURAL4D_API_KEY" && echo "NEURAL4D_API_KEY is set (${#NEURAL4D_API_KEY} chars)"
NEURAL4D_API_KEY is set (257 chars)

Presence is not validity. A wrong key returns 401 invalid_api_key on the first request, and an account without an API plan returns 403 subscription_required, while 403 insufficient_credits means the plan is fine but the balance is low.

IDE extensions, the desktop app, WSL, containers and remote sessions do not inherit variables set in another terminal. Set the key in the environment that actually runs the command; on a CI or hosted runner, inject it from the platform’s secret store.

Step 2: Add the N4D Workflow to CLAUDE.md

CLAUDE.md is the instruction file Claude Code reads at the start of every session in a project (Claude Code memory docs). Save this as ./CLAUDE.md or ./.claude/CLAUDE.md; if the file already exists, merge the block in and keep your other project rules. It is the exact file we used:

CLAUDE.md
# N4D 3D generation workflow

Use the N4D API when I ask for a 3D model. Claude does not build meshes itself.

- Base URL: https://api.neural4d.com/openapi/v1
- Auth: `Authorization: Bearer $NEURAL4D_API_KEY` (read from the environment; never print the key)
- Model: `dreamtech/neural4d-2.5` (the only value the API accepts today)
- Create: `POST /3dmodels/generations` with JSON `{"model","prompt","n":1,"with_texture":true,"with_pbr":true}`.
  Prompt max 1000 characters. Expect HTTP 202 and a task `id`.
- Save every task to `assets/neural4d/tasks.json` as `{task_id, prompt, created_at, status}` before polling.
- Poll: `GET /tasks/task-info?id=<task_id>` every 15 s, up to 10 min. Stop on `succeeded` or `failed`.
- Download: `output.models[].model_urls.glb` into `assets/neural4d/<task_id>/model.glb`.
  Links are signed and expire, so download right away.
- After download: report file size, check the first 4 bytes are `glTF`, and do not call the
  model "ready" until it has been opened in a viewer or Blender.
- Errors: 401 bad key, 403 subscription_required or insufficient_credits, 429 slow down,
  400 read `error.details`.

That short file is what we tested with. For team or production use, the full version below adds the safety and recovery rules: read the key only from the environment, create a paid task only on an explicit request, save the task record before polling, and never resubmit after a timeout or a 500 registration failure.

Show the full CLAUDE.md with safety and recovery rules (about 100 lines)
CLAUDE.md (full)
# N4D API project instructions

## When these instructions apply
Use them when I ask you to generate a 3D model, image, or video with N4D,
query an N4D task, or download an N4D result. Call the N4D API v1 over HTTP
from the current environment. No MCP server is required.
Create a paid task only when I ask for a generation. Configuration checks,
task queries, previews, and downloads must not create tasks.

## Credentials
- Read the key from NEURAL4D_API_KEY in the environment where you run commands.
- When checking configuration, report only whether the variable is set.
  Never print the key, an Authorization header, or logs that contain the key.
  Never write the key into source files, task records, or web pages.
- If the variable is missing, ask me to set it in the environment that runs
  the command. Do not ask me to paste the key into chat.
- Tool permissions are separate from this file. If command execution,
  network access, or directory writes are blocked, report the blocker.

## API basics
- Base URL: https://api.neural4d.com/openapi/v1
- Auth header: Authorization: Bearer <NEURAL4D_API_KEY>
- Generation requests use JSON. Uploads use multipart/form-data.
- Before each call, read the official reference for that endpoint and confirm
  the model, field nesting, required fields, and limits. Do not copy parameters
  from another endpoint. If the reference is unavailable, say so instead of
  guessing.

Endpoints and references:
- 3D generation: POST /3dmodels/generations
  https://docs.neural4d.com/en/v1-api-reference/3d-generation/create-3d-generation-tasks.md
- Upload a file: POST /files
  https://docs.neural4d.com/en/v1-api-reference/files/upload-a-file.md
- Query a task: GET /tasks/task-info
  https://docs.neural4d.com/en/v1-api-reference/tasks/retrieve-a-task.md
- Docs index: https://docs.neural4d.com/llms.txt

## Generation requests
- Confirm output type, input files, count, and save directory before submitting.
  If I give you a task ID, query that task instead of creating a new one.
- Text to 3D: set model to dreamtech/neural4d-2.5. Keep prompt at 1000 characters or fewer.
- Use n: 1 unless I ask for more. Text, single-image, and multi-view modes accept
  1 to 4. Batch image mode generates one model per input image.
- For textures, set with_texture: true. For PBR, also set with_pbr: true.
- Optional fields: mesh_quality (standard, high, extra_high), topology
  (triangle, quad), target_polycount, pose (auto, A-pose, T-pose).
- Single-image mode needs input_references with exactly one item:
  {"type": "image", "file_id": "<id from POST /files>"} or a public HTTPS url.
  Pass file_id or url, not both.
- Batch image mode takes 2 to 10 items and generates one model per image.
- Multi-view mode uses multi_view_images with front and back required. It always
  uses a triangle mesh at high quality, so do not send mesh_quality, topology, or pose.
- Upload local references with POST /files using the file form field, then use the returned id.

## Task records and status
- When a submission returns 202, save the top-level id immediately. A task record
  must include the task ID, output type, and target directory. Never store the key.
- Default record: assets/neural4d/<TASK_ID>/task.json. If I name a directory,
  keep the record there, separated by task ID.
- Query a batch with GET /tasks/task-info?id=<TASK_ID>. Query one child with
  uuid=<UUID>. Send only one of the two.
- queued and processing mean keep waiting. succeeded and failed mean inspect each
  child, including partial success.
- Poll about every 5 seconds, back off to no more than 30 seconds, and wait at most
  10 minutes per follow-up. This is a local policy, not an API limit or a
  completion promise.
- When local waiting ends, report the task ID and latest status. Stopping the
  wait does not cancel the server task.

## Downloads and delivery
- Download successful outputs. Use my directory, or assets/neural4d/<TASK_ID>/
  by default, and separate multiple children by UUID.
- 3D: output.models[].model_urls.glb. For OBJ, also fetch model_urls.obj,
  model_urls.mtl, and texture_urls, keeping filenames and relative paths consistent.
- Images: output.images[].url. Videos: output.videos[].url. Save the returned format.
- Download from the returned URL without adding the N4D API key. These are signed links.
- Check that the download succeeded, the file exists, and it is not empty. Do not
  claim visual quality or full file structure unless we actually checked.
- Report the task status, task ID, saved path, failed children, and usage.credits.
  If credits are not returned, say so. Do not estimate.

## Errors and recovery
- If a submission times out or the result is unknown, do not resubmit automatically.
  With an ID, query the original task. Without one, report that the result is unknown
  and keep the submit time and a sanitized error.
- If a 500 response reports task_registration_failed, or registration_failed in
  error.details, save error.details.task, including the task ID, UUIDs, and known
  credit usage. Do not resubmit. Task lookup may return 404 until registration is
  repaired, so keep the error and query the saved task later.
- On 429, wait for the interval the response indicates, for example a Retry-After header. If none is given, back off. Limited retries for queries
  are fine. Never turn a retry into a new generation request.
- 401: check the key in the actual execution environment. On 403, treat
  subscription_required as a missing paid subscription and insufficient_credits
  as a low credit balance. Report which one occurred.
- If some children fail, deliver the successes and list the failures. A retryable
  flag is not permission to create a new task automatically.
- If a download fails or a link expires, keep the task ID and query the task again
  for current links. Do not regenerate.
- Keep generation failure, still running, and succeeded-but-download-failed separate.

## Local preview
Only when I ask. Prefer an existing viewer in the project. Otherwise create a local
page that loads the downloaded GLB with rotate, zoom, and a load error message.
Serve only the output directory on 127.0.0.1. The page must not read the key or call
generation endpoints. Tell me the verified local URL, the model path, and that the
server must keep running.

The full version polls every 5 seconds and backs off to 30; the short file uses a flat 15 seconds. Both stay well inside the 10-minute local wait.

Start a new session and run /memory to confirm Claude Code loaded your CLAUDE.md. The file is guidance, not a permission setting: Claude Code still asks before it runs curl or writes files unless you allow those tools.

Claude Code /memory panel listing the project CLAUDE.md
The /memory panel in Claude Code. “Project instructions, saved in ./CLAUDE.md” confirms the workflow file is loaded.

Step 3: Generate a 3D Model with the N4D API

Ask in plain language:

Prompt
Use N4D to generate one 3D model of a white ceramic teapot with a curved spout
and round lid, with PBR materials. Save the GLB under assets/neural4d/ and tell me
the task ID and the credits used.

Claude Code turns that into this request body:

JSON request
{
  "model": "dreamtech/neural4d-2.5",
  "prompt": "a white ceramic teapot with a curved spout and round lid",
  "n": 1,
  "with_texture": true,
  "with_pbr": true
}

model is required. prompt takes up to 1000 characters and should describe shape, material and style. n accepts 1 to 4, and with_pbr needs with_texture. Add mesh_quality, topology, target_polycount or pose only when you need them; the defaults are standard quality, triangle topology and auto pose.

The API answered HTTP 202 right away. This is the real response from our run:

API response
{"id":"ae169468-f071-4e03-9c40-4d7b59b1fac6","status":"queued","created_at":1796038417,
 "mode":"text_to_3d","model":"dreamtech/neural4d-2.5",
 "data":[{"uuid":"2451094e-9f6b-4a2d-bb44-346637b32433","status":"queued","created_at":1796038417}],
 "usage":{"credits":30}}

A 202 means the task was accepted, not that a model exists. The top-level id is the handle for the whole batch, and each data item has its own uuid. Save both before doing anything else.

Optional: generate from an image instead of text

If the input is a photo rather than a description, upload the image with POST /files using the file form field, then send a single-image request with input_references containing one {"type": "image", "file_id": "..."} item. Single-image and batch references accept JPG, JPEG, PNG, and WEBP up to 20 MiB each; multi-view references accept up to 10 MiB each. Use batch mode for 2 to 10 separate objects, and multi_view_images with front and back for several angles of the same object.

Step 4: Wait for the N4D API Task and Download the GLB

Claude Code wrote the task record first:

tasks.json
[{"task_id":"ae169468-f071-4e03-9c40-4d7b59b1fac6",
  "prompt":"a white ceramic teapot with a curved spout and round lid",
  "created_at":"2026-11-30T11:33:37Z","status":"queued"}]

Then it polled GET /tasks/task-info?id=<task_id>. Use id for the batch and uuid for one child, never both. Both levels report queued, processing, succeeded or failed. Stopping the local wait does not cancel the server task. Our task went from submit to succeeded in 357 seconds:

Measured results for one text to 3D task

What the N4D API returned for the teapot prompt

Item Result
Submit to succeeded 357 seconds
Credits used 30 (texture and PBR on)
Format and topology GLB, triangle mesh
Defaults applied mesh_quality: standard, target_polycount: 500000, pose: auto
File size 14,366,936 bytes (14 MB)
Mesh 265,442 vertices, 499,952 triangles, 1 material

The GLB link sits at output.models[0].model_urls.glb. It is a signed URL with a fixed expiry; ours, created at 11:33 UTC, was valid until 00:00 UTC the next day. Once a link expires, query the same task again for a fresh link instead of generating a new model. The download and checks from our run:

Terminal
$ GLB_URL=$(node -p 'require("./assets/neural4d/<task_id>/task-info.json").output.models[0].model_urls.glb')
$ curl -s -o assets/neural4d/<task_id>/model.glb -w 'HTTP %{http_code}, %{size_download} bytes\n' "$GLB_URL"
HTTP 200, 14366936 bytes

$ head -c 4 assets/neural4d/<task_id>/model.glb
glTF

To check that the CLAUDE.md alone is enough, we then opened a fresh Claude Code session in the terminal and handed it only the task ID. It recorded the task, queried the N4D API, downloaded and verified the GLB in 47 seconds, without creating a new task:

Claude Code terminal running an N4D API task from CLAUDE.md
Claude Code 2.1.311 in the terminal, given only the existing task ID and the instruction to follow CLAUDE.md.
Claude Code report: task succeeded, 30 credits, GLB downloaded
Claude Code’s report from the same session. Note the last line: it would not call the model ready until someone opened it.
N4D API preview of a generated white ceramic teapot
The front thumbnail the N4D API returned with the task (thumbnail_urls.front). Prompt: “a white ceramic teapot with a curved spout and round lid.”

Triangle models, the default, return one GLB with materials inside. Quad models return model_urls.obj, an mtl when textured, and separate maps under texture_urls. Download from the signed URL as is, without the API key. Partial success is a real state: if one child fails, download the others and read the failed child’s error.code and error.message.

A glTF header and a nonzero size prove the file arrived intact. They do not prove the model fits your project, which is what the next two steps check.

Step 5: Check the Model in Blender with Claude Code

A completed download proves that bytes arrived. It does not prove the model is usable. Check three levels in order:

  1. File saved. The path matches the record, the size is greater than zero, and the format is GLB.
  2. File opens. Load it in a viewer, DCC tool or engine. Confirm one object or the expected parts, at a plausible scale and orientation.
  3. Contents match the brief. Check the silhouette, the material maps, and the topology or polycount you asked for.

Levels 2 and 3 are where Blender helps, and this is the Claude Code Blender step most people are looking for. Claude Code works in the terminal, so the most reliable route is a Blender Python (bpy) script that Claude Code writes and runs with Blender in the background. No window opens and no MCP server is involved. We asked:

Prompt
Write a Blender script that imports model.glb, centers it on the floor, scales the
longest side to 10 cm, adds a camera and two area lights, renders a PNG, reports
vertex count and non-manifold edges, and saves a .blend file. Run it with Blender in
background mode.

The core of the script Claude Code wrote:

Python
# excerpt of import_render_export.py
import bpy, bmesh, sys, os
glb, out = sys.argv[sys.argv.index("--") + 1:]
bpy.ops.wm.read_factory_settings(use_empty=True)
bpy.ops.import_scene.gltf(filepath=glb)
obj = [o for o in bpy.context.scene.objects if o.type == "MESH"][0]
# ...center, scale to 10 cm, add camera and lights...
bm = bmesh.new(); bm.from_mesh(obj.data)
non_manifold = sum(1 for e in bm.edges if not e.is_manifold)
bpy.context.scene.render.filepath = os.path.join(out, "renders", "teapot_render.png")
bpy.ops.render.render(write_still=True)
bpy.ops.wm.save_as_mainfile(filepath=out + "/teapot.blend")
Terminal output
# terminal output, trimmed
$ blender --background --python import_render_export.py -- model.glb .
Saved: 'renders/teapot_render.png'
STATS {"objects": 1, "verts": 265442, "faces": 499952, "non_manifold_edges": 29836}
real 6.5s

Import, a 64-sample Cycles render and the save took 6.5 seconds on our Mac (CPU rendering). Opening the saved .blend shows the imported teapot with its material:

N4D teapot imported into Blender 5.3 by a Claude Code script
Screenshot of Blender 5.3 after the script ran. The statistics overlay shows the mesh size; the object sits at the origin, scaled down from the 2 m GLB to 10 cm.
Blender Cycles render of the N4D teapot
The PNG the script rendered in Cycles at 64 samples, with no manual changes.

Two things the numbers told us. The GLB came in about 2 m long, so plan a scale step for any engine or print. And the 29,836 non-manifold edges look alarming but turned out not to be holes: they sat on duplicate vertices at the same positions, which glTF keeps separate wherever texture coordinates differ. Step 6 shows that merging them clears the count.

Previewing is optional and separate from generation. You can also ask Claude Code to serve a local web viewer that loads the downloaded file; that viewer should read only the output directory and never the API key.

Keep acceptance separate from download. A model can open cleanly and still be the wrong shape, carry poor topology for rigging, or need work before a game engine accepts it. Check those properties in the tool you will actually use.

Step 6: Export an STL for 3D Printing

For Claude 3D printing, the file has to pass one more test: a slicer needs a closed (watertight) mesh. We asked Claude Code for a second script that merges duplicate vertices, counts non-manifold edges again, measures the volume and exports STL:

Python
# excerpt of print_prep.py, run on the saved teapot.blend
obj = [o for o in bpy.context.scene.objects if o.type == "MESH"][0]
bpy.context.view_layer.objects.active = obj
bpy.ops.object.transform_apply(location=True, rotation=True, scale=True)  # bake the 10 cm scale
bm = bmesh.new(); bm.from_mesh(obj.data)
bmesh.ops.remove_doubles(bm, verts=bm.verts, dist=1e-7)   # merge by distance
non_manifold = sum(1 for e in bm.edges if not e.is_manifold)
volume_cm3 = abs(bm.calc_volume()) * 1e6
bm.to_mesh(obj.data)
bpy.ops.wm.stl_export(filepath=out + "/teapot_print.stl")

Mesh check before and after merging duplicate vertices

Printability check on the teapot scaled to 10 cm

Check As imported After merge by distance
Vertices 265,442 249,934
Non-manifold edges 29,836 0
Triangles 499,952 499,868
Volume not measured 108.4 cm³

Zero non-manifold edges after the merge mean the N4D surface itself had no holes: the only fix was joining vertices less than 0.0001 mm apart, which the glTF format keeps separate wherever texture coordinates differ. No geometry was rebuilt. The exported STL is 25 MB; we did not slice or print it in this test.

Render of the exported N4D teapot STL for 3D printing
The exported teapot_print.stl reopened in Blender and rendered in a neutral clay material: 499,868 triangles, 0 non-manifold edges, 108.4 cm³.

If you start from a photo instead, N4D can also export print files directly from Image to STL.

Turn the Workflow into a Claude 3D Modeling Skill

A Skill packages instructions so Claude Code loads them only when a request matches, instead of on every session (Claude Code Skills docs). Save the following as .claude/skills/n4d-3d/SKILL.md for one project, or under ~/.claude/skills/ for all projects:

SKILL.md
---
name: n4d-3d
description: Generate a 3D model with the N4D API from a text prompt or image, download
  the GLB, and optionally import it into Blender or export an STL. Use when the user asks
  to create, generate or model a 3D object.
---

1. Follow the N4D API rules: base URL, auth from $NEURAL4D_API_KEY, model
   dreamtech/neural4d-2.5, save the task record before polling.
2. Poll every 15 s up to 10 min. Download the GLB as soon as the task succeeds.
3. If the user mentions Blender, write a bpy script and run it with
   `blender --background --python script.py -- model.glb out/`.
4. If the user mentions printing, merge by distance, report non-manifold edges and volume,
   and export STL.
5. Report task ID, credits, file paths and any check that failed.

We tested the Skill with one sentence that names it and points to the existing teapot task: “Use the n4d-3d skill. My teapot from N4D task ae169468-… is already done, so do not create a new task: get the GLB, then get it ready for 3D printing and export an STL.” Claude Code reused the GLB, merged the duplicate vertices and exported a watertight STL in about a minute, without a new generation:

Claude Code using the n4d-3d Skill to export a watertight STL
Claude Code’s report after the Skill ran: no new task or credits, 0 non-manifold and 0 open edges after the merge, a 100 mm print size and a 108.4 cm³ volume.

After that, one line is enough: “Make a low poly fox with N4D and open it in Blender.” Keep either the Skill or the CLAUDE.md block, not both, so the rules do not drift apart.

N4D API vs Blender MCP for Claude 3D Modeling

There are two common ways to do Claude 3D modeling with Blender in the loop. This tutorial generates the model through an API and uses Blender for checks and exports. The other route connects Claude to a running Blender through an MCP server (Model Context Protocol, a standard way for AI apps to call outside tools) and lets Claude build the scene with Blender’s own tools.

Which Claude Blender route fits your task

Claude Code + N4D API compared with Claude + Blender MCP

Question Claude Code + N4D API (this guide) Claude + Blender MCP
Where the geometry comes from Generated by the N4D API from text or an image Built in Blender from primitives, modifiers and Python
Typical result One textured, detailed mesh (ours: about 500,000 triangles with PBR) Usually simpler, lower-poly shapes unless you guide it step by step
Best for Organic objects, props, characters, anything hard to describe as code Scene layout, lighting, edits to an existing .blend file, simple hard-surface parts
Does Blender need to be open? No. Blender runs in the background, or not at all Yes. The add-on runs inside an open Blender session
Setup API key and CLAUDE.md Blender add-on, MCP server and client config
Repeatable in scripts or CI Yes. Same request, task ID and file every time Hard. Each session depends on the live scene
Cost 30 N4D credits per textured model in our test No generation credits; Claude usage only

Setting up Blender MCP with Claude, in brief

  1. In Claude Desktop, add the official Blender connector (Customize, then Connectors). For Claude Code, install the Blender MCP add-on and start its server from the sidebar.
  2. Register the MCP server with your Claude client. In Claude Code that is one claude mcp add command; in Claude Desktop it is an entry in the MCP config file.
  3. Restart the client, open Blender, and ask Claude to list the objects in the scene to confirm the connection.

Exact commands, Claude Desktop config and fixes for connection errors are in our Blender MCP setup guide for Codex, ChatGPT Desktop and Claude.

The two routes combine well. Generate the asset with the N4D API as in Steps 3 and 4, then let Claude place, light and render it through Blender MCP.

Troubleshooting Claude Code and N4D API Errors

Find the stage where the workflow stopped, then apply the matching check. Claude Code errors and N4D API errors come from different systems, so read the source of the message before changing anything.

Troubleshooting by stage

Symptom and what to check at each stage of the workflow

Stage Symptom What to check
Configuration Claude Code says the key is missing Confirm the placeholder was replaced, then start Claude Code from the same shell where the variable is set. In an IDE or desktop app, set it in the process that runs the command.
Configuration CLAUDE.md does not seem to load Check the file name and location, start a new session in the project, and run /memory. Look for settings that exclude project instructions.
Submit 401 invalid_api_key The execution environment is using a missing or wrong key. Check the key there. Do not paste it into chat.
Submit 403 subscription_required The account has no active paid subscription for the API. Check the plan in the N4D API dashboard.
Submit 403 insufficient_credits The paid subscription is active but the credit balance is too low. Check the balance in the N4D API dashboard.
Submit 429 rate or generation limit Wait for the interval the response indicates, or back off. Do not create duplicate tasks to work around the limit.
Submit 400 invalid_prompt or another 400 code Check the prompt length (1000 characters maximum), JSON structure, and field names against the 3D generation reference.
Submit Request timed out with no task ID The result is unknown. Do not resubmit. Keep the submit time and a sanitized error. If an ID turns up later, query it.
Submit 500 with task_registration_failed, or registration_failed in error.details The task is queued. Do not resubmit, because a second submission can charge you again. Keep error.details.task, which holds the task ID, UUIDs, and known credit usage. Task lookup may return 404 until registration is repaired, so retry the original task later with that data.
Query task_not_found Check that the ID came from this account and that you passed id for a batch and uuid for one child. If the original submission reported registration_failed, a 404 can be temporary; use error.details.task and query again later instead of submitting a new request.
Query Task status is failed Read error.code and error.message. A retryable flag means a retry may succeed, not that a new task should be created automatically.
Download Link fails or has expired Query the original task again for current signed links. Do not regenerate. Do not add the API key to the download URL.
Download Some children succeeded, others failed Download the successful children and report the failed ones with their error details.
Claude Code Claude Code itself reports a 529 overload 529 comes from the Claude service, not the N4D API. Wait and retry the Claude request. An existing N4D task keeps running and can be queried later.
Download Task returned OBJ files instead of a GLB The request used topology: quad. Triangle topology, the default, returns one GLB.
Blender blender: command not found Call the full path. On macOS it is /Applications/Blender.app/Contents/MacOS/Blender.
Blender Model looks huge or tiny GLB units are meters and our model arrived about 2 m long. Scale it in the script.
Blender Blender or the slicer reports non-manifold edges Merge by distance first, as in Step 6; in our test that alone cleared all 29,836. If edges stay open, use our Blender mesh cleanup guide.

FAQs About Claude 3D Modeling

Does Claude generate 3D images or 3D models?

Claude creates 3D through code or tools, not as images. It writes Blender Python, CAD or Three.js code, or calls a 3D generation API such as the N4D API to get a real mesh file.

How good is Claude with Blender?

Claude is strong at Blender scripting: importing, arranging, lighting, rendering and batch edits. Organic shapes built from primitives tend to look simple, which is why this guide generates the mesh with the N4D API and uses Blender for the rest.

Why does Claude struggle to make detailed 3D models on its own?

Claude is a language model, so it builds shapes out of code and primitives. Characters, props and other organic forms need a model trained on 3D data, such as the N4D API.

Can Claude animate in Blender?

Claude can write bpy scripts that set keyframes and render frames. We did not test animation in this guide. For a quicker route, rig an N4D model with AI Auto Rigging and download it as an animated GLB.

Is there a Claude 3D model generator?

Claude has no built-in 3D generator. The working setup is Claude Code as the operator and a generation service behind it. This guide uses the N4D API; the same pattern works with any API that returns a task ID and a file URL.

Which Claude model is best for 3D modeling?

For this workflow the model choice matters less than the tools, because the mesh comes from the generation API. Use the default model in Claude Code. A stronger model helps more when Claude writes long Blender scripts or procedural geometry from scratch.

Can I use the N4D free plan with the API?

No. API access comes with the paid plans, starting with Go. The free plan works in the N4D web studio only.

What happens if I close Claude Code while a task is running?

The task keeps running on the N4D side. Only the local wait stops. Open a new session and ask Claude Code to query the task ID saved in tasks.json.

I expected a GLB, but the task returned OBJ files. What should I check?

Read topology in the task output. Triangle models return only model_urls.glb, with materials and textures inside the file. Quad models return model_urls.obj, an mtl when with_texture is true and the file is available, and separate maps under texture_urls. If you did not ask for quad, check the request Claude Code sent. To get a single GLB, use triangle topology, which is the default.

The GLB opens, but the materials look flat or a texture is missing. Where should I look first?

Compare the output’s with_texture and with_pbr flags with your request. For triangle output, texture_urls is omitted by design: the materials and any textures travel inside the GLB. Check that the viewer supports PBR and is not using an unlit or flat-shading mode. If the task used quad topology, download obj, mtl, and every file listed in texture_urls, and keep the filenames and relative paths unchanged. Only textured quad models return separate maps, and missing map types are omitted, so confirm the flags before treating an absent map as a failure. If a textured quad task is still processing, its maps may be empty; query the saved task later instead of regenerating.

Can I check a task from another machine or a CI job?

Yes, if that environment has the key for the same N4D account. The task ID is not tied to one Claude Code session. Query GET /tasks/task-info?id=<TASK_ID>, then download from the fresh signed URLs in the response. Keep the key in the environment or secret store, and never store it in the task record.

Conclusion

Claude 3D modeling works best as a chain: Claude Code for the commands, the N4D API for the mesh, Blender for checks and exports. Run one model end to end first, as we did with the teapot, and confirm the GLB opens, the scale is right and the mesh passes the check for your use. Once that loop works, ask Claude Code to run a list of prompts or image references and keep one record per task, reusing the same CLAUDE.md or Skill, or move on to placing a generated model in a Godot game.

Scroll to Top