{"openapi":"3.0.0","info":{"version":"1.0.0","title":"LaTeX API","description":"API for rendering LaTeX strings to SVG images. Use this API to convert LaTeX mathematical notation into scalable vector graphics suitable for web display.","contact":{"name":"Stefan Kühnel","url":"https://stefankuehnel.com"},"license":{"name":"GPL-3.0","url":"https://opensource.org/license/gpl-3.0"}},"servers":[{"url":"/","description":"LaTeX API Server"}],"components":{"schemas":{"RFC7807ProblemJSON":{"type":"object","properties":{"type":{"type":"string","description":"A URI reference that identifies the problem type"},"title":{"type":"string","description":"A short, human-readable summary of the problem type"},"status":{"anyOf":[{"type":"number","enum":[100]},{"type":"number","enum":[511]},{"type":"number","enum":[102]},{"type":"number","enum":[103]},{"type":"number","enum":[200]},{"type":"number","enum":[201]},{"type":"number","enum":[202]},{"type":"number","enum":[203]},{"type":"number","enum":[206]},{"type":"number","enum":[207]},{"type":"number","enum":[208]},{"type":"number","enum":[226]},{"type":"number","enum":[300]},{"type":"number","enum":[301]},{"type":"number","enum":[302]},{"type":"number","enum":[303]},{"type":"number","enum":[305]},{"type":"number","enum":[306]},{"type":"number","enum":[307]},{"type":"number","enum":[308]},{"type":"number","enum":[400]},{"type":"number","enum":[401]},{"type":"number","enum":[402]},{"type":"number","enum":[403]},{"type":"number","enum":[404]},{"type":"number","enum":[405]},{"type":"number","enum":[406]},{"type":"number","enum":[407]},{"type":"number","enum":[408]},{"type":"number","enum":[409]},{"type":"number","enum":[410]},{"type":"number","enum":[411]},{"type":"number","enum":[412]},{"type":"number","enum":[413]},{"type":"number","enum":[414]},{"type":"number","enum":[415]},{"type":"number","enum":[416]},{"type":"number","enum":[417]},{"type":"number","enum":[418]},{"type":"number","enum":[421]},{"type":"number","enum":[422]},{"type":"number","enum":[423]},{"type":"number","enum":[424]},{"type":"number","enum":[425]},{"type":"number","enum":[426]},{"type":"number","enum":[428]},{"type":"number","enum":[429]},{"type":"number","enum":[431]},{"type":"number","enum":[451]},{"type":"number","enum":[500]},{"type":"number","enum":[501]},{"type":"number","enum":[502]},{"type":"number","enum":[503]},{"type":"number","enum":[504]},{"type":"number","enum":[505]},{"type":"number","enum":[506]},{"type":"number","enum":[507]},{"type":"number","enum":[508]},{"type":"number","enum":[510]},{"type":"number","enum":[-1]}],"description":"The HTTP status code"},"detail":{"type":"string","description":"A human-readable explanation specific to this occurrence of the problem"},"instance":{"type":"string","description":"A URI reference that identifies the specific occurrence of the problem"}},"required":["type","title","status","detail"]}},"parameters":{}},"paths":{"/api/v1/render":{"get":{"parameters":[{"schema":{"type":"string","minLength":1,"description":"The LaTeX string to render","example":"\\sum_{i=1}^{n} i"},"required":true,"description":"The LaTeX string to render","name":"tex","in":"query"},{"schema":{"type":"string","enum":["inline","display"],"default":"display","description":"Rendering mode: `inline` for inline math (smaller), `display` for centered, larger math (default)","example":"display"},"required":false,"description":"Rendering mode: `inline` for inline math (smaller), `display` for centered, larger math (default)","name":"displayMode","in":"query"}],"responses":{"200":{"description":"SVG image","content":{"image/svg+xml":{"schema":{"type":"string","description":"SVG image","example":"<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"100\" height=\"50\">...</svg>"}}}},"400":{"description":"Bad request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/RFC7807ProblemJSON"}}}},"413":{"description":"Payload too large","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/RFC7807ProblemJSON"}}}},"500":{"description":"Internal server error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/RFC7807ProblemJSON"}}}}}}}}}