Skip to main content
Vincony
12 Integration Examples

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.

Beginner
1-3 cr/msg
javascript
1const 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
22const data = await response.json();
23console.log(data.choices[0].message.content);
Endpoint: /chat

Blog & Content Generation

Generate SEO-optimized blog posts, social media captions, and marketing copy at scale with structured output and brand voice consistency.

Intermediate
2-4 cr/post
javascript
1const 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}".
19Target keyword: ${keyword}
20Tone: professional but approachable
21Include: introduction, 4 sections with H2 headings, conclusion, meta description`
22 }
23 ],
24 temperature: 0.7,
25 max_tokens: 4000,
26 }),
27});
28
29const article = (await response.json()).choices[0].message.content;
Endpoint: /chat

Product Image Generation

Generate product mockups, marketing visuals, and social media graphics on demand. Perfect for e-commerce stores and creative agencies.

Beginner
4 cr/image
javascript
1const 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
16const { image_url } = await response.json();
17console.log("Generated image:", image_url);
Endpoint: /generate-image

Video Ad Creation

Generate short video clips for ads, social media reels, and product demos. Automate video content production for marketing campaigns.

Intermediate
15 cr/video
javascript
1const 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
13const { video_url, status } = await response.json();
14// Poll for completion if status === "processing"
15console.log("Video:", video_url);
Endpoint: /generate-video

Voice Assistant / TTS

Convert text to natural-sounding speech for voice assistants, audiobook narration, accessibility features, and IVR systems.

Beginner
2 cr/request
javascript
1const 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
13const { audio_url } = await response.json();
14// Play audio or download
15const audio = new Audio(audio_url);
16audio.play();
Endpoint: /text-to-speech

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.

Intermediate
2 cr/request
javascript
1const 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
20const structured = await response.json();
21// { product_name: "Pro Earbuds X3", price: 79.99, ... }
Endpoint: /extract-data

AI-Powered Search

Add intelligent search to your app. Get AI-synthesized answers with source citations instead of just keyword matches.

Beginner
3 cr/query
javascript
1const 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
12const { answer, sources } = await response.json();
13console.log("Answer:", answer);
14console.log("Sources:", sources.map(s => s.url));
Endpoint: /ai-search

E-Commerce Product Descriptions

Auto-generate compelling product descriptions, bullet points, and A+ content for marketplaces like Amazon, Shopify, and Etsy.

Beginner
2 cr/product
javascript
1const 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:
12Product: ${productName}
13Features: ${features.join(", ")}
14Target audience: ${audience}
15
16Return JSON with: title, bullet_points (5), description, search_terms`
17 }],
18 temperature: 0.6,
19 }),
20});
21
22const listing = (await response.json()).choices[0].message.content;
Endpoint: /chat

Personalized Email Campaigns

Generate personalized cold outreach, drip sequences, and newsletter content tailored to each recipient's profile and behavior.

Intermediate
1-2 cr/email
javascript
1// Batch personalize emails for a list of prospects
2const 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.
15Recipient: ${prospect.name}, ${prospect.title} at ${prospect.company}
16Our product: ${productDescription}
17Tone: professional, concise, no more than 150 words
18Include 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);
Endpoint: /chat

Analytics Report Summarizer

Feed raw analytics data to AI and get executive summaries, trend analysis, and actionable recommendations in natural language.

Advanced
3-4 cr/report
javascript
1const analyticsData = await getWeeklyMetrics(); // your data source
2
3const 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
28const summary = (await response.json()).choices[0].message.content;
29// Send via Slack, email, or dashboard widget
Endpoint: /chat

Automated Code Review

Integrate AI code review into your CI/CD pipeline. Catch bugs, suggest improvements, and enforce coding standards on every PR.

Advanced
3 cr/review
javascript
1// In your CI pipeline or GitHub Action
2const diff = await getGitDiff(); // git diff output
3
4const 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
29const review = (await response.json()).choices[0].message.content;
30await postGitHubComment(prNumber, review);
Endpoint: /chat

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.

Advanced
2-3 cr/query
javascript
1// Step 1: Search your vector DB for relevant chunks
2const relevantDocs = await vectorSearch(userQuestion, { topK: 5 });
3
4// Step 2: Send to AI with context
5const 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
31const answer = (await response.json()).choices[0].message.content;
Endpoint: /chat

Ready to build?

Get your API key and start integrating in minutes. All examples work with our REST API and OpenAI-compatible endpoint.

Vincony — Access the World's Best AI Models