{"openapi":"3.1.0","info":{"title":"Zhihuo SmartPacker T1 WebAPI","version":"1.0.0","description":"Public JSON API for single-carton container loading. The hosted endpoint uses the same depth-2 placed-layout path as the public MCP service, and labels heuristic fallbacks when inputs exceed the public exact-T1 numeric limits."},"servers":[{"url":"https://mcp.zhihuo.net"}],"paths":{"/api/t1/pack":{"post":{"summary":"Pack one carton type into a rectangular space","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"Provide carton, box, or flat box_* dimensions; provide container or space.","properties":{"container":{"type":"string","description":"Optional preset such as 20GP, 40HQ, 45HQ, 53HC, 40RF, or 40HQ-PW."},"space":{"type":"object","properties":{"length":{"type":"integer"},"width":{"type":"integer"},"height":{"type":"integer"}}},"carton":{"type":"object","properties":{"length":{"type":"integer"},"width":{"type":"integer"},"height":{"type":"integer"}}},"box":{"type":"string","description":"Optional carton shorthand such as 600x400x350."},"count":{"type":"integer","default":0},"to_front":{"type":"boolean","default":true},"to_left":{"type":"boolean","default":true},"to_bottom":{"type":"boolean","default":true},"include_image_url":{"type":"boolean","default":true}}},"examples":{"container":{"value":{"container":"40HQ","carton":{"length":600,"width":400,"height":350}}},"explicitSpace":{"value":{"space":{"length":12032,"width":2352,"height":2698},"carton":{"length":220,"width":150,"height":155}}}}}}},"responses":{"200":{"description":"Packing result"},"400":{"description":"Invalid input"},"429":{"description":"Rate limited"}}}},"/api/t1/openapi.json":{"get":{"summary":"OpenAPI contract for the T1 WebAPI"}}}}