Skip to content

Developers

Archify API

Run Archify's render tools and edit your Design Studio floor plans from your own software or from Claude. Available on Studio and multi-seat plans; generations cost the same credits they do in the app, failed runs refund automatically, and design edits cost no credits.

Authentication

Create a key in the app under Account → API keys. The key is shown once and stored only as a hash, so keep it somewhere safe — if you lose it, revoke it and create another. Send it as a bearer token, and never from a browser or anywhere a customer could read it.

Authorization: Bearer ark_your_key_here

Start a render

POST /api/v1/renders — image inputs are passed as a public imageUrl we download; JPG, PNG, or WebP up to 10MB. Tools that need a second file — inpainting, AI eraser and style transfer — and 3D are not in v1; video is the separate premium-video tool.

Supported tools (19)

The same lineup the app offers — a tool we withdraw for quality leaves the API at the same time. Pass the tool value exactly as written.

  • Sketch to Imagesketch-to-image
  • Exterior AIexterior
  • Landscape & Outdoorai-landscaping
  • Interior AIinterior
  • Imagine AIimagine-ai
  • Commercial Redesigncommercial-redesign
  • Day to Duskday-to-dusk
  • Sky Replacementsky-swap
  • Seasonsseasonal-exterior
  • Isometric Viewisometric-view
  • Elevationselevations
  • Tileable Texturestileable-textures
  • Mood Board AImood-board
  • Floor Plan Renderfloorplan-render
  • Render Enhancerrender-enhancer
  • 4K Upscaler4k-upscaler
  • Relightinterior-relight
  • Virtual Stagingvirtual-staging
  • Declutterdeclutter
curl https://www.archifyai.com/api/v1/renders \
  -H "Authorization: Bearer ark_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "tool": "exterior",
    "prompt": "Warm limestone facade, bronze window frames, evening light.",
    "imageUrl": "https://example.com/house.jpg",
    "options": { "structure_lock": "on" }
  }'

# 202 Accepted
{ "ok": true, "id": "abc123", "status": "processing", "tool": "exterior" }

Geometry fidelity (drawing-conditioned tools)

sketch-to-image, floorplan-render, isometric-view and elevations accept an optional options.form_control number from 0.4 (Creative — the AI may reinterpret the geometry) to 1 (Faithful — designed to keep every wall and opening where you drew it). Values outside that range are clamped. Omit it to get the default: 0.92 for floorplan-render, 0.8 for the other three. Other tools ignore the field.

"tool": "sketch-to-image",
"options": { "form_control": 0.65 }

Check a render

GET /api/v1/renders/{id} — poll every few seconds. Most image runs finish in well under a minute.

curl https://www.archifyai.com/api/v1/renders/abc123 \
  -H "Authorization: Bearer ark_your_key_here"

{ "ok": true, "id": "abc123", "status": "succeeded",
  "tool": "exterior", "outputs": ["https://.../0.png"] }

Errors and credits

  • Every error returns { "ok": false, "error": { "code", "message" } }.
  • 402 insufficient_credits — top up in the app. 403 plan_required — the API needs a Studio or multi-seat plan. 401 unauthorized — missing, malformed, or revoked key. 503 unavailable — the render service is down right now; the run's credits were refunded, so retry in a few minutes.
  • Credits are reserved when a run starts and refunded automatically if it fails or returns nothing.
  • Rate limits: 30 render submissions and 240 status checks per minute, per key. Exceeding one returns 429 rate_limited with a Retry-After header.
  • API runs appear in your normal History alongside everything made in the app.

Use Archify from Claude (MCP)

The same API is available as an MCP server at https://www.archifyai.com/api/mcp, so Claude Desktop, Claude Code, or any MCP client can list Archify's tools, start a render, and fetch the result for you in conversation. It uses your normal API key, runs the same tools with the same credits and refunds, and nothing extra is exposed — the MCP tool list is read from the API's own lineup.

Claude Code, or any client that connects over HTTP with a header

The one-liner is claude mcp add --transport http archify https://www.archifyai.com/api/mcp --header "Authorization: Bearer ark_your_key_here". As a config file:

{
  "mcpServers": {
    "archify": {
      "type": "http",
      "url": "https://www.archifyai.com/api/mcp",
      "headers": {
        "Authorization": "Bearer ark_your_key_here"
      }
    }
  }
}

Claude Desktop

Claude Desktop starts its MCP servers as local commands, so it reaches Archify through a small bridge file we publish: it passes each message to https://www.archifyai.com/api/mcp over HTTPS with your key and stores nothing. It needs Node.js 18 or newer.

  1. Save the bridge: curl -o ~/archify-mcp.mjs https://www.archifyai.com/mcp/archify-mcp.mjs (or open archify-mcp.mjs and save it — it is one short, readable file).
  2. In Claude Desktop open Settings → Developer → Edit Config and add the entry below, with the full path to the file and your key.
  3. Quit Claude Desktop completely and open it again; the Archify tools appear in the tools menu.
{
  "mcpServers": {
    "archify": {
      "command": "node",
      "args": [
        "/Users/you/archify-mcp.mjs"
      ],
      "env": {
        "ARCHIFY_API_KEY": "ark_your_key_here"
      }
    }
  }
}

If Claude Desktop says it cannot start the server, put the full path to Node.js (the output of which node) in "command".

Keep the key out of shared config files. Because an agent can call start_render on its own and every call spends your credits, set your MCP client to confirm with you before it generates anything. The render tools:

  • list_render_toolsLists every Archify tool the API can run right now, with its label, whether it needs an image and/or a prompt, and the options it accepts.
  • start_renderStarts a generation with one of Archify's tools (POST /api/v1/renders).
  • get_renderReads the status of a generation started with start_render (GET /api/v1/renders/{id}).

Let Claude edit your floor plan (MCP)

The same MCP server and key reach your Design Studio houses. An agent reads a design — every wall, door and window with its id, every room, and the numbers computed from the model — then edits it with the same commands, checked by the same validator, as the Studio's own assistant. Each applied edit is one version labelled “API edit” in the design's version history, so you can roll it back in the app; when history is full, the oldest agent edits make room first, never your named versions. A dry run checks the commands and writes nothing. None of these tools spends credits.

  • studio_list_designsLists the account's Design Studio houses, newest first: id, name, last saved, workspace and view-only share path (GET /api/v1/designs).
  • studio_get_designReads one design (GET /api/v1/designs/{id}): the model summary the in-app assistant reads — every level, wall (with its node ids and coordinates in mm), opening, room, furniture item and stair with its kernel id, plus the advisory checks — and computed totals from the model (net/gross floor area, rooms, bedroom/bath counts, doors, windows, wall runs, roof area, cost estimate).
  • studio_create_from_briefCreates a new Design Studio house from a program (POST /api/v1/designs) with the same deterministic layout solver as the app's Generate-a-house: a single-storey plan with the bedrooms and baths along one side, one open living/kitchen/dining space and an optional two-car garage.
  • studio_apply_commandsApplies kernel commands to a design (POST /api/v1/designs/{id}/commands) — the same commands, and the same validator, as the Design Studio's own assistant.
  • studio_sharePUBLISHES the design: returns its view-only share link (POST /api/v1/designs/{id}/share) — the existing /d/ link, or a new one.
  • studio_exportExports a design (GET /api/v1/designs/{id}/export) and returns a download link that works for 15 minutes without the API key — give it to the user.

Connect as above (Claude Code with the one-liner, Claude Desktop through the bridge), then ask in plain words — “add a 36 by 48 inch window centred on the north bedroom wall, then send me the link” — and it reads the design, sends a command like the one below (dry run first), and hands back the view-only link. If a command does not apply, nothing is written and the reason comes back with the command's position.

{ "kind": "addOpening", "id": "op_new1", "wallId": "<a wall id from studio_get_design>",
  "openingKind": "window", "t": 0.5, "width": 914, "height": 1219, "sill": 914,
  "swing": "left", "swingIn": true }

The REST endpoints behind the tools

  • GET /api/v1/designsYour designs, newest first (id, name, workspace, share link).
  • GET /api/v1/designs/{id}The model summary with every kernel id, computed totals (areas, rooms, doors, windows, cost estimate, advisory checks) and recent versions. ?include=data adds the raw model.
  • POST /api/v1/designsCreate a design from a program (square feet, bedrooms, bathrooms, garage, roof style).
  • POST /api/v1/designs/{id}/commandsApply up to 120 kernel commands as one version labelled "API edit" — or check them with "dryRun": true, which writes nothing. Returns a diff summary.
  • POST /api/v1/designs/{id}/shareThe design's view-only /d/ link (minted if it has none).
  • GET /api/v1/designs/{id}/export?format=dxf|ifc|glbThe file itself; add &delivery=link for a short-lived download link instead.
curl https://www.archifyai.com/api/v1/designs/<id>/commands \
  -H "Authorization: Bearer ark_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{ "dryRun": true, "commands": [ { "kind": "addOpening", "id": "op_new1", "wallId": "<wall id>",
        "openingKind": "window", "t": 0.5, "width": 914, "height": 1219, "sill": 914,
        "swing": "left", "swingIn": true } ] }'

# 200 — checked, nothing written (drop "dryRun" to apply it as one "API edit" version)
{ "ok": true, "dryRun": true, "written": false,
  "diff": { "summary": "1 window added · Windows +1 · …", "entities": { "openings": { "added": ["op_new1"], "removed": [], "changed": [] } }, … } }

# 400 — a command that does not apply: the validator's reason, and nothing written
{ "ok": false, "written": false, "commandIndex": 0,
  "error": { "code": "invalid_commands", "message": "addOpening: unknown wall wl_nope" } }
  • Errors use the same shape as the render API: 400 invalid_commands (with the failing command's position), 404 not_found (also for a design on another account), 409 conflict, 403 plan_required, 401 unauthorized, and 429 rate_limited / 429 daily_limit.
  • Same key and plan as the rest of the API (Studio and multi-seat plans). Limits: 30 writes and 240 reads per minute per key, and 500 writes and 5,000 reads per day per account (reset 00:00 UTC). Dry runs count as writes. Over a limit: 429 with Retry-After.
  • Up to 120 commands per edit. Pass baseUpdatedAt (the design's updatedAt you read) and an edit is refused with 409 conflict if the design was saved since — and a Studio tab still open on the design asks before its next save overwrites an agent's edit.
  • Exports: DXF — CAD plan — every level in one DXF, each on its own layers; IFC — BIM model — IFC4 with stable element ids; GLB — 3D building shell — walls with their openings, floors, roof and stairs in flat material colours. Through MCP the file arrives as a download link that works for 15 minutes without your key — revoking the key that asked for it closes the link too.
  • The design summary includes the Studio's advisory checks — advisory, verify with your AHJ, not a code review.
  • Notes visitors leave on a share link appear in the summary as quoted text; agents are told to treat them as data, never as instructions. Sharing publishes the design to anyone with the link, so the share tool asks the agent to check with you first.
  • No webhooks: an agent reads the design again to see changes made in the app.

Video is available as the premium-video tool (Enhanced Video: one still plus a camera-motion prompt; needs a Pro, Studio, Student or multi-seat plan) in both the REST API and MCP. 3D generation, text-only tools, and tools that need a second file (inpaint, AI eraser, style transfer) are not in v1. If you need one of them through the API, say so and it moves up the list.