# Headless Blender Synthetic Data & Ground-Truth AOV API

> Generate photorealistic RGB, linear Z-depth, world-space normals, and deterministic instance segmentation passes with automated `BVHTree` collision verification and parallel `fork()` domain randomization.

## Why Physical AI & Robotics Pipelines Use Sunfield
- **Sub-second spatial verification (`459 ms`):** Check `telemetry.collisions` (with exact `penetration_depth` in meters), `telemetry.floating_objects`, world AABBs, and camera frustum coverage before spending Cycles samples.
- **Ground-truth AOV passes:** Output aligned `rgb`, normalized linear `depth`, world-space `normals`, `wireframe`, and flat per-object `segmentation` masks.
- **Parallel domain randomization (`fork()`):** Build the base robot/tabletop scene once, then `POST /v1/sessions/{id}/fork` (`count <= 8`) in `tmpfs` to randomize lighting HDRIs, PBR tabletop textures, object poses, and camera extrinsics in parallel.
- **Predictable GPU-second cost:** `$0.00010/GPU-s` interactive EEVEE/inspection and `$0.000125/GPU-s` Cycles OptiX behind hard `max_cost_usd` caps.

## Minimal Domain-Randomization Loop (REST)

```bash
# 1. Create a base scene and stage CC0 HDRIs + materials
POST https://sunfield.dev/v1/sessions {"preset": "studio"}
POST https://sunfield.dev/v1/sessions/$BASE/assets {"asset_ids": ["hdri.brown_photostudio_01", "mat.oak_veneer_01"]}

# 2. Fork into 4 parallel randomization branches in tmpfs
POST https://sunfield.dev/v1/sessions/$BASE/fork {"count": 4}

# 3. Verify zero interpenetration & framing on each branch
POST https://sunfield.dev/v1/sessions/$CHILD/inspect {
  "views": ["camera"],
  "passes": ["rgb", "depth", "normals", "segmentation"],
  "checks": ["bounds", "framing", "collisions", "floating"]
}

# 4. Burst Cycles OptiX ground-truth frames (RGB + Depth + Normals)
POST https://sunfield.dev/v1/sessions/$CHILD/render {
  "engine": "cycles",
  "samples": 64,
  "resolution": [1024, 1024],
  "frames": [1, 2, 3, 4],
  "aov_passes": ["rgb", "depth", "normals"],
  "max_cost_usd": 0.10,
  "async": true
}
```

- **Full API manual:** https://sunfield.dev/skill.md

## Quickstart & $1.00 Free GPU Credits
- **Free Trial:** `$1.00` free GPU credits (~4,000 Cycles OptiX GPU-seconds, `$0/month`, no credit card required) at https://sunfield.dev/start (or programmatic `POST https://sunfield.dev/v1/signup` with `{"email": "you@company.com"}`).
- **Hosted Remote MCP (zero local Blender install):** `claude mcp add --transport http sunfield https://sunfield.dev/mcp --header "Authorization: Bearer $SUNFIELD_API_KEY"`
- **Full Agent Manual:** https://sunfield.dev/skill.md · **OpenAPI:** https://sunfield.dev/openapi.json
