spice

Process Netlist With Autowiring

Process a .PARTS/.NETS format netlist with auto-placement and autowiring.

Components with #POS are placed at their specified positions. Components without #POS are auto-placed using net-connectivity-based heuristics (weighted centroid + spiral search) in pin_wire_calculator.

Flow:

  1. Parse .PARTS/.NETS/.WIRES format
  2. Pass raw netlist to pin_wire_calculator which handles both positioned and unpositioned components, then does A* wire routing
post/api/spice-netlist/process-with-autowiring

Request

  • Base URL
    https://backend.snapmagic.com (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Request body

netliststring required

SPICE netlist text

normalize_passive_layoutboolean
grid_sizenumber nullable

Grid size in millimeters for component placement (default: 2.54mm)

modelstring 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

Successful Response

enhanced_netliststring required

Enhanced netlist with positions and wires

component_countinteger required

Number of components found

Changes

No recorded changes to this operation across all 1 revision of this API.