curl --request POST \
--url https://api.eddy.engineer/v1/solve.circuit \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"analysis": "<unknown>",
"netlist": {},
"async": false,
"record": false
}
'import requests
url = "https://api.eddy.engineer/v1/solve.circuit"
payload = {
"analysis": "<unknown>",
"netlist": {},
"async": False,
"record": False
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({analysis: '<unknown>', netlist: {}, async: false, record: false})
};
fetch('https://api.eddy.engineer/v1/solve.circuit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/solve.circuit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'analysis' => '<unknown>',
'netlist' => [
],
'async' => false,
'record' => false
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/solve.circuit"
payload := strings.NewReader("{\n \"analysis\": \"<unknown>\",\n \"netlist\": {},\n \"async\": false,\n \"record\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/solve.circuit")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"analysis\": \"<unknown>\",\n \"netlist\": {},\n \"async\": false,\n \"record\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/solve.circuit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"analysis\": \"<unknown>\",\n \"netlist\": {},\n \"async\": false,\n \"record\": false\n}"
response = http.request(request)
puts response.read_body{
"events": "/v1/jobs/job-000001-…/events",
"job_id": "<string>",
"phase": "queued",
"poll": "/v1/jobs/job-000001-…"
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}MNA circuit solve (E1)
Solve a netlist document by Modified Nodal Analysis: dc_op (C open, L short, diode/LED fixed-drop with on/off iteration; exponential devices by damped Newton with pnjlim limiting, max 100 iterations, typed divergence), trapezoidal transient on a fixed grid (Newton re-solve per step for nonlinear devices), or ac small-signal (E6): DC operating point, per-device linearization (diode_exp gd, npn/pnp Ebers-Moll hybrid-pi, nmos/pmos gm/gds), then a complex-MNA log-frequency sweep — vsine components excite at their amplitude, phase 0; other sources are DC-quieted. E7.17: netlist.temperature_c (degrees C, ngspice’s .temp; absent = 27 C, every existing document’s bytes and solution) scales the junctions’ Vt and IS (EG 1.11 eV, XTI 3) and the resistors’ tc1 / tc2 params. Deterministic bytes; the circuit_key is a content address over the (netlist, analysis) document, so identical circuits collide to identical keys. Every solve mints a RunRecord under the circuit_key, so /v1/traces/, /v1/reports/ and the corpus export serve circuit solves like FEA solves. Unsupported devices and malformed values are typed refusals naming what IS supported. Set record=true to store the document as a blob. Set async=true for compute placement: a 202 JobRef instead of the inline solution — the finished job carries the SAME circuit_key and byte-identical solution (placement is explicitly the caller’s choice; there is no size heuristic).
curl --request POST \
--url https://api.eddy.engineer/v1/solve.circuit \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"analysis": "<unknown>",
"netlist": {},
"async": false,
"record": false
}
'import requests
url = "https://api.eddy.engineer/v1/solve.circuit"
payload = {
"analysis": "<unknown>",
"netlist": {},
"async": False,
"record": False
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({analysis: '<unknown>', netlist: {}, async: false, record: false})
};
fetch('https://api.eddy.engineer/v1/solve.circuit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/solve.circuit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'analysis' => '<unknown>',
'netlist' => [
],
'async' => false,
'record' => false
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/solve.circuit"
payload := strings.NewReader("{\n \"analysis\": \"<unknown>\",\n \"netlist\": {},\n \"async\": false,\n \"record\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/solve.circuit")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"analysis\": \"<unknown>\",\n \"netlist\": {},\n \"async\": false,\n \"record\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/solve.circuit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"analysis\": \"<unknown>\",\n \"netlist\": {},\n \"async\": false,\n \"record\": false\n}"
response = http.request(request)
puts response.read_body{
"events": "/v1/jobs/job-000001-…/events",
"job_id": "<string>",
"phase": "queued",
"poll": "/v1/jobs/job-000001-…"
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Body
{"kind": "dc_op"}, {"kind": "transient", "stop": seconds, "steps": n} (steps capped at 100000), or {"kind": "ac", "fstart": hz, "fstop": hz, "points_per_decade": n} (log sweep, fstart > 0, fstop >= fstart, total points capped at 10000; response adds freqs + per-node ac_mag volts + ac_phase_deg).
Netlist document: {components: [{ref_id, kind, value?, params?, nodes}]}. Kinds: resistor, capacitor, inductor, vdc, idc, vstep, vsine, diode, led, diode_exp (Shockley, params is/n, Vt = kT/q at 300.15 K), npn, pnp (Ebers-Moll, params bf/is, 3 nodes [collector, base, emitter]), nmos, pmos (square-law level 1, params kp/vt/lambda, 3 nodes [drain, gate, source], bulk tied to source). Two-terminal nodes are [+, -] (diode/diode_exp: [anode, cathode]); node name "0" or "gnd" (case-insensitive) is ground.
Response
Circuit solution: node voltages + branch currents (+ t/series for transient) + content-addressed circuit_key