Agent-readable docs index: /docs/llms.txt. Full docs in one file: /docs/llms-full.txt. Download /docs/docs.zip to grep all markdown files locally.

AI & OpenGraph Tools API

Shaf integrates native AI inference powered by Cloudflare Workers AI to automate link naming and social card previews.

1. AI Slug Recommendation

POST /api/v1/tools/ai-slug
Analyzes target URL path and page content to propose short, human-readable, brand-appropriate slugs.

Request Payload:

{ "url": "https://stripe.com/docs/billing/subscriptions/overview" }

Response Example:

{ "code": 0, "data": { "slug": "stripe-billing-overview" } }

2. OpenGraph Card Preview Assistant

POST /api/v1/tools/ai-og
Scrapes the target destination page and generates optimized title and description tags for social previews (Twitter/X, Facebook, LinkedIn, Slack).

Request Payload:

{ "url": "https://example.com/new-product" }

Response Example:

{ "code": 0, "data": { "title": "Introducing Next-Gen Edge Infrastructure", "description": "Deploy worldwide in milliseconds with zero cold starts and instant scalability." } }