API Reference
API Platform
QR Code · URL Shortener · OG Image — integrate any feature in minutes with a simple REST API.
Base URL
https://api.cil101101.com
Required Headers
Authorization: Bearer sk_live_your_api_key Content-Type: application/json
Rate Limits
PlanReq / MinMonthly
Free60500
Pro30050,000
Business1,000500,000
Response headers: X-RateLimit-Limit · X-RateLimit-Remaining · X-RateLimit-Reset
QR Code
Generate QR Code
POST/v1/qr/generateReturns PNG or SVG binary
Body Parameters
| data * | string | URL or text to encode (max 2000 chars) |
| format | png | svg | Output format (default: png) |
| size | 100–2000 | Image size in px (default: 400) |
| darkColor | #hex | QR dark color (default: #000000) |
| lightColor | #hex | QR light color (default: #ffffff) |
| errorCorrection | L|M|Q|H | Error correction level (default: M) |
Example — Base64 endpointPOST /v1/qr/generate/base64
curl -X POST .../v1/qr/generate/base64 \
-H "Authorization: Bearer sk_live_xxx" \
-H "Content-Type: application/json" \
-d '{"data":"https://api.cil101101.com","size":400,"darkColor":"#7C3AED"}'
// Response
{
"contentType": "image/png",
"base64": "iVBORw0KGgo...",
"dataUri": "data:image/png;base64,iVBORw0KGgo...",
"size": 3421
}
URL Shortener
URL Shortener
POST/v1/urlCreate short URL
Body Parameters
| url * | string | The URL to shorten (max 2048 chars) |
| slug | string | Custom slug — Pro+ only (3–20 chars) |
| maxClicks | number | Auto-expire after N clicks |
| expiresAt | datetime | ISO 8601 expiry date |
GET/v1/url
List all URLs. Query: ?page=1&limit=20
GET/v1/url/:slug/stats
Click analytics — country, device, browser breakdown. Last 30 days.
OG Image · Pro+
OG Image Generator
POST/v1/og/generate/base64Pro+
Body Parameters
| title * | string | Main heading (max 100 chars) |
| description | string | Subtitle text (max 200 chars) |
| siteName | string | Your brand name |
| theme | dark|light|gradient | Visual theme (default: dark) |
| width | 400–1920 | Image width px (default: 1200) |
| height | 200–1080 | Image height px (default: 630) |
Image Compress
Image Compressor
POST/v1/image/compressReturns compressed binary
Form Data
| image * | file | JPEG, PNG, or WebP image (max 10MB) |
Query Parameters
| format | jpeg|png|webp | Output format (default: jpeg) |
| quality | 1–100 | Compression quality (default: 80) |
| maxWidth | number | Max output width in px (optional) |
Base64 endpointPOST /v1/image/compress/base64
curl -X POST ".../v1/image/compress/base64?quality=80&format=webp" \
-H "Authorization: Bearer sk_live_xxx" \
-F "image=@photo.jpg"
// Response
{
"contentType": "image/webp",
"base64": "UklGRg...",
"dataUri": "data:image/webp;base64,UklGRg...",
"originalSize": 204800,
"compressedSize": 51200,
"savingsPercent": 75.0
}
PDF to Images
PDF Converter
POST/v1/pdf/imagesReturns array of page images
Form Data
| pdf * | file | PDF file (max 20MB) |
Query Parameters
| format | jpeg|png | Output format (default: jpeg) |
| scale | 1.0–3.0 | Render scale / resolution (default: 2.0) |
| quality | 1–100 | JPEG quality (default: 85) |
Free: first 3 pages · Pro: up to 20 pages
Example response
{
"totalPages": 10,
"converted": 3,
"limited": true,
"maxPages": 3,
"pages": [
{
"page": 1,
"contentType": "image/jpeg",
"base64": "...",
"dataUri": "data:image/jpeg;base64,...",
"width": 1700,
"height": 2200
}
]
}
Billing
Pricing
Monthly
$8
per month
Quarterly
$20
every 3 months · save 17%
BEST VALUE
Semi-Annual
$35
every 6 months · save 27%
Annual
$60
per year · save 38%
POST/v1/billing/checkoutGet Stripe checkout URL
Body Parameters
| interval * | string | monthly | quarterly | semiannual | annual |
GET/v1/billing/statusCurrent subscription info
Error Codes
StatusCodeMeaning
200okSuccess
400validation_errorInvalid request body
401unauthorizedInvalid or missing API key
403plan_requiredFeature requires higher plan
429rate_limit_exceededToo many requests — slow down
500internal_errorServer error — contact support