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
Get Started → View Pricing ↓

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 *stringURL or text to encode (max 2000 chars)
formatpng | svgOutput format (default: png)
size100–2000Image size in px (default: 400)
darkColor#hexQR dark color (default: #000000)
lightColor#hexQR light color (default: #ffffff)
errorCorrectionL|M|Q|HError 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 *stringThe URL to shorten (max 2048 chars)
slugstringCustom slug — Pro+ only (3–20 chars)
maxClicksnumberAuto-expire after N clicks
expiresAtdatetimeISO 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 *stringMain heading (max 100 chars)
descriptionstringSubtitle text (max 200 chars)
siteNamestringYour brand name
themedark|light|gradientVisual theme (default: dark)
width400–1920Image width px (default: 1200)
height200–1080Image height px (default: 630)
Image Compress

Image Compressor

POST/v1/image/compressReturns compressed binary
Form Data
image *fileJPEG, PNG, or WebP image (max 10MB)
Query Parameters
formatjpeg|png|webpOutput format (default: jpeg)
quality1–100Compression quality (default: 80)
maxWidthnumberMax 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 *filePDF file (max 20MB)
Query Parameters
formatjpeg|pngOutput format (default: jpeg)
scale1.0–3.0Render scale / resolution (default: 2.0)
quality1–100JPEG 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 *stringmonthly | 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
Ready to build?

Start integrating today

Free plan available. No credit card required. Upgrade when you need more.

Visit CCSHOP ↗ View Plans →