The content API
for modern teams.
Generate social posts for LinkedIn, X, Threads and Instagram, plus TikTok scripts, from a single endpoint. Provide a goal, a topic and optional factual evidence.
Free during public beta · no credit card required · request limits apply
// Using the native fetch API — no SDK install required.const res = await fetch("https://wjjdnwgkbydxqegfcvty.supabase.co/functions/v1/generate", { method: "POST", headers: { Authorization: `Bearer ${process.env.MARQAL_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ platform: "linkedin", goal: "Build awareness", topic: "Launching v2 of our content API.", variants: 3, }),});const { variations } = await res.json();Interactive sample preview
Try it. No account needed.
Pick a platform and enter a topic to explore three example templates. This preview inserts your topic into sample text; it does not call the AI API.
Illustrative examples, including any stories or claims. Sign up to use the generation API.
Your examples will appear here. Pick a platform and click Preview examples.
Developer-first content infrastructure
Use the API directly with your preferred HTTP client.
Platform
An API designed for developer teams.
Send a platform, goal and topic. Receive content variations as JSON.
Create text for LinkedIn, X, Threads, Instagram and TikTok.
Authenticate server-side requests with an account-wide key managed in your dashboard.
Supply optional evidence for generation. Review the output before publishing.
Capabilities
Social content, through one API.
Social posts
Generate posts for LinkedIn, X, Threads and Instagram.
TikTok scripts
Generate text scripts for short spoken TikTok videos.
Content variations
Request one to five variations to review and compare.
Structured output
Read each variation's ID, tone and content from the JSON response.
Start building with MARQAL.
Free during public beta. No credit card required.
