Unlock the Power of AI Content Creation with Pi’s API & iFrame Integration

Blog/2025-08-31/by Presentation Intelligence

🚀 Seamlessly Integrate AI-Generated Content into Your Platform

At Pi (Presentation Intelligence), we’re revolutionizing how businesses create and share professional-grade content. Now, with our API and iFrame services, you can effortlessly embed Pi’s AI-powered content generation, design automation, and smart formatting into your own applications, websites, or workflows.

Kantar's platform now delivers Pi's AI-generated presentations as a native feature for Fortune 500 clients

Why Choose Pi’s API & iFrame Solutions?

Instant AI Content Generation – Generate polished presentations, reports, and marketing materials with just a single API call.

Smart Design Automation – Auto-apply layouts, themes, and visuals for a consistent, branded look.

Plug-in Your Agentic Environment – Plug-in powerful Pi presentation tool with your RAG, Custom Databases databases, finetuned models, and other workflows.

Real-Time Collaboration – Enable users to edit, refine, and export content without leaving your platform.

Scalable & Secure – Built for enterprise-grade performance with robust security and compliance.

How It Works

1. API Integration

Easily connect Pi’s AI engine to your system and automate content creation.

🔹 Use Cases:

  • Auto-generate investor decks from financial data
  • Turn blog posts into visually engaging posters
  • Create on-brand marketing materials in seconds
url = "https://co-pi.deepvinci.tech/api/v1/integration"
timestamp = int(time.time())
data = dict(
    uid="user_uid_001",
    cards=5,
    notes=True,
    resource_id=timestamp,
    language="zh",
    hook_url="http://example.com/hook",
    content="Quarterly sales report Q1 2025?",
    search=None,
    text_mode="preserve",
    text_amount="detailed",
    layout_density="loose",
    outline_type="aippt",
    attachment_id=None,
    outline=None
)
sign: str = sign_func("your_app_secret", timestamp, **data)
resp = requests.post(
    f"{url}/outline/generation",
    json=dict(app_id="your_app_id", sign=sign, timestamp=timestamp, **data),
)
print(resp.status_code, resp.json())


2. iFrame Embedding

Embed Pi’s full editor directly into your app—no complex development needed!
🔹
Use Cases:

  • Add AI-powered slide creation to your SaaS platform
  • Let users edit presentations without switching tools
  • Offer branded content creation within your ecosystem
<iframe id="pi-integration" src="https://co-pi.deepvinci.tech/integration" scrolling="no"></iframe>
<script>
  const originURL = 'https://co-pi.deepvinci.tech'
  const iframe = document.getElementById('pi-integration');
  const config = {
    "action": "init",
    "page": {
      "name": "doc", // generation: Generation page; doc: Documentation page; outline: Documentation outline page; generation_with_outline: generate outline page
      "doc_id": "278523624915815", // Required when name == "doc"
      "outline_id": "278523624915815", // Required when name == "outline"
      "language": "zh | en", // website language
      "preview": true // doc preview mode
    },
    "generation": {
      "language": 'cn', // document default languages
      "card_size": "landscape"
    }, 
    "authentication": {
      "token": "xxx"
    },
  };
  // Listen for the ready signal from the PI page
  window.addEventListener('message', (event) => {
    if (event.origin === originURL && event.data) {
      console.log(event.data)
      if (event.data.action === 'ready') {
        // Send configuration data and initiate page rendering
        iframe.contentWindow.postMessage(config, originURL);
      }
      ...
    }
  });
</script>


Who Can Benefit?

📌 SaaS Platforms – Enhance your product with AI content generation.

📌 Enterprise Teams – Streamline internal reporting & presentations.

📌 Developers – Build custom AI-powered content solutions.

📌 Agents – Connect multi-agents and provide total Agentic solutions.

Get Started Today!

Ready to transform your content workflow? Contact our tech team at support@pi.inc.

#AIContent #APIIntegration #EmbeddableAI #PiAI #SaaSInnovation