rf

Generate a complete SPICE netlist from a parameterized template. Supports common circuit topologies: low-pass RC filter, voltage divider, common emitter amplifier. Returns a ready-to-simulate netlist string that can be passed directly to spice_simulate. Use this when an agent needs to construct a circuit from high-level parameters without writing raw SPICE syntax. Feeds into spice_simulate for AC/DC/transient analysis.

post/api/spice_template

Request

  • Base URL: https://calc.engineer
  • URL: https://calc.engineer/api/spice_template
  • Auth: none declared

Request body

template'low_pass_rc' | 'voltage_divider' | 'common_emitter' | 'rc_highpass' | 'rlc_bandpass' | 'opamp_inverting' | 'diode_rectifier' | 'wien_bridge' required

Circuit template name

paramsobject required

Template-specific parameters (e.g. r_ohms, c_farads, v_source)

analysis'ac' | 'dc' | 'tran'

SPICE analysis type to include in netlist

Response

Computed result for spice_template

toolstring required
versionstring required
computed_atstring date-time required

Changes

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