Evaluate and adapt

DojoClip: Building an AI SaaS with Next.js

See DojoClip as a real AI media SaaS use case, then map authentication, Stripe billing, usage credits, private media, and background jobs to your own Next.js product.

DojoClip is an AI media SaaS built with Sushi SaaS. Its public product brings together video editing, image creation, music, and voice workflows. It illustrates why an AI application needs both a useful creative experience and an application foundation that can account for customers, payments, usage, and generated files.

This guide maps that product use case to the starter's documented contracts. It does not describe DojoClip's private deployment, business results, or every internal implementation. The product's media tools are its own extensions; cloning Sushi SaaS does not install the DojoClip editor or commercial generation providers.

What an AI product needs around the model

Product needWhat Sushi SaaS suppliesWhat your product must add
Sign-in and team ownershipBetter Auth, organizations, invitations, rolesYour onboarding and collaboration experience
Subscription and usage billingStripe lifecycle handling, entitlements, organization credit ledgerPrices, usage rules, provider-cost policy
Asynchronous generationPostgreSQL jobs, deduplication, retries, compensation patternsReal provider adapter, explicit production admission, progress UI
Private mediaS3-compatible uploads, checksums, scoped signed access, deletionValidated output formats and media/editor behavior
Operation after launchSeparate Admin, readiness, logs, backup/restore commandsMonitoring targets, support procedures, release ownership

These boundaries are useful because provider work can outlive a browser request, callbacks can repeat, and a failed generation may need its charge reversed. The surrounding system should be explainable even when the model provider is unavailable.

Start with one paid workflow

Run the five-credit image reference before adding a commercial provider. Follow one request through authorization, the deterministic credit spend, durable execution, a private stored result, and exactly-once compensation after terminal failure.

The shipped reference writes a mock SVG and is gated off in production at the page, API, and service. A real AI product must introduce reviewed production admission at those boundaries, adapt the output contract to its validated media types, and implement the provider adapter. Changing an API key or adapter alone does not enable the feature.

Preserve the credit ledger, private storage, and job contracts while adding product-specific media behavior. This is the path from a runnable example to a workflow you can recover after a crash.

Keep the product experience yours

A video timeline, music controls, image editing, generated-asset browsing, and voice selection are product features. Build those in the application layers around your customer workflow. Content Studio serves editorial pages and campaigns; it is a separate authoring app, not the customer media editor.

Use tracked customization for identity, languages and appearance, and environment configuration for provider accounts and shared deployment values. Keep provider credentials server-side and customer media private.

An adoption path

  1. Run the complete local stack and choose which capabilities fit your product.
  2. Configure product identity, Stripe Prices, email, and private storage.
  3. Trace the paid reference, then add one real workflow with replay and failure recovery.
  4. Validate the customer experience and operator recovery together.
  5. Complete deployment and security before exposing the real feature.

Visit DojoClip to see the public media product, and use the implementation guides here to build and operate your own application.

Sushi SaaS: b16b416. DojoClip: public product.