Sync AISync AI
API Reference — v1

Sync AI API Docs

Integrate Sync AI into your platform. Analyze URLs, detect the optimal tech stack, and generate production-ready applications — all via API.

Stack Intelligence

Automatically detect best-fit tech for any product category

Code Generation

Stream production HTML/Tailwind apps from a single API call

Multi-model routing

Routes tasks across Claude, GPT-4o, and domain-specific models

Authentication

All API requests require a Bearer token. Pass your API key in the Authorization header.

HTTP Header
Authorization: Bearer sk-sync-YOUR_KEY

Get your API key from the Settings → API tab.

Quickstart

Three API calls to go from URL to deployed app.

TypeScript
import SyncAI from "@syncai/sdk"

const sync = new SyncAI({ apiKey: process.env.SYNC_API_KEY })

// 1. Analyze
const analysis = await sync.analyze({ url: "https://stripe.com" })
// → { category: "fintech", stack: ["Next.js", "Postgres", "Stripe"] }

// 2. Build
const build = await sync.build({
  category: analysis.category,
  stack: analysis.stack,
  requirements: "Clone the core payment dashboard"
})

// 3. Deploy
console.log(build.previewUrl) // https://preview.sync.ai/...

Endpoints

POST/api/analyze

Analyze any URL or product description. Returns detected category, recommended tech stack, and confidence score.

Request body

{
  "url": "https://example.com",   // OR
  "description": "A SaaS for..."  // plain text
}

Response

{
  "category": "saas",
  "stack": ["Next.js", "Supabase", "Stripe"],
  "confidence": 0.94,
  "deployTime": "~3 minutes",
  "insights": { ... }
}
POST/api/build

Generate a production-ready application from a stack specification. Streams HTML/Tailwind output in real time.

Request body

{
  "category": "saas",
  "stack": ["Next.js", "Supabase"],
  "requirements": "Build a SaaS dashboard with auth"
}

Response

// Streamed response
data: {"type":"chunk","content":"<!DOCTYPE html>..."}
data: {"type":"done","totalTokens":4200}
POST/api/iterate

Continue refining an existing build with plain language instructions. Preserves full build context.

Request body

{
  "buildId": "bld_abc123",
  "instruction": "Add a dark mode toggle and improve mobile layout"
}

Response

{
  "buildId": "bld_abc123",
  "changes": ["dark-mode-toggle", "responsive-nav"],
  "preview": "https://preview.sync.ai/bld_abc123"
}

Rate Limits

Starter60 req/min100/mo
Pro300 req/min500/mo
EnterpriseUnlimitedCustom

Ready to integrate?

Book a 1:1 demo to see the API in action and get your API key.