{"name":"Prime Terrain SVG Generator","version":"1.0.0","description":"Generates vector fractal art from prime neighborhood second differences and ratios","modes":{"tree":"Recursive branching tree - d2 drives angles, ratios drive lengths","spiral":"Multi-arm spiral - d2 modulates angle, ratios modulate radius","mandala":"Symmetric circular pattern - d2 drives symmetry and petal size","walk":"Turtle graphics walk - d2 is turn angle, ratio is step length","burst":"Radial ray burst - d2 drives ray length, ratios drive decorations","wave":"Wave interference pattern - d2/ratios define wave sources"},"parameters":{"n":{"type":"bigint","required":true,"description":"Prime index or value"},"n_type":{"type":"string","default":"index","options":["index","value"]},"k":{"type":"integer","default":20,"min":5,"max":500,"description":"Neighborhood size (primes each side; total = 2k+1)"},"mode":{"type":"string","default":"mandala","options":["tree","spiral","mandala","walk","burst","wave"]},"width":{"type":"integer","default":800,"description":"SVG width"},"height":{"type":"integer","default":800,"description":"SVG height"},"color":{"type":"string","default":"prime","options":["prime","fire","ice","mono","rainbow"]},"stroke":{"type":"number","default":1.5,"description":"Base stroke width"},"background":{"type":"string","default":"#0a0e14","description":"Background color"}},"examples":["/api/v1/svg?n=1000&mode=mandala","/api/v1/svg?n=500&mode=tree&color=fire","/api/v1/svg?n=10000&mode=spiral&color=rainbow","/api/v1/svg?n=100&mode=burst&color=ice"]}