API Use Cases
Production-ready code snippets for real-world integrations. Copy, paste, ship.
Showing 12 of 12 use cases
Customer Support Chatbot
Build an AI-powered support agent that answers customer questions using your knowledge base, handles FAQs, and escalates complex issues.
1 const response = await fetch("https://api.vincony.com/v1/chat", { 2 method: "POST", 3 headers: { 4 "Authorization": "Bearer YOUR_API_KEY", 5 "Content-Type": "application/json", 6 }, 7 body: JSON.stringify({ 8 model: "openai/gpt-5-mini", 9 messages: [ 10 { 11 role: "system", 12 content: "You are a helpful support agent for Acme Corp. " + 13 "Answer questions about our products, pricing, and policies. " + 14 "If you can't help, offer to connect the user to a human agent." 15 }, 16 { role: "user", content: customerMessage } 17 ], 18 temperature: 0.3, 19 }), 20 }); 21
22 const data = await response.json(); 23 console.log(data.choices[0].message.content);
Blog & Content Generation
Generate SEO-optimized blog posts, social media captions, and marketing copy at scale with structured output and brand voice consistency.
1 const response = await fetch("https://api.vincony.com/v1/chat", { 2 method: "POST", 3 headers: { 4 "Authorization": "Bearer YOUR_API_KEY", 5 "Content-Type": "application/json", 6 }, 7 body: JSON.stringify({ 8 model: "openai/gpt-5", 9 messages: [ 10 { 11 role: "system", 12 content: "You are an expert content writer. Write SEO-optimized " + 13 "blog posts with proper heading structure (H2, H3), meta " + 14 "descriptions, and natural keyword placement." 15 }, 16 { 17 role: "user", 18 content: `Write a 1500-word blog post about "${topic}". 19 Target keyword: ${keyword} 20 Tone: professional but approachable 21 Include: introduction, 4 sections with H2 headings, conclusion, meta description` 22 } 23 ], 24 temperature: 0.7, 25 max_tokens: 4000, 26 }), 27 }); 28
29 const article = (await response.json()).choices[0].message.content;
Product Image Generation
Generate product mockups, marketing visuals, and social media graphics on demand. Perfect for e-commerce stores and creative agencies.
1 const response = await fetch("https://api.vincony.com/v1/generate-image", { 2 method: "POST", 3 headers: { 4 "Authorization": "Bearer YOUR_API_KEY", 5 "Content-Type": "application/json", 6 }, 7 body: JSON.stringify({ 8 prompt: "A sleek wireless headphone on a marble surface, " + 9 "soft studio lighting, product photography, 4K, minimalist", 10 width: 1024, 11 height: 1024, 12 model: "flux-pro", 13 }), 14 }); 15
16 const { image_url } = await response.json(); 17 console.log("Generated image:", image_url);
Video Ad Creation
Generate short video clips for ads, social media reels, and product demos. Automate video content production for marketing campaigns.
1 const response = await fetch("https://api.vincony.com/v1/generate-video", { 2 method: "POST", 3 headers: { 4 "Authorization": "Bearer YOUR_API_KEY", 5 "Content-Type": "application/json", 6 }, 7 body: JSON.stringify({ 8 prompt: "A smooth camera orbit around a luxury watch on a " + 9 "dark velvet surface, cinematic lighting, 5 seconds", 10 }), 11 }); 12
13 const { video_url, status } = await response.json(); 14 // Poll for completion if status === "processing" 15 console.log("Video:", video_url);
Voice Assistant / TTS
Convert text to natural-sounding speech for voice assistants, audiobook narration, accessibility features, and IVR systems.
1 const response = await fetch("https://api.vincony.com/v1/text-to-speech", { 2 method: "POST", 3 headers: { 4 "Authorization": "Bearer YOUR_API_KEY", 5 "Content-Type": "application/json", 6 }, 7 body: JSON.stringify({ 8 text: "Welcome back! You have 3 new notifications today.", 9 voice: "nova", // alloy, echo, fable, onyx, nova, shimmer 10 }), 11 }); 12
13 const { audio_url } = await response.json(); 14 // Play audio or download 15 const audio = new Audio(audio_url); 16 audio.play();
Structured Data Extraction
Extract structured data from any webpage — product details, pricing, contact info, reviews. Feed it a URL and a JSON schema, get clean data back.
1 const response = await fetch("https://api.vincony.com/v1/extract-data", { 2 method: "POST", 3 headers: { 4 "Authorization": "Bearer YOUR_API_KEY", 5 "Content-Type": "application/json", 6 }, 7 body: JSON.stringify({ 8 url: "https://example.com/product/wireless-earbuds", 9 schema: { 10 product_name: "string", 11 price: "number", 12 currency: "string", 13 rating: "number", 14 features: "string[]", 15 in_stock: "boolean", 16 }, 17 }), 18 }); 19
20 const structured = await response.json(); 21 // { product_name: "Pro Earbuds X3", price: 79.99, ... }
AI-Powered Search
Add intelligent search to your app. Get AI-synthesized answers with source citations instead of just keyword matches.
1 const response = await fetch("https://api.vincony.com/v1/ai-search", { 2 method: "POST", 3 headers: { 4 "Authorization": "Bearer YOUR_API_KEY", 5 "Content-Type": "application/json", 6 }, 7 body: JSON.stringify({ 8 query: "Best practices for React Server Components in 2026", 9 }), 10 }); 11
12 const { answer, sources } = await response.json(); 13 console.log("Answer:", answer); 14 console.log("Sources:", sources.map(s => s.url));
E-Commerce Product Descriptions
Auto-generate compelling product descriptions, bullet points, and A+ content for marketplaces like Amazon, Shopify, and Etsy.
1 const response = await fetch("https://api.vincony.com/v1/chat", { 2 method: "POST", 3 headers: { 4 "Authorization": "Bearer YOUR_API_KEY", 5 "Content-Type": "application/json", 6 }, 7 body: JSON.stringify({ 8 model: "openai/gpt-5-mini", 9 messages: [{ 10 role: "user", 11 content: `Generate an Amazon product listing for: 12 Product: ${productName} 13 Features: ${features.join(", ")} 14 Target audience: ${audience} 15
16 Return JSON with: title, bullet_points (5), description, search_terms` 17 }], 18 temperature: 0.6, 19 }), 20 }); 21
22 const listing = (await response.json()).choices[0].message.content;
Personalized Email Campaigns
Generate personalized cold outreach, drip sequences, and newsletter content tailored to each recipient's profile and behavior.
1 // Batch personalize emails for a list of prospects 2 const emails = await Promise.all( 3 prospects.map(async (prospect) => { 4 const response = await fetch("https://api.vincony.com/v1/chat", { 5 method: "POST", 6 headers: { 7 "Authorization": "Bearer YOUR_API_KEY", 8 "Content-Type": "application/json", 9 }, 10 body: JSON.stringify({ 11 model: "openai/gpt-5-mini", 12 messages: [{ 13 role: "user", 14 content: `Write a personalized sales email. 15 Recipient: ${prospect.name}, ${prospect.title} at ${prospect.company} 16 Our product: ${productDescription} 17 Tone: professional, concise, no more than 150 words 18 Include a specific pain point relevant to their industry: ${prospect.industry}` 19 }], 20 temperature: 0.8, 21 }), 22 }); 23 return { 24 to: prospect.email, 25 body: (await response.json()).choices[0].message.content, 26 }; 27 }) 28 );
Analytics Report Summarizer
Feed raw analytics data to AI and get executive summaries, trend analysis, and actionable recommendations in natural language.
1 const analyticsData = await getWeeklyMetrics(); // your data source 2
3 const response = await fetch("https://api.vincony.com/v1/chat", { 4 method: "POST", 5 headers: { 6 "Authorization": "Bearer YOUR_API_KEY", 7 "Content-Type": "application/json", 8 }, 9 body: JSON.stringify({ 10 model: "openai/gpt-5", 11 messages: [ 12 { 13 role: "system", 14 content: "You are a senior data analyst. Summarize metrics " + 15 "into an executive brief with: key highlights, trends, " + 16 "anomalies, and 3 actionable recommendations." 17 }, 18 { 19 role: "user", 20 content: `Weekly metrics (JSON):\n${JSON.stringify(analyticsData, null, 2)} 21 \nPrevious week for comparison:\n${JSON.stringify(prevWeek, null, 2)}` 22 } 23 ], 24 temperature: 0.4, 25 }), 26 }); 27
28 const summary = (await response.json()).choices[0].message.content; 29 // Send via Slack, email, or dashboard widget
Automated Code Review
Integrate AI code review into your CI/CD pipeline. Catch bugs, suggest improvements, and enforce coding standards on every PR.
1 // In your CI pipeline or GitHub Action 2 const diff = await getGitDiff(); // git diff output 3
4 const response = await fetch("https://api.vincony.com/v1/chat", { 5 method: "POST", 6 headers: { 7 "Authorization": "Bearer YOUR_API_KEY", 8 "Content-Type": "application/json", 9 }, 10 body: JSON.stringify({ 11 model: "openai/gpt-5", 12 messages: [ 13 { 14 role: "system", 15 content: "You are a senior code reviewer. Analyze the diff " + 16 "and provide: 1) Critical issues (bugs, security) " + 17 "2) Suggestions (performance, readability) " + 18 "3) Positive observations. Be specific with line references." 19 }, 20 { 21 role: "user", 22 content: `Review this PR diff:\n\`\`\`diff\n${diff}\n\`\`\`` 23 } 24 ], 25 temperature: 0.2, 26 }), 27 }); 28
29 const review = (await response.json()).choices[0].message.content; 30 await postGitHubComment(prNumber, review);
Knowledge Base Q&A
Build a RAG-powered Q&A system over your documentation. Users ask questions in natural language and get accurate answers with source references.
1 // Step 1: Search your vector DB for relevant chunks 2 const relevantDocs = await vectorSearch(userQuestion, { topK: 5 }); 3
4 // Step 2: Send to AI with context 5 const response = await fetch("https://api.vincony.com/v1/chat", { 6 method: "POST", 7 headers: { 8 "Authorization": "Bearer YOUR_API_KEY", 9 "Content-Type": "application/json", 10 }, 11 body: JSON.stringify({ 12 model: "google/gemini-2.5-flash", 13 messages: [ 14 { 15 role: "system", 16 content: "Answer questions using ONLY the provided context. " + 17 "Cite sources with [1], [2], etc. If the answer isn't in " + 18 "the context, say so honestly." 19 }, 20 { 21 role: "user", 22 content: `Context:\n${relevantDocs.map((d, i) => 23 `[${i+1}] ${d.content}`).join("\n\n")} 24 \n\nQuestion: ${userQuestion}` 25 } 26 ], 27 temperature: 0.2, 28 }), 29 }); 30
31 const answer = (await response.json()).choices[0].message.content;
Ready to build?
Get your API key and start integrating in minutes. All examples work with our REST API and OpenAI-compatible endpoint.