curl --request POST \
--url https://api.eddy.engineer/v1/dfm.cost \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"subject": {},
"material": "<string>",
"part": "<string>",
"process": "<string>",
"profile": "<string>",
"quantities": [
2
],
"quantity": 123,
"store": true
}
'import requests
url = "https://api.eddy.engineer/v1/dfm.cost"
payload = {
"subject": {},
"material": "<string>",
"part": "<string>",
"process": "<string>",
"profile": "<string>",
"quantities": [2],
"quantity": 123,
"store": True
}
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({
subject: {},
material: '<string>',
part: '<string>',
process: '<string>',
profile: '<string>',
quantities: [2],
quantity: 123,
store: true
})
};
fetch('https://api.eddy.engineer/v1/dfm.cost', 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/dfm.cost",
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([
'subject' => [
],
'material' => '<string>',
'part' => '<string>',
'process' => '<string>',
'profile' => '<string>',
'quantities' => [
2
],
'quantity' => 123,
'store' => true
]),
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/dfm.cost"
payload := strings.NewReader("{\n \"subject\": {},\n \"material\": \"<string>\",\n \"part\": \"<string>\",\n \"process\": \"<string>\",\n \"profile\": \"<string>\",\n \"quantities\": [\n 2\n ],\n \"quantity\": 123,\n \"store\": true\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/dfm.cost")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"subject\": {},\n \"material\": \"<string>\",\n \"part\": \"<string>\",\n \"process\": \"<string>\",\n \"profile\": \"<string>\",\n \"quantities\": [\n 2\n ],\n \"quantity\": 123,\n \"store\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/dfm.cost")
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 \"subject\": {},\n \"material\": \"<string>\",\n \"part\": \"<string>\",\n \"process\": \"<string>\",\n \"profile\": \"<string>\",\n \"quantities\": [\n 2\n ],\n \"quantity\": 123,\n \"store\": true\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}The part's should-cost on a profile (ss.dfm.cost/1) and its cost curve over quantities
MF14’s should-cost from geometry for the profile’s process, material and quantity: the drivers the earlier units measure (machining setups and removal, holes; the mould’s pull, projected area and undercut classes; the sheet’s flat area, cuts and bends; the casting’s tooling; the printer’s build) priced against the shop’s cost section into lines (material, setup per lot, tooling with its life, machine, labour, post-processing), each naming the rate rows it used and their confidence. Every seeded rate is assumed: an order of magnitude, not a quote. quantities adds the curve: the drivers are measured once and priced again at each quantity, so the curve is exact (moulds wearing out, prints sharing a build). Deterministic and content-addressed (cost_key, stored as a blob unless store: false). A process with no cost model, an unpriced material or a part the process cannot read is a typed refusal.
curl --request POST \
--url https://api.eddy.engineer/v1/dfm.cost \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"subject": {},
"material": "<string>",
"part": "<string>",
"process": "<string>",
"profile": "<string>",
"quantities": [
2
],
"quantity": 123,
"store": true
}
'import requests
url = "https://api.eddy.engineer/v1/dfm.cost"
payload = {
"subject": {},
"material": "<string>",
"part": "<string>",
"process": "<string>",
"profile": "<string>",
"quantities": [2],
"quantity": 123,
"store": True
}
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({
subject: {},
material: '<string>',
part: '<string>',
process: '<string>',
profile: '<string>',
quantities: [2],
quantity: 123,
store: true
})
};
fetch('https://api.eddy.engineer/v1/dfm.cost', 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/dfm.cost",
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([
'subject' => [
],
'material' => '<string>',
'part' => '<string>',
'process' => '<string>',
'profile' => '<string>',
'quantities' => [
2
],
'quantity' => 123,
'store' => true
]),
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/dfm.cost"
payload := strings.NewReader("{\n \"subject\": {},\n \"material\": \"<string>\",\n \"part\": \"<string>\",\n \"process\": \"<string>\",\n \"profile\": \"<string>\",\n \"quantities\": [\n 2\n ],\n \"quantity\": 123,\n \"store\": true\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/dfm.cost")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"subject\": {},\n \"material\": \"<string>\",\n \"part\": \"<string>\",\n \"process\": \"<string>\",\n \"profile\": \"<string>\",\n \"quantities\": [\n 2\n ],\n \"quantity\": 123,\n \"store\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/dfm.cost")
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 \"subject\": {},\n \"material\": \"<string>\",\n \"part\": \"<string>\",\n \"process\": \"<string>\",\n \"profile\": \"<string>\",\n \"quantities\": [\n 2\n ],\n \"quantity\": 123,\n \"store\": true\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Body
Response
cost_key, stored, estimate (ss.dfm.cost/1: kind, part, process, material, quantity, currency, shop, drivers {family, ...}, lines[] {group (material | setup | tooling | machine | labour | post | overhead), item, feature?, basis, time_s?, per_part, per_lot, tooling, tool_life?, source, confidence}, features[], totals {material, processing, setup_per_lot, tooling, overhead, per_part, markup, price, cycle_time_s}, sources {key: {source, confidence}}, overhead_fraction, markup_fraction, confidence, notes[]), curve[] {quantity, per_part, price}