API Documentation

POST /api/svg2png
Convert SVG to PNG for AI vision models. Enables diagram/chart processing by converting scalable vector graphics into raster images that vision models can analyze
Request Body

Option 1: Raw SVG body

Send the SVG as the request body with Content-Type: image/svg+xml or text/plain. Max 256KB.

Option 2: JSON with base64

{ "svgBase64": "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==" }
Query Parameters
Name Type Description
width integer Output width in pixels. Max 2048. Default: 1024
height integer Output height in pixels. Max 2048
scale number Scale factor. Max 2
zoom number Alias for scale. Max 2
Response (200 OK)

Returns PNG image with Content-Type: image/png

Example Request
POST /api/svg2png?width=1024 Content-Type: application/json { "svgBase64": "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==", "width": 512 }
GET /api/readability
Extract article content for AI processing. Removes clutter and noise from web pages to provide clean, structured text perfect for NLP models, summarization, and content analysis
Query Parameters
Name Type Required Description
url string required URL to fetch and extract article content from. Protocol optional (https:// is added if missing)
Response (200 OK)
{ "title": "Article Title", "content": "Extracted readable content...", "textContent": "Plain text version...", "excerpt": "Brief summary...", "byline": "Author Name", "length": 1234, "siteName": "example.com" }
Example Request
GET /api/readability?url=https://example.com
POST /api/json2excel
Convert JSON to Excel for structured data export. Transforms AI model outputs into formatted spreadsheets for reporting, further analysis, and integration with business tools
Request Body

Option 1: With metadata

{ "data": [ { "name": "John", "age": 30, "city": "New York" }, { "name": "Jane", "age": 25, "city": "London" } ], "filename": "export.xlsx", "sheetName": "Sheet1" }

Option 2: Direct array

[ { "name": "John", "age": 30 }, { "name": "Jane", "age": 25 } ]
Field Type Required Description
data object/array required Object or array of objects to convert. Max 10,000 rows, 100 columns
filename string optional Output filename. Default: "export.xlsx"
sheetName string optional Sheet name in Excel. Default: "Sheet1"
Limits
  • Max request size: 512KB
  • Max rows: 10,000
  • Max columns: 100
  • Nested objects are converted to JSON strings
Response (200 OK)

Returns Excel file with Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

File is automatically downloaded with the specified filename

Example Request
POST /api/json2excel Content-Type: application/json { "data": [ { "product": "Laptop", "price": 999, "stock": 15 }, { "product": "Mouse", "price": 25, "stock": 100 } ], "filename": "inventory.xlsx", "sheetName": "Products" }