Shopify App Developer Guide

Build AI Video Apps for Shopify Merchants

Complete integration guide for Shopify app developers. Add AI video generation to your app with webhooks, multi-model failover, and usage-based billing.

Why Build AI Video Apps for Shopify?

8+
AI video apps already on Shopify App Store
$49-299
Monthly pricing for existing AI video apps
6+
Video models via single CreativeAPI integration

Multi-Model Video Generation

6+ video models including Kling O3 Pro, Veo 3.1, and Seedance. Auto-failover ensures your app never goes down when a provider has issues.

Async Webhook Delivery

Video generation takes 30-300s. Our webhook system delivers results to your Shopify app when ready — no long-polling required.

99.5% Uptime SLA

Multi-model failover means your Shopify app stays online even when upstream providers have outages. Built for merchant reliability.

Usage-Based Pricing

Pay per generation. No monthly minimums. Perfect for Shopify apps scaling from 10 to 10,000 merchants.

Integration Examples

Text-to-Video Generation

typescript
// Generate product video from text
const response = await fetch('https://api.creativeai.run/v1/video/generations', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    model: 'kling-o3-pro',
    prompt: 'Elegant product showcase, slow rotation, studio lighting',
    aspect_ratio: '1:1',
    duration: 5,
    webhook_url: 'https://your-app.shopify.com/webhooks/video-complete'
  })
});

const { id } = await response.json();
// Webhook delivers result when video is ready

Shopify Webhook Handler

typescript
// Shopify app webhook handler
app.post('/webhooks/video-complete', async (req, res) => {
  const { id, status, output_url, error_message } = req.body;

  if (status === 'completed') {
    // Update Shopify product with video
    await shopifyClient.put({
      path: 'products/{product_id}/videos',
      data: {
        src: output_url,
        position: 1
      }
    });
  }

  res.status(200).send('OK');
});

Automatic Failover

typescript
// Automatic failover to backup models
const response = await fetch('https://api.creativeai.run/v1/video/generations', {
  method: 'POST',
  headers: { 'Authorization': 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json' },
  body: JSON.stringify({
    model: 'auto', // Let CreativeAI choose best available
    prompt: 'Product demo video',
    aspect_ratio: '9:16',
    duration: 8,
    webhook_url: 'https://your-app.shopify.com/webhooks/video'
  })
});

// Response includes which model was actually used
// {"model_actual": "veo-3.1-lite", "failover_used": true}

Usage-Based Billing

typescript
// Track usage per merchant for billing
app.post('/webhooks/video-complete', async (req, res) => {
  const { id, credits, model_actual } = req.body;

  // Log usage for Shopify merchant
  await db.usageLogs.create({
    shop_id: req.headers['x-shopify-shop-domain'],
    generation_id: id,
    credits_used: credits,
    model: model_actual,
    timestamp: new Date()
  });

  // Bill merchant via Shopify Billing API
  await shopify.billing.request({
    charge: {
      name: 'AI Video Generation',
      price: credits * 0.10, // $0.10 per credit
      quantity: 1
    }
  });
});

Pricing for Shopify App Developers

Starter

Merchants1-100
Generations/mo100-1,000/mo
Credits needed5-50/mo
CreativeAPI cost$10-50/mo

Growing

Merchants100-1,000
Generations/mo1,000-10,000/mo
Credits needed50-500/mo
CreativeAPI cost$50-250/mo

Scale

Merchants1,000+
Generations/mo10,000+/mo
Credits needed500+/mo
CreativeAPI costVolume pricing

* Pricing estimates based on average video generation costs. Actual costs vary by model and duration. View full pricing

Quick Start for Shopify Developers

1

Get API Key

Register and get 50 free credits with code SHOPIFYDEV

2

Integrate Webhooks

Use our async webhook delivery for video results

3

Ship to App Store

Add billing via Shopify Billing API and submit

Related Resources