← Back to Home

API Reference

Integrate VideoWood AI generation directly into your workflows. API access is available on the Pro plan and above.

Authentication Required

All API endpoints require a valid Supabase session cookie (when called from your browser) or a Bearer token in the Authorization header for server-to-server calls.

Base URL

https://videowoodai.com
POST/api/generate/image Auth required

Generate an image from a text prompt using a specified AI model.

Request Body

{
  "prompt": "A cinematic sunset over a futuristic city",
  "modelId": "flux-pro",
  "size": "landscape_16_9"
}

Response

{
  "url": "https://cdn.fal.run/generated/image.jpg"
}
POST/api/generate/video Auth required

Generate a short video clip from a text prompt or image.

Request Body

{
  "prompt": "A drone shot of a neon city at night",
  "modelId": "kling-2.5-turbo",
  "duration": 5
}

Response

{
  "url": "https://cdn.fal.run/generated/video.mp4"
}
POST/api/stripe/checkout Auth required

Create a Stripe checkout session to subscribe or add credits.

Request Body

{
  "priceId": "price_xxxxx",
  "userId": "uuid",
  "email": "user@example.com"
}

Response

{
  "url": "https://checkout.stripe.com/c/pay/xxxxx"
}
More endpoints coming soon. Need early API access? Contact us.