API & CLI Reference
Production-ready interfaces for the Genesis Platform v3.0.0. Typer-based CLI with 30+ commands, FastAPI gateway with 11 routers and 64+ endpoints, Python SDK supporting local and remote modes.
Quick Start
# Install Genesis Platform
pip install -e ".[all]"
# Check all data room availability
genesis status
# See all available commands
genesis --help
# Run a specific solver
genesis solve lbm --resolution 64 --steps 100
# Run PROV-specific commands
genesis thermal simulate --flux 150 --fluid genesis_gx1
genesis glass-pdk compile configs/golden_50ohm.yaml
genesis isocompiler analyze -c configs/example.yaml
# Start the FastAPI gateway
genesis serve
# Swagger UI: http://localhost:8000/docs
# ReDoc: http://localhost:8000/redoc
# Docker deployment
docker build -t genesis-platform .
docker run -p 8000:8000 genesis-platformCLI Command Reference
Typer-based CLI with subcommands for every data room. Entry point: genesis (installed via pip install -e .)
genesis serveStart unified FastAPI gateway (11 routers, 87 endpoints)
genesis statusShow all data room availability and solver health
genesis solve lbmLattice Boltzmann D2Q9 simulation
genesis solve femPlane stress 2D FEM analysis
genesis fab-os predictFEM warpage prediction for EUV lithography
genesis fab-os verify-physicsRun PROV 1 physics verification suite
genesis packaging solve-kirchhoffVon Karman nonlinear plate solver
genesis thermal simulateMarangoni boiling simulation
genesis thermal gpuGPU preset simulation (B200, H100, etc.)
genesis photonics firewallGlass firewall TMM RF isolation
genesis photonics verifyClaim verification against evidence
genesis smart-matter screenML selectivity prediction for ligands
genesis smart-matter reactorKremser cascade simulation
genesis smart-matter costCOGS estimation for production
genesis solid-state generateGyroid lattice generation
genesis solid-state verify-solidTortuosity and selectivity verification
genesis glass-pdk compileCompile PDK from YAML config
genesis glass-pdk validate-solverRun 177-test solver validation suite
genesis glass-pdk optimizePareto optimization for TGV designs
genesis glass-pdk materialsMaterial database query
genesis glass-pdk exportEDA export (HFSS / Sigrity)
genesis glass-pdk feasibilityAutomated feasibility report
genesis isocompiler analyzeEM coupling decomposition
genesis isocompiler synthesizeFull synthesis + DRC check
genesis isocompiler optimizeNevergrad optimization
genesis isocompiler verifyPalace full-wave verification
genesis isocompiler validate-solverFDTD validation suite
genesis isocompiler drcKLayout DRC check
genesis bondability runFull GDS-to-yield pipeline
genesis bondability analyzeMulti-layer 3D analysis
genesis bondability benchmarkValidation benchmarks
genesis bondability serveStart REST API server
REST API — Full Endpoint Reference
FastAPI gateway with 11 routers. Lazy-imports solvers to avoid loading all 9 data rooms at startup. Start with: genesis serve
Python SDK
Supports both local (in-process) and remote (REST) modes with identical APIs. Each PROV data room also ships its own standalone CLI and SDK.
from genesis_sdk.v1 import GenesisSDK, LbmRequest, FemRequest
# Initialize SDK (local mode - runs solvers in-process)
sdk = GenesisSDK(mode="local")
# Run LBM Simulation
lbm_result = sdk.solve_lbm(LbmRequest(
nx=100,
ny=41,
viscosity=0.02,
inlet_velocity=0.1,
steps=2000
))
print(f"Max velocity: {lbm_result.u_max}")
print(f"RMS Error: {lbm_result.validation_error:.2f}%")
# Run FEM Analysis
fem_result = sdk.solve_fem(FemRequest(
nx=50,
ny=50,
hotspot_temp=200,
bc_type="bottom_fixed"
))
print(f"Max stress: {fem_result.max_stress / 1e6:.1f} MPa")
# Chain LBM -> FEM pipeline
pipeline_result = sdk.run_pipeline(
"lbm-fem",
geometry="gyroid",
resolution=64
)
print(f"Pipeline max stress: {pipeline_result.max_stress / 1e6:.1f} MPa")from genesis_sdk.v1 import GenesisSDK, LbmRequest
# Initialize SDK (remote mode - calls REST API)
sdk = GenesisSDK(
mode="remote",
base_url="https://api.nmk-ai.com",
api_key="your-api-key"
)
# Same API, different backend
result = sdk.solve_lbm(LbmRequest(nx=100, ny=41))
print(f"Max velocity: {result.u_max}")# PROV 3: Thermal Core
from genesis_thermal_api import ThermalCore
tc = ThermalCore()
result = tc.simulate(flux=150, fluid="genesis_gx1")
print(f"Junction temp: {result.T_junction} C")
# PROV 7: Glass PDK
from glass_pdk import GlassPDK
pdk = GlassPDK.from_yaml("configs/golden_50ohm.yaml")
design = pdk.compile()
pdk.export(design, format="hfss")
# PROV 8: Isocompiler
from isocompiler import Pipeline
pipe = Pipeline.from_yaml("configs/example.yaml")
result = pipe.analyze()
synth = pipe.synthesize(result)
pipe.export_gds(synth, "output.gds")Output Formats
JSONAPI responses, simulation results, evidence artifacts
STL3D printing, CAD import, mesh visualization
STEPCAD/CAM, manufacturing toolpaths
VTKParaView scientific visualization
GDSIISemiconductor fab masks, foundry tapeout
INPCalculiX / Abaqus FEA input files
CSVData analysis, spreadsheet import
YAMLConfiguration files, process parameters
Material Library
Query with: genesis glass-pdk materials or via API: GET /v1/glass-pdk/materials
Dependencies & Installation
Required
Optional Extras
Ready to integrate?
Get API access and start building physics-aware applications. Full Swagger documentation at /docs.