---
title: "Process Spice Netlist"
method: POST
path: "/api/spice-netlist/process-xml"
tags: ["spice"]
---

# Process Spice Netlist

`POST /api/spice-netlist/process-xml`

## Request

- Base URL: `https://backend.snapmagic.com` (the document declares no server; this is the origin it was published from)
- URL: `https://backend.snapmagic.com/api/spice-netlist/process-xml`
- Auth: none declared

## Request body

- SpiceNetlistRequest
  - `netlist` string, required: SPICE netlist text
  - `normalize_passive_layout` boolean
  - `grid_size` number, nullable: Grid size in millimeters for component placement (default: 2.54mm)
  - `model` string, nullable: AI model to use for component placement. OpenAI models: 'gpt-4o-mini', 'ft:gpt-4o-mini-2024-07-18:snapeda:block-designer-v2:DCnTdm8s'. Anthropic models: 'claude-opus-4-6', 'claude-sonnet-4-6'. If not provided, uses AI_MODEL_NAME env var, or defaults based on AI_MODEL_PROVIDER env var.

## Response `200`

Successful Response

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/snapmagic/apis/snapmagic-api.md) - [All operations](https://skmtc.dev/snapmagic/apis/snapmagic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/snapmagic/apis/snapmagic-api/revisions/db14522771a6?raw)
