curl --request POST \
--url https://api.eddy.engineer/v1/asm.render \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"assembly": {},
"annotate": false,
"colors": {},
"columns": 123,
"explode": 1,
"fit": "view",
"format": "bmp",
"height": 512,
"overlays": [
{
"at": [
123
],
"color": [
123
],
"label": "<string>",
"max": [
123
],
"min": [
123
]
}
],
"segments": 32,
"view": "iso",
"views": [
"<string>"
],
"width": 512
}
'import requests
url = "https://api.eddy.engineer/v1/asm.render"
payload = {
"assembly": {},
"annotate": False,
"colors": {},
"columns": 123,
"explode": 1,
"fit": "view",
"format": "bmp",
"height": 512,
"overlays": [
{
"at": [123],
"color": [123],
"label": "<string>",
"max": [123],
"min": [123]
}
],
"segments": 32,
"view": "iso",
"views": ["<string>"],
"width": 512
}
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({
assembly: {},
annotate: false,
colors: {},
columns: 123,
explode: 1,
fit: 'view',
format: 'bmp',
height: 512,
overlays: [{at: [123], color: [123], label: '<string>', max: [123], min: [123]}],
segments: 32,
view: 'iso',
views: ['<string>'],
width: 512
})
};
fetch('https://api.eddy.engineer/v1/asm.render', 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/asm.render",
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([
'assembly' => [
],
'annotate' => false,
'colors' => [
],
'columns' => 123,
'explode' => 1,
'fit' => 'view',
'format' => 'bmp',
'height' => 512,
'overlays' => [
[
'at' => [
123
],
'color' => [
123
],
'label' => '<string>',
'max' => [
123
],
'min' => [
123
]
]
],
'segments' => 32,
'view' => 'iso',
'views' => [
'<string>'
],
'width' => 512
]),
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/asm.render"
payload := strings.NewReader("{\n \"assembly\": {},\n \"annotate\": false,\n \"colors\": {},\n \"columns\": 123,\n \"explode\": 1,\n \"fit\": \"view\",\n \"format\": \"bmp\",\n \"height\": 512,\n \"overlays\": [\n {\n \"at\": [\n 123\n ],\n \"color\": [\n 123\n ],\n \"label\": \"<string>\",\n \"max\": [\n 123\n ],\n \"min\": [\n 123\n ]\n }\n ],\n \"segments\": 32,\n \"view\": \"iso\",\n \"views\": [\n \"<string>\"\n ],\n \"width\": 512\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/asm.render")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"assembly\": {},\n \"annotate\": false,\n \"colors\": {},\n \"columns\": 123,\n \"explode\": 1,\n \"fit\": \"view\",\n \"format\": \"bmp\",\n \"height\": 512,\n \"overlays\": [\n {\n \"at\": [\n 123\n ],\n \"color\": [\n 123\n ],\n \"label\": \"<string>\",\n \"max\": [\n 123\n ],\n \"min\": [\n 123\n ]\n }\n ],\n \"segments\": 32,\n \"view\": \"iso\",\n \"views\": [\n \"<string>\"\n ],\n \"width\": 512\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/asm.render")
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 \"assembly\": {},\n \"annotate\": false,\n \"colors\": {},\n \"columns\": 123,\n \"explode\": 1,\n \"fit\": \"view\",\n \"format\": \"bmp\",\n \"height\": 512,\n \"overlays\": [\n {\n \"at\": [\n 123\n ],\n \"color\": [\n 123\n ],\n \"label\": \"<string>\",\n \"max\": [\n 123\n ],\n \"min\": [\n 123\n ]\n }\n ],\n \"segments\": 32,\n \"view\": \"iso\",\n \"views\": [\n \"<string>\"\n ],\n \"width\": 512\n}"
response = http.request(request)
puts response.read_body"<string>"{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Deterministic assembly render: components posed, merged and coloured per BOM item (C22.9.b)
Components rebuild (unique by recipe hash), pose into world by the mate solve and merge into one disjoint-shell scene (the C19.4.h path); each component is coloured by its BOM item from a fixed palette unless colors names it. Then the same deterministic ray cast as POST /v1/cad.render: eight canonical views on a right-handed basis, fit: shared, annotations, world-space overlays, contact sheets, BMP or PNG — the same request renders the same bytes. An unbuilt component is a typed refusal; a render never quietly drops a part.
curl --request POST \
--url https://api.eddy.engineer/v1/asm.render \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"assembly": {},
"annotate": false,
"colors": {},
"columns": 123,
"explode": 1,
"fit": "view",
"format": "bmp",
"height": 512,
"overlays": [
{
"at": [
123
],
"color": [
123
],
"label": "<string>",
"max": [
123
],
"min": [
123
]
}
],
"segments": 32,
"view": "iso",
"views": [
"<string>"
],
"width": 512
}
'import requests
url = "https://api.eddy.engineer/v1/asm.render"
payload = {
"assembly": {},
"annotate": False,
"colors": {},
"columns": 123,
"explode": 1,
"fit": "view",
"format": "bmp",
"height": 512,
"overlays": [
{
"at": [123],
"color": [123],
"label": "<string>",
"max": [123],
"min": [123]
}
],
"segments": 32,
"view": "iso",
"views": ["<string>"],
"width": 512
}
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({
assembly: {},
annotate: false,
colors: {},
columns: 123,
explode: 1,
fit: 'view',
format: 'bmp',
height: 512,
overlays: [{at: [123], color: [123], label: '<string>', max: [123], min: [123]}],
segments: 32,
view: 'iso',
views: ['<string>'],
width: 512
})
};
fetch('https://api.eddy.engineer/v1/asm.render', 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/asm.render",
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([
'assembly' => [
],
'annotate' => false,
'colors' => [
],
'columns' => 123,
'explode' => 1,
'fit' => 'view',
'format' => 'bmp',
'height' => 512,
'overlays' => [
[
'at' => [
123
],
'color' => [
123
],
'label' => '<string>',
'max' => [
123
],
'min' => [
123
]
]
],
'segments' => 32,
'view' => 'iso',
'views' => [
'<string>'
],
'width' => 512
]),
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/asm.render"
payload := strings.NewReader("{\n \"assembly\": {},\n \"annotate\": false,\n \"colors\": {},\n \"columns\": 123,\n \"explode\": 1,\n \"fit\": \"view\",\n \"format\": \"bmp\",\n \"height\": 512,\n \"overlays\": [\n {\n \"at\": [\n 123\n ],\n \"color\": [\n 123\n ],\n \"label\": \"<string>\",\n \"max\": [\n 123\n ],\n \"min\": [\n 123\n ]\n }\n ],\n \"segments\": 32,\n \"view\": \"iso\",\n \"views\": [\n \"<string>\"\n ],\n \"width\": 512\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/asm.render")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"assembly\": {},\n \"annotate\": false,\n \"colors\": {},\n \"columns\": 123,\n \"explode\": 1,\n \"fit\": \"view\",\n \"format\": \"bmp\",\n \"height\": 512,\n \"overlays\": [\n {\n \"at\": [\n 123\n ],\n \"color\": [\n 123\n ],\n \"label\": \"<string>\",\n \"max\": [\n 123\n ],\n \"min\": [\n 123\n ]\n }\n ],\n \"segments\": 32,\n \"view\": \"iso\",\n \"views\": [\n \"<string>\"\n ],\n \"width\": 512\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/asm.render")
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 \"assembly\": {},\n \"annotate\": false,\n \"colors\": {},\n \"columns\": 123,\n \"explode\": 1,\n \"fit\": \"view\",\n \"format\": \"bmp\",\n \"height\": 512,\n \"overlays\": [\n {\n \"at\": [\n 123\n ],\n \"color\": [\n 123\n ],\n \"label\": \"<string>\",\n \"max\": [\n 123\n ],\n \"min\": [\n 123\n ]\n }\n ],\n \"segments\": 32,\n \"view\": \"iso\",\n \"views\": [\n \"<string>\"\n ],\n \"width\": 512\n}"
response = http.request(request)
puts response.read_body"<string>"{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Body
Camera direction on a right-handed basis: front looks along +Y with Z up, top looks down -Z with +Y up, right looks along -X; back / bottom / left are their opposites; iso views from +X+Y+Z, iso_rear from -X-Y+Z (C22.9.b).
front, back, top, bottom, right, left, iso, iso_rear Response
Rendered image
The response is of type file.