<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[find-image-prompt]]></title><description><![CDATA[find-image-prompt]]></description><link>https://find-image-prompt.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Sat, 28 Nov 2026 01:13:25 GMT</lastBuildDate><atom:link href="https://find-image-prompt.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Building a Safe Client for an Asynchronous AI Dance Video API]]></title><description><![CDATA[A practical guide to asynchronous video jobs, retries, API keys, cost visibility and review using Danceo as an example.]]></description><link>https://find-image-prompt.hashnode.dev/building-a-safe-client-for-an-asynchronous-ai-dance-video-api</link><guid isPermaLink="true">https://find-image-prompt.hashnode.dev/building-a-safe-client-for-an-asynchronous-ai-dance-video-api</guid><category><![CDATA[api]]></category><dc:creator><![CDATA[Jason Wei]]></dc:creator><pubDate>Thu, 26 Nov 2026 03:36:18 GMT</pubDate><content:encoded><![CDATA[<p>A video-generation API is not just a single request followed by a file download. A useful client has to distinguish a request that failed from a request whose response was lost, show the potential cost, and give users a way to return to a job later.</p>
<p>I work on Danceo, an AI dance-video product. This post uses its documented HTTP API as a concrete example and separates current interface details from client-design suggestions. It was prepared with AI assistance.</p>
<h2>Start with the input contract</h2>
<p>Fetch <code>GET /api/v1/templates</code> and choose a template ID from the response. The public API uses listed templates; do not assume that it accepts an arbitrary reference-video URL just because a website offers reference-driven workflows. Fetch <code>GET /api/v1/credits</code> to inspect the account balance.</p>
<p>The portrait URL must be accessible to the service and the user must have the rights to use the image. Danceo prohibits real minors' likenesses. Check the applicable terms and ensure that any music and other media have appropriate permissions too.</p>
<h2>Treat submission as a state transition</h2>
<p>The documented creation request accepts <code>portraitUrls</code>, <code>templateId</code>, <code>subjectType</code>, and <code>outputDuration</code>. Send an API key as a Bearer token from a trusted backend; do not put it in browser code, logs, or a repository. A representative request body is:</p>
<pre><code>authorization: Bearer &lt;API_KEY&gt;
POST /api/v1/videos
{"portraitUrls":["https://example.com/portrait.jpg"],"templateId":"&lt;template-id-from-list&gt;","subjectType":"person","outputDuration":10}
</code></pre>
<p>These are placeholders, not working credentials or assets. The response includes a <code>job_id</code>, processing status, and <code>costCredits</code>. Store the job ID against your own user and record, and use <code>GET /api/v1/videos/{job_id}</code> to check its progress. Display current pricing and operation details before the user confirms a generation; balance alone is not a cost quote.</p>
<h2>The ambiguous timeout</h2>
<p>Suppose the client sends a creation request and the network times out before it receives the response. The server might have accepted the job. Automatically repeating the request could create an extra job and cost. A client should surface the uncertainty and reconcile with available job records before retrying. Verify whether the current API offers an idempotency mechanism; do not assume one exists.</p>
<p>The same caution applies to refunds or failed jobs: consult the current service terms and actual responses rather than promising a specific policy in your UI.</p>
<h2>Poll politely and make recovery possible</h2>
<p>Danceo documents a best-effort minimum two-second interval for generation and status requests per account and client IP. On HTTP 429, respect <code>Retry-After</code>. A production client can add bounded backoff, a timeout, and an option to resume checking later. Make it clear whether a job is still running, failed, or has a result; distinguish transport errors from a definitive task failure.</p>
<p>Restrict access to each user's own job IDs. Keep sensitive image URLs and keys out of diagnostic logs, and define how long application-side metadata should be retained. These are integration recommendations, not claims about guarantees provided by the API.</p>
<h2>Check the finished video</h2>
<p>A completed render still needs review: look for identity changes, unstable hands or limbs, unexpected framing, and suitability for the intended audience. Motion may differ from the reference; avoid promising frame-perfect reproduction. For the latest endpoint and field details, see <a href="https://danceo.ai/mcp">https://danceo.ai/mcp</a>.</p>
<p>The engineering lesson is simple: a reliable client makes uncertainty visible. It does not silently repeat a potentially chargeable operation, and it keeps human approval and review in the workflow.</p>
]]></content:encoded></item><item><title><![CDATA[Designing the Input Boundary for an AI Video Tool]]></title><description><![CDATA[How to handle consent, public photo URLs, credentials, credits, and uncertain outcomes in an AI video assistant workflow.]]></description><link>https://find-image-prompt.hashnode.dev/designing-the-input-boundary-for-an-ai-video-tool</link><guid isPermaLink="true">https://find-image-prompt.hashnode.dev/designing-the-input-boundary-for-an-ai-video-tool</guid><category><![CDATA[Artificial Intelligence]]></category><dc:creator><![CDATA[Jason Wei]]></dc:creator><pubDate>Wed, 25 Nov 2026 06:29:00 GMT</pubDate><content:encoded><![CDATA[<p>An AI assistant can make a video request feel deceptively simple: “turn these photos into a rap performance.” Behind that sentence are several decisions about consent, data access, cost, and a task that may take time to finish. Here is how I think about those boundaries using <a href="https://airapgenerators.com/">AI Rap Generators</a>, a product I work on, as an example.</p>
<h2>Make the action explicit</h2>
<p>A name idea or a lyric draft is not the same request as a video render. Before invoking a paid tool, the assistant should distinguish between exploring an idea and asking for a finished video. If the user wants a draft, stay in the text workflow. A verse draft is inspiration, not a promise that the generated performance will reproduce every word.</p>
<p>The original duo video workflow currently produces a 15-second video for 10 credits. It requires an account; a free first video is not guaranteed. A good assistant checks the balance with <code>get_credits</code>, explains the cost, and waits for the user to agree to the render. Check the current <a href="https://airapgenerators.com/pricing">pricing page</a> before making a purchase.</p>
<h2>Public image URLs are a meaningful constraint</h2>
<p>The MCP video tool accepts two publicly accessible HTTPS image URLs. A file in a private chat or on a local disk is not automatically accessible to the server. If the user only has a local file, the website's upload flow is a more appropriate path than pretending a private attachment is a public URL.</p>
<p>Public accessibility also changes the privacy discussion: a URL can be accessible to someone beyond the assistant. Use photos the user has permission to use, and obtain consent from the adults depicted. Do not use photos of real minors or public figures. An assistant should avoid inventing a public URL or exposing a private file merely to satisfy an API parameter.</p>
<h2>Keep credentials separate from content</h2>
<p>The MCP endpoint uses Streamable HTTP and requires an account API key. Store the key in the client configuration rather than in an article, prompt transcript, shared screenshot, or generated video request visible to others. Documentation examples should use placeholders and should never include working credentials.</p>
<h2>Treat a timeout as an unknown outcome</h2>
<p>After the inputs and cost are confirmed, the assistant can list available stages, create a task, retain its task ID, and check status at intervals of at least three seconds. Only share a result after the task reports success.</p>
<p>The tricky case is a request that times out after reaching the service. A timeout alone does not prove that no task was created. Retrying a paid action blindly can create duplicates, so first inspect the account or task status where possible. Rely on an idempotency key only if the interface explicitly supports one. Failed or cancelled renders restore reserved credits, but an unknown network outcome is a different state.</p>
<h2>Document the limits</h2>
<p>The current MCP video workflow covers original duo videos; website solo and template workflows are separate. Generated output may differ from the input or instructions, so review it before sharing. Details are in the <a href="https://airapgenerators.com/mcp">MCP documentation</a> and <a href="https://airapgenerators.com/api">API reference</a>.</p>
<p>This article was prepared with AI assistance from product documentation. I did not run a real paid end-to-end render for this example.</p>
]]></content:encoded></item><item><title><![CDATA[Building an AI Dance Video Pipeline: Motion Transfer, Async Jobs, and Credits That Don’t Lie]]></title><description><![CDATA[Note: This is a general architecture write-up. I'm using Danceo, a photo-to-dance generator, as a concrete example of the product behavior (upload limits…]]></description><link>https://find-image-prompt.hashnode.dev/building-an-ai-dance-video-pipeline-motion-transfer-async-jobs-and-credits-that-don-t-lie</link><guid isPermaLink="true">https://find-image-prompt.hashnode.dev/building-an-ai-dance-video-pipeline-motion-transfer-async-jobs-and-credits-that-don-t-lie</guid><dc:creator><![CDATA[Jason Wei]]></dc:creator><pubDate>Mon, 09 Nov 2026 02:40:56 GMT</pubDate><content:encoded><![CDATA[<blockquote>
<p><strong>Note:</strong> This is a general architecture write-up. I'm using <a href="https://danceo.ai/">Danceo</a>, a photo-to-dance generator, as a concrete example of the <em>product behavior</em> (upload limits, quoted cost, refund on failure). I don't know its internal implementation, so everything below is how <em>I'd</em> design such a system, not a description of theirs.</p>
</blockquote>
<p>Photo-to-dance products look simple from the outside: upload a portrait, upload a dance clip, wait, download a video. Under the hood, that's a long-running, GPU-bound, money-touching workflow. Most of the engineering difficulty isn't the model. It's everything around it.</p>
<p>This post covers three parts:</p>
<ol>
<li>What motion transfer is, at a conceptual level</li>
<li>How to model the generation job as a state machine</li>
<li>How to handle credits so users never get charged for failures</li>
</ol>
<h2>1. Motion transfer in one paragraph</h2>
<p>Text-to-video asks a model to invent motion from a sentence. <strong>Motion transfer</strong> splits the problem into two inputs:</p>
<ul>
<li><strong>Motion source</strong>: a reference video that supplies the body movement, timing, framing and camera behavior.</li>
<li><strong>Appearance source</strong>: a portrait that supplies who the person (or character) is.</li>
</ul>
<p>Conceptually, the system extracts motion information from the reference, extracts appearance information from the portrait, and conditions a video generation model on both. (The exact mechanism, such as pose sequences, dense motion fields, or learned latent features, varies by model and isn't something a product page usually tells you.)</p>
<p>The practical consequence for engineers: <strong>output quality is bounded by input quality</strong>. A reference with hard cuts or occluded dancers gives an incomplete motion signal. A blurry or dim portrait gives an unstable appearance signal. That's why input validation and preview matter so much for the product, not just for UX.</p>
<h2>2. The job is a state machine, not a request</h2>
<p>A render can take minutes and may fail for reasons outside your control (GPU preemption, model timeout, unsupported content). Treat it as an asynchronous job with explicit states:</p>
<pre><code class="language-text">CREATED → VALIDATING → QUEUED → RENDERING → POSTPROCESSING → COMPLETED
                │          │         │             │
                └──────────┴─────────┴─────────────┴──→ FAILED
                                                         (refund)
</code></pre>
<p>A minimal schema:</p>
<pre><code class="language-sql">CREATE TABLE render_jobs (
  id              UUID PRIMARY KEY,
  user_id         BIGINT NOT NULL,
  status          TEXT NOT NULL,           -- CREATED, QUEUED, RENDERING, ...
  portrait_key    TEXT NOT NULL,           -- object storage key
  reference_key   TEXT NOT NULL,
  output_seconds  INT  NOT NULL,           -- whole seconds
  credit_cost     INT  NOT NULL,           -- quoted at creation time
  idempotency_key TEXT NOT NULL,
  attempt         INT  NOT NULL DEFAULT 0,
  error_code      TEXT,
  created_at      TIMESTAMPTZ NOT NULL DEFAULT now(),
  updated_at      TIMESTAMPTZ NOT NULL DEFAULT now(),
  UNIQUE (user_id, idempotency_key)
);
</code></pre>
<p>Two details worth calling out:</p>
<ul>
<li><strong><code>credit_cost</code> is stored on the job at quote time.</strong> Pricing may change later; the job must honor what the user saw.</li>
<li><strong><code>UNIQUE (user_id, idempotency_key)</code></strong> makes "user double-clicked Generate" or "client retried after a timeout" a non-event.</li>
</ul>
<h3>Enforce legal transitions in one place</h3>
<p>Don't let workers write arbitrary statuses. Centralize transitions:</p>
<pre><code class="language-python">ALLOWED = {
    "CREATED":        {"VALIDATING", "FAILED"},
    "VALIDATING":     {"QUEUED", "FAILED"},
    "QUEUED":         {"RENDERING", "FAILED"},
    "RENDERING":      {"POSTPROCESSING", "FAILED", "QUEUED"},  # QUEUED = retry
    "POSTPROCESSING": {"COMPLETED", "FAILED"},
}

def transition(db, job_id, expected, new):
    if new not in ALLOWED.get(expected, set()):
        raise ValueError(f"illegal transition {expected} -&gt; {new}")
    updated = db.execute(
        """
        UPDATE render_jobs
           SET status = %s, updated_at = now()
         WHERE id = %s AND status = %s
        """,
        (new, job_id, expected),
    )
    if updated.rowcount == 0:
        raise ConcurrentUpdate(job_id)   # someone else moved it first
</code></pre>
<p>The <code>WHERE status = expected</code> clause is optimistic concurrency: if two workers race, exactly one wins.</p>
<h2>3. Credits: reserve, then settle</h2>
<p>A common mistake is "deduct credits when the job completes." That lets users spend the same balance on many jobs at once. The opposite mistake, deducting up front and forgetting to refund, creates support tickets.</p>
<p>The pattern that works is <strong>reserve → settle or release</strong>, using an append-only ledger:</p>
<pre><code class="language-sql">CREATE TABLE credit_ledger (
  id          BIGSERIAL PRIMARY KEY,
  user_id     BIGINT NOT NULL,
  job_id      UUID,
  kind        TEXT NOT NULL,   -- GRANT, RESERVE, RELEASE, SETTLE
  amount      INT  NOT NULL,   -- signed; RESERVE is negative
  created_at  TIMESTAMPTZ NOT NULL DEFAULT now(),
  UNIQUE (job_id, kind)        -- one reserve and one release/settle per job
);
</code></pre>
<p>Balance = <code>SUM(amount)</code> over the user's rows, where a reservation counts against the balance immediately.</p>
<pre><code class="language-python">def create_job(db, user_id, req):
    quote = price_quote(req.output_seconds, req.reference_seconds)

    with db.transaction():
        balance = ledger_balance(db, user_id, for_update=True)  # row lock
        if balance &lt; quote:
            raise InsufficientCredits(balance, quote)

        job = insert_job(db, user_id, req, credit_cost=quote)
        db.execute(
            "INSERT INTO credit_ledger (user_id, job_id, kind, amount) "
            "VALUES (%s, %s, 'RESERVE', %s)",
            (user_id, job.id, -quote),
        )
    enqueue(job.id)
    return job
</code></pre>
<p>On completion or failure:</p>
<pre><code class="language-python">def finish_job(db, job, ok: bool):
    with db.transaction():
        if ok:
            transition(db, job.id, "POSTPROCESSING", "COMPLETED")
            # Reservation simply stands; optionally log a SETTLE marker
            db.execute(
                "INSERT INTO credit_ledger (user_id, job_id, kind, amount) "
                "VALUES (%s, %s, 'SETTLE', 0) ON CONFLICT DO NOTHING",
                (job.user_id, job.id),
            )
        else:
            transition(db, job.id, job.status, "FAILED")
            # Give the credits back, exactly once
            db.execute(
                "INSERT INTO credit_ledger (user_id, job_id, kind, amount) "
                "VALUES (%s, %s, 'RELEASE', %s) ON CONFLICT DO NOTHING",
                (job.user_id, job.id, job.credit_cost),
            )
</code></pre>
<p>The <code>UNIQUE (job_id, kind)</code> plus <code>ON CONFLICT DO NOTHING</code> is what makes refunds <strong>idempotent</strong>. A worker that crashes and gets retried can't refund twice, and a duplicate failure event can't either. "Credits are restored if the render fails" is a promise you can only keep if this path is boring and bulletproof.</p>
<h2>4. Validate inputs before you spend GPU time</h2>
<p>Since output quality depends on inputs, and GPU time is the expensive part, validate cheaply and early:</p>
<pre><code class="language-python">import subprocess, json

def probe(path):
    out = subprocess.check_output([
        "ffprobe", "-v", "error", "-print_format", "json",
        "-show_format", "-show_streams", path,
    ])
    return json.loads(out)

def validate_reference(path, max_bytes=100 * 1024 * 1024, max_seconds=30):
    if os.path.getsize(path) &gt; max_bytes:
        raise Invalid("file_too_large")

    info = probe(path)
    video = next((s for s in info["streams"] if s["codec_type"] == "video"), None)
    if video is None:
        raise Invalid("no_video_stream")

    duration = float(info["format"]["duration"])
    if duration &gt; max_seconds:
        raise Invalid("too_long")

    w, h = int(video["width"]), int(video["height"])
    return {"duration": duration, "width": w, "height": h,
            "orientation": "portrait" if h &gt;= w else "landscape"}
</code></pre>
<p>Things worth checking before queueing a job:</p>
<ul>
<li><strong>Container and codec</strong>: accept what your pipeline can decode (e.g. MP4/MOV), reject the rest with a clear message.</li>
<li><strong>Duration and size limits</strong>: fail fast, before any GPU is touched.</li>
<li><strong>Orientation mismatch</strong>: if the portrait is vertical and the reference is landscape, warn the user. Matching orientation makes composition easier to review.</li>
<li><strong>Scene cuts</strong>: hard cuts in a reference hurt motion consistency. A simple frame-difference check can flag them as a warning.</li>
</ul>
<h3>Upload via presigned URLs</h3>
<p>Don't proxy 100 MB videos through your API servers. Have the client upload straight to object storage and only send keys to your API:</p>
<pre><code class="language-python">def presign_upload(user_id, filename, content_type):
    key = f"uploads/{user_id}/{uuid4()}/{sanitize(filename)}"
    url = s3.generate_presigned_url(
        "put_object",
        Params={"Bucket": BUCKET, "Key": key, "ContentType": content_type},
        ExpiresIn=900,
    )
    return {"url": url, "key": key}
</code></pre>
<p>Then, on job creation, <strong>re-verify the object</strong> (size, type, probe results) server-side. Never trust the client's claim about what it uploaded.</p>
<h2>5. Failure handling and retries</h2>
<p>GPU workloads fail in boring ways: OOM, preemption, timeouts. A few rules that save pain:</p>
<ul>
<li><strong>Retry transient failures only</strong> (preemption, network), with a small attempt cap. Don't retry deterministic ones (bad input).</li>
<li><strong>Use a visibility timeout</strong> on your queue so a dead worker's job reappears.</li>
<li><strong>Heartbeat during rendering</strong>; a reaper process moves jobs with stale heartbeats back to <code>QUEUED</code> or to <code>FAILED</code>.</li>
<li><strong>Store an <code>error_code</code></strong>, not just "failed". It's what lets support, and your UI, say something useful.</li>
</ul>
<h2>6. Privacy and consent are architecture, not an afterthought</h2>
<p>Photo-to-video tools put real faces into generated performances, so some product rules belong in the system itself:</p>
<ul>
<li><strong>Private-by-default storage.</strong> Inputs and outputs should be tied to the account and not publicly listable.</li>
<li><strong>Retention policy.</strong> Decide how long uploaded portraits and references live, and enforce it with lifecycle rules.</li>
<li><strong>Consent and rights acknowledgment at upload time.</strong> Users should affirm they have permission for every photo, likeness, performance and soundtrack they upload.</li>
<li><strong>Content policy checks.</strong> For example, rules against depicting real people as under 18 are far more enforceable if there's a check in the pipeline than if they only live in a Terms page.</li>
</ul>
<p>If you're building something similar, put these in the first version. Retrofitting consent flows later is painful.</p>
<h2>7. A few product-level lessons</h2>
<p>Looking at how a tool like Danceo presents its flow, a few choices stand out as worth copying:</p>
<ul>
<li><strong>Preview inputs before generating</strong>, so users catch bad references before spending credits.</li>
<li><strong>Quote the cost before the render starts</strong>, so billing never surprises anyone.</li>
<li><strong>Restore credits on failure</strong>, which is only trustworthy if the ledger design above is solid.</li>
<li><strong>Keep finished renders in a dedicated page</strong>, so a closed browser tab doesn't lose a video.</li>
</ul>
<p>None of these are glamorous. They're what make an AI product feel reliable instead of experimental.</p>
<h2>Wrapping up</h2>
<p>The model gets the headlines, but a photo-to-dance product succeeds or fails on the boring parts: an explicit job state machine, an idempotent credit ledger, cheap early validation, and consent built into the pipeline.</p>
<p>If you want to see these product decisions from the user's side, you can try <a href="https://danceo.ai/">Danceo</a> with a short test render. And if you're building something similar, I'd love to hear how you're handling retries and refunds. That's where I've seen most of the real-world bugs.</p>
]]></content:encoded></item><item><title><![CDATA[Building a Face-Based AI Video Product Responsibly: Consent, Retention, and Honest Limits]]></title><description><![CDATA[I recently launched AI Rap Generators, a small tool that turns two adult portraits into a 15-second vertical rap video with an original verse and beat…]]></description><link>https://find-image-prompt.hashnode.dev/building-a-face-based-ai-video-product-responsibly-consent-retention-and-honest-limits</link><guid isPermaLink="true">https://find-image-prompt.hashnode.dev/building-a-face-based-ai-video-product-responsibly-consent-retention-and-honest-limits</guid><dc:creator><![CDATA[Jason Wei]]></dc:creator><pubDate>Mon, 09 Nov 2026 02:33:27 GMT</pubDate><content:encoded><![CDATA[<p>I recently launched <a href="https://airapgenerators.com/">AI Rap Generators</a>, a small tool that turns two adult portraits into a 15-second vertical rap video with an original verse and beat. Videos are generated with Seedance 2.0.</p>
<p>The technical part of this project was fun. The part I thought about longest was something else: <strong>what happens when your product takes someone's face as input.</strong></p>
<p>This post is about the guardrails I designed in from day one, the patterns behind them, and where I think the honest limits are. It is not legal advice, and I do not claim any of this is complete. It is a starting point you can adapt.</p>
<h2>Why safety belongs in the product, not the footer</h2>
<p>Tools that animate real faces have an obvious upside (it's the whole appeal) and an obvious downside (someone can use a photo of a person who never agreed to be in a video).</p>
<p>You can treat that as a legal checkbox at the bottom of the page, or you can treat it as product design. I picked the second, for a practical reason: guardrails that live in the product are visible to users, testable by you, and much harder to forget.</p>
<p>Here is what I ended up with:</p>
<ul>
<li>Everyone shown must be <strong>you or an adult who agreed</strong> to take part.</li>
<li><strong>Images of minors and public figures are not accepted.</strong></li>
<li>Sexual, hateful, deceptive, or harassing content is not allowed.</li>
<li>Generated videos are <strong>labeled as AI-generated</strong>.</li>
<li>Uploaded photos are <strong>deleted after seven days</strong>.</li>
</ul>
<p>Each of these has a technical side. Let me walk through them.</p>
<h2>1. Make consent an explicit step you can point to</h2>
<p>A line in the terms of service is easy to miss. A required step in the flow is not.</p>
<p>The pattern I like: before a job can start, the user has to confirm, in the product, that everyone in the photos is an adult who agreed to take part. Then record that confirmation next to the job:</p>
<pre><code class="language-sql">CREATE TABLE consents (
  id               BIGSERIAL PRIMARY KEY,
  user_id          BIGINT  NOT NULL,
  job_id           BIGINT  NOT NULL UNIQUE,
  terms_version    TEXT    NOT NULL,
  declared_adults  BOOLEAN NOT NULL,
  declared_consent BOOLEAN NOT NULL,
  created_at       TIMESTAMPTZ NOT NULL DEFAULT now(),
  CHECK (declared_adults AND declared_consent)   -- no job without both
);
</code></pre>
<p>Why bother with a table instead of a frontend checkbox?</p>
<ul>
<li>The <strong>job cannot be created</strong> without the row, so the rule is enforced on the server, not just in the UI.</li>
<li>You know <strong>which version of the terms</strong> the user agreed to.</li>
<li>If something goes wrong later, you have a record instead of a guess.</li>
</ul>
<p>A declaration is not proof, and I will come back to that. But it sets the expectation, puts responsibility where it belongs, and gives you something to act on when a report comes in.</p>
<h2>2. Scope rules are a product decision, and they cost you something</h2>
<p>Rejecting minors and public figures removes a lot of "make a video of a celebrity" traffic, which is exactly the traffic that tends to go viral for the wrong reasons.</p>
<p>I decided that trade was worth it. Saying "no" up front is simpler than trying to police a gray area after the fact, and it keeps the product in a lane I can defend: lighthearted videos of you and people who agreed.</p>
<p>If you build something similar, write your scope rules in plain language <strong>on the page where users upload</strong>, not only in a policy document. People read the thing in front of them.</p>
<h2>3. Layer your checks, and be honest about what they can't do</h2>
<p>No single check is enough, so I think in layers, from cheap and deterministic to expensive and fuzzy:</p>
<ol>
<li><strong>Basic input checks.</strong> File type, size, resolution, and whether there is one clear, usable face per portrait. These are cheap, they fail fast, and they save you money on generations that were never going to work.</li>
<li><strong>Content safety checks</strong> on images and any text the user adds.</li>
<li><strong>User declarations</strong> (the consent step above).</li>
<li><strong>After-the-fact handling.</strong> A way for people to report a video, and a person on your side who can act on it.</li>
</ol>
<p>In code, the idea is a simple gate in front of the expensive call:</p>
<pre><code class="language-ts">type Check = (job: Job) =&gt; Promise&lt;{ ok: true } | { ok: false; reason: string }&gt;;

const checks: Check[] = [basicImageChecks, contentSafety, consentRecorded];

async function admit(job: Job) {
  for (const check of checks) {
    const result = await check(job);
    if (!result.ok) return reject(job, result.reason);
  }
  return enqueue(job); // only now do we pay for generation
}
</code></pre>
<p>Ordering matters for cost. The cheap checks run first so you do not spend generation credits on inputs you were going to reject anyway.</p>
<p>Now the uncomfortable part: <strong>there is no reliable way to automatically verify age or to recognize every public figure.</strong> Any model you use will have misses and false positives. That is why the design is "declaration plus detection plus after-the-fact handling", not "detection solves it".</p>
<p>If you build on a third-party video model, also read that provider's own usage and data policies, because your users' photos pass through their systems too. I would rather you hear that from a post like this than discover it later.</p>
<h2>4. Retention is a promise, so build it as a mechanism</h2>
<p>"Photos are deleted after seven days" is easy to write and surprisingly easy to break. The way I think about it: <strong>if deletion depends on someone remembering, it is not a promise yet.</strong></p>
<p>Two layers:</p>
<ol>
<li><strong>Storage lifecycle rules.</strong> Put user uploads under a dedicated prefix (for example <code>uploads/</code>) and configure the storage service to expire objects after seven days.</li>
<li><strong>A database record</strong> so the app knows what was deleted and never hands out a dead link.</li>
</ol>
<pre><code class="language-sql">ALTER TABLE jobs ADD COLUMN assets_expire_at  TIMESTAMPTZ;
ALTER TABLE jobs ADD COLUMN assets_deleted_at TIMESTAMPTZ;

-- set at job creation: assets_expire_at = now() + interval '7 days'

-- nightly sweeper: mark expired jobs and clear references
UPDATE jobs
SET assets_deleted_at = now()
WHERE assets_expire_at &lt; now() AND assets_deleted_at IS NULL;
</code></pre>
<p>A few details that are easy to miss:</p>
<ul>
<li><strong>Keep source uploads and finished videos under different prefixes.</strong> Their lifecycles differ, and you do not want an expiry rule deleting a user's finished video.</li>
<li><strong>Delete every copy.</strong> Originals, thumbnails, intermediate files, and URLs sitting in logs.</li>
<li><strong>Use the same deletion path for user requests.</strong> If "delete my data" and "auto-expire" are separate code paths, one of them will eventually be wrong.</li>
</ul>
<h2>5. Label what the output is</h2>
<p>Every generated video is labeled as AI-generated. As these videos get more realistic, I think transparency is simply the right default: it protects viewers, and it protects the people in the clip from being mistaken for something they did not do.</p>
<h2>6. Say the limits out loud</h2>
<p>Honest limits build more trust than polish does. On the product page I state plainly that:</p>
<ul>
<li>videos are 15 seconds long,</li>
<li>custom song upload is not supported yet,</li>
<li>it is built for two adult performers,</li>
<li>results are AI-generated, so likeness to the photos varies.</li>
</ul>
<p>This is also a safety practice. Users with accurate expectations are less likely to be disappointed, to push the tool into uses it was not designed for, or to blame the wrong thing when a result looks off.</p>
<h2>What it costs, briefly</h2>
<p>For context: one video costs 10 credits, credit packs start at $6.99, there is no subscription, and failed renders are refunded automatically.</p>
<h2>A short checklist you can reuse</h2>
<p>If you are building anything that takes faces as input, these are the questions I would ask before launch:</p>
<ol>
<li>Is consent a <strong>required step in the flow</strong>, recorded server-side with a terms version?</li>
<li>Are your <strong>scope rules</strong> (who may appear, what is not allowed) written on the upload page itself?</li>
<li>Do cheap checks run <strong>before</strong> expensive ones?</li>
<li>Do you have a <strong>reporting path</strong> and a human who can act on it?</li>
<li>Is retention enforced by <strong>a system mechanism</strong>, with the same path for user-requested deletion?</li>
<li>Do you know <strong>where photos go</strong> when you call third-party models, and what their policies say?</li>
<li>Are outputs <strong>labeled</strong>, and are the <strong>limits</strong> of the product stated plainly?</li>
</ol>
<h2>What I'm still unsure about</h2>
<p>I do not think this is solved. Age and identity checks are fundamentally imperfect, norms around AI-generated likenesses are still moving, and what is acceptable today may tighten tomorrow. I would rather ship narrow, explain the rules clearly, and adjust than pretend the problem is finished.</p>
<p>If you have built something similar, I would genuinely like to hear what you do differently, especially around moderation and retention. And if you want to see the product these decisions belong to, you can browse every stage for free at <a href="https://airapgenerators.com/">airapgenerators.com</a>.</p>
]]></content:encoded></item><item><title><![CDATA[Porting a Native Game Engine to the Browser: What WebAssembly Replaces (and What It Doesn't)]]></title><description><![CDATA[A native game assumes an operating system: a filesystem, a window, a sound device, a thread scheduler, a blocking main loop. A browser tab offers none of…]]></description><link>https://find-image-prompt.hashnode.dev/porting-a-native-game-engine-to-the-browser-what-webassembly-replaces-and-what-it-doesn-t</link><guid isPermaLink="true">https://find-image-prompt.hashnode.dev/porting-a-native-game-engine-to-the-browser-what-webassembly-replaces-and-what-it-doesn-t</guid><dc:creator><![CDATA[Jason Wei]]></dc:creator><pubDate>Thu, 15 Oct 2026 09:57:11 GMT</pubDate><content:encoded><![CDATA[<p>A native game assumes an operating system: a filesystem, a window, a sound device, a thread scheduler, a blocking main loop. A browser tab offers none of these directly. So how does a full 3D open-world game end up running in one?</p>
<p>A good case study is <a href="https://gtabrowser.org/"><strong>gtabrowser.org</strong></a>, a site that runs an unofficial, fan-made port of <em>Grand Theft Auto: Vice City</em> in the browser. Instead of walking through the site as a user, this post uses it to answer a more general engineering question: <strong>what does it take to move a native C++ engine onto the web platform?</strong></p>
<blockquote>
<p><strong>Disclaimer:</strong> gtabrowser.org is unofficial and not affiliated with Rockstar Games or Take-Two Interactive. I could not inspect its server, so project-specific details below come from the public reVCDOS repository that the site credits. Code snippets are generic Emscripten-style illustrations, not excerpts from that project.</p>
</blockquote>
<h2>The mental model: replace the OS, piece by piece</h2>
<p>A WebAssembly build does not magically make a program "web-native". It compiles your code to a sandboxed binary and then asks a JavaScript glue layer to impersonate the operating system. Each native service gets a browser equivalent:</p>
<table>
<thead>
<tr>
<th>Native engine needs</th>
<th>Browser equivalent</th>
</tr>
</thead>
<tbody><tr>
<td>Filesystem (<code>fopen</code>, <code>fread</code>)</td>
<td>Virtual filesystem in memory, optionally persisted to IndexedDB</td>
</tr>
<tr>
<td>Window and GL context</td>
<td><code>&lt;canvas&gt;</code> with WebGL</td>
</tr>
<tr>
<td>Audio device</td>
<td>Web Audio API</td>
</tr>
<tr>
<td>Keyboard, mouse, gamepad</td>
<td>DOM events, Pointer Lock, Gamepad API</td>
</tr>
<tr>
<td>Blocking <code>while (running)</code> loop</td>
<td><code>requestAnimationFrame</code> callback</td>
</tr>
<tr>
<td>Synchronous disk reads</td>
<td>Preloaded data, or async fetch with a shim</td>
</tr>
<tr>
<td>Process memory</td>
<td>WASM linear memory</td>
</tr>
</tbody></table>
<p>The credited reVCDOS repository mirrors this split. Its client code is divided into modules named <code>runtime</code>, <code>loader</code>, <code>fs</code>, <code>graphics</code>, <code>audio</code>, <code>events</code>, <code>fetch</code> and <code>syscalls</code>, which is essentially the table above turned into a file listing.</p>
<h2>Problem 1: the main loop</h2>
<p>Native games own the process. They spin in a loop and never return control. A browser tab does the opposite: if your code never yields, the page freezes. The fix is to hand the frame function to the browser and let it call you back once per display refresh.</p>
<p>With Emscripten, the native entry point changes shape:</p>
<pre><code class="language-cpp">#include &lt;emscripten.h&gt;

void frame() {
  update();
  render();
}

int main() {
  init();
  // fps = 0 lets the browser pick its refresh rate;
  // 1 = simulate an infinite loop
  emscripten_set_main_loop(frame, 0, 1);
}
</code></pre>
<p>This also explains two behaviours players notice. First, the game pauses or slows when the tab is in the background, because browsers throttle <code>requestAnimationFrame</code> there. Second, a frame-rate cap option is genuinely useful: on a laptop it can trade a few frames for lower heat.</p>
<h2>Problem 2: persistence without a disk</h2>
<p>Games write save files. Browsers will not give a WASM module a real disk, so the runtime mounts a virtual filesystem and syncs it to <strong>IndexedDB</strong>. Emscripten's built-in IDBFS works roughly like this:</p>
<pre><code class="language-js">FS.mkdir('/saves');
FS.mount(IDBFS, {}, '/saves');

// load: copy IndexedDB contents into the in-memory FS
FS.syncfs(true, (err) =&gt; { /* start the game */ });

// later: flush in-memory changes back to IndexedDB
FS.syncfs(false, (err) =&gt; { /* saved */ });
</code></pre>
<p>The reVCDOS repository ships its own <code>idbfs.js</code>, so the details may differ, but the consequence is the same for players: saves live in browser storage, scoped to one site on one device. Clearing site data, using private mode, or switching browsers can lose them. The project offers a js-dos key for cloud saves, and the self-hosted server can store saves in a directory instead.</p>
<h2>Problem 3: assets are bigger than the code</h2>
<p>The compiled engine is modest. The game data (models, textures, animations, audio) is what makes the first launch slow. Native engines read these files synchronously, which is a problem because a browser cannot block the main thread on the network. Ports generally pick one of three strategies:</p>
<ol>
<li><p><strong>Preload everything</strong> into a packaged <code>.data</code> file before starting</p>
</li>
<li><p><strong>Stream lazily</strong>, fetching individual files when the engine first asks for them</p>
</li>
<li><p><strong>Use Asyncify</strong>, an Emscripten feature that lets synchronous-looking C++ pause while an async operation completes</p>
</li>
</ol>
<p>The repository's layout (paired <code>.data</code> and <code>.wasm</code> bundles, plus a module commented as real-time asset streaming) suggests a mix of the first two. The server side focuses on making that cheap to deliver:</p>
<ul>
<li><p>Brotli-compressed bundles</p>
</li>
<li><p>A proxy mode that fetches assets from a CDN</p>
</li>
<li><p>A cache mode that downloads each file once and serves it locally afterwards</p>
</li>
<li><p>A packed-archive mode that serves from one compressed file</p>
</li>
</ul>
<h2>Problem 4: the server is almost nothing</h2>
<p>Because the client does the heavy lifting, the backend can be tiny. The reference implementation is a small Python (FastAPI) proxy, with a PHP variant for shared hosting. Its job is to serve static client files, proxy or cache large assets, and optionally add HTTP Basic Auth and a save endpoint.</p>
<p>One general caution if you build something similar: if your engine uses threads through <code>SharedArrayBuffer</code>, browsers require cross-origin isolation headers (<code>Cross-Origin-Opener-Policy</code> and <code>Cross-Origin-Embedder-Policy</code>). That is a common source of "works on localhost, breaks in production" bugs.</p>
<h2>Constraints you cannot engineer away</h2>
<ul>
<li><p><strong>Memory:</strong> <code>wasm32</code> linear memory is capped at 4 GiB, and real-world limits are often lower</p>
</li>
<li><p><strong>First load:</strong> large downloads are unavoidable, so cache behaviour matters more than raw speed</p>
</li>
<li><p><strong>Shader and driver variance:</strong> WebGL performance differs between GPUs, drivers and browsers</p>
</li>
<li><p><strong>Mobile:</strong> touch controls and memory limits vary widely, which is why the site itself says mobile support is not guaranteed</p>
</li>
</ul>
<h2>A note on legality</h2>
<p>The engine reimplementation behind projects like this is open source, but the original game's art, audio and data remain the property of their owners. The site states that full play needs original files and that users should only provide files they own. If you want to learn from this architecture, study the open-source code and test with data you legally possess.</p>
<h2>Takeaways</h2>
<ul>
<li><p>A WebAssembly port is mostly about <strong>replacing OS services</strong>, not rewriting game logic</p>
</li>
<li><p>The main loop, persistence and asset I/O are the three places where native assumptions break</p>
</li>
<li><p>Compression and caching decide whether a port feels usable</p>
</li>
<li><p>The backend can be a thin proxy, because the browser does the work</p>
</li>
</ul>
<p>If you are considering porting your own engine or prototype, the table near the top of this post is a decent checklist: for every native service your code touches, decide which browser API will stand in for it.</p>
<p><a href="https://gtabrowser.org/">https://gtabrowser.org/</a></p>
<p><em>Sources: the gtabrowser.org public pages and the reVCDOS repository on GitHub.</em></p>
]]></content:encoded></item><item><title><![CDATA[Cómo funciona Bulin 47 AI, parte 1: por qué construimos sobre «recast» y no sobre prompts]]></title><description><![CDATA[Esta es la parte 1 de una serie de 3 artículos sobre la tecnología detrás de Bulin 47 AI. La parte 1 explica la idea central y el modelo. La parte 2 sigue…]]></description><link>https://find-image-prompt.hashnode.dev/c-mo-funciona-bulin-47-ai-parte-1-por-qu-construimos-sobre-recast-y-no-sobre-prompts</link><guid isPermaLink="true">https://find-image-prompt.hashnode.dev/c-mo-funciona-bulin-47-ai-parte-1-por-qu-construimos-sobre-recast-y-no-sobre-prompts</guid><dc:creator><![CDATA[Jason Wei]]></dc:creator><pubDate>Wed, 14 Oct 2026 13:30:02 GMT</pubDate><content:encoded><![CDATA[<p><em>Esta es la parte 1 de una serie de 3 artículos sobre la tecnología detrás de</em> <a href="https://bulin-47-ai.org/"><em>Bulin 47 AI</em></a><em>. La parte 1 explica la idea central y el modelo. La parte 2 sigue un video desde la subida de la foto hasta la descarga. La parte 3 trata la calidad, los límites y lo que los benchmarks dicen y no dicen.</em></p>
<p>Cuando el freestyle de Bulin 47 explotó en octubre de 2026, la mayoría de las personas que intentaron recrearlo con IA se toparon con el mismo muro. Abrían una herramienta de texto a video, escribían algo como «un rapero haciendo freestyle en una calle de Madrid con una bocina y público» y obtenían un video de... un rapero haciendo freestyle en una calle. Agradable, genérico y nada parecido al clip del que todo el mundo hablaba.</p>
<p>Esa brecha, entre <em>un</em> freestyle y <em>el</em> freestyle, es la razón por la que existe Bulin 47 AI, y condiciona cada decisión técnica que tomamos.</p>
<h2>El problema de pedirle un momento viral a un prompt</h2>
<p>Un clip viral no es un concepto; es una actuación concreta. El beat, el ritmo de los hombros, la forma en que el compañero sostiene la bocina, el encuadre de la calle, el sonido de la toma original: nada de eso sobrevive a una descripción de texto. Puedes describir «un rapero bailando», pero no puedes describir <em>ese</em> baile.</p>
<p>El modelo de imagen a video tiene la debilidad opuesta. Si le das una sola foto, inventará el movimiento, lo que significa que el movimiento es idea del modelo y no del intérprete original.</p>
<p>Por eso nos hicimos otra pregunta: en lugar de pedirle a un modelo que <em>imagine</em> el freestyle, ¿y si conservamos el freestyle real y solo cambiamos a quién aparece en él?</p>
<h2>Qué significa «recast»</h2>
<p>Eso es exactamente lo que hace un modelo de recast. Recastear es una tarea de video a video. Según la documentación de fal sobre H3 Max Recast, el modelo reemplaza a las personas principales de un video de origen por personas de fotos de referencia, siguiendo a cada una a lo largo de los planos, y conserva el movimiento, la cámara, los cortes y el audio del original.</p>
<p>Lee esa lista otra vez, porque es todo el producto en una sola frase:</p>
<ul>
<li><p><strong>El movimiento original</strong> se conserva, así que la coreografía sigue siendo la del intérprete original.</p>
</li>
<li><p><strong>La cámara</strong> y <strong>los cortes</strong> se conservan, así que el encuadre y la sensación de calle se mantienen intactos.</p>
</li>
<li><p><strong>El audio</strong> se conserva, así que el video mantiene el sonido original en lugar de una aproximación regenerada.</p>
</li>
<li><p><strong>Las personas vienen de fotos de referencia</strong>, así que la identidad en pantalla es la que tú subes.</p>
</li>
</ul>
<p>La tendencia de Bulin 47 es, por definición, un remix de reemplazo de personaje: se cambia al intérprete principal, mientras el compañero, el público, la iluminación y el movimiento de cámara se quedan como estaban. Un modelo de recast es la versión técnica de esa misma idea.</p>
<h2>El reparto de tareas: el clip aporta la actuación, la foto aporta la identidad</h2>
<p>Conviene pensar que dos entradas hacen dos trabajos distintos.</p>
<table>
<thead>
<tr>
<th>Entrada</th>
<th>Qué controla</th>
</tr>
</thead>
<tbody><tr>
<td>Clip de origen preparado</td>
<td>Coreografía, tiempos, cámara, escenario, otras personas, audio</td>
</tr>
<tr>
<td>Tu retrato</td>
<td>Rostro, cabello, ropa y apariencia general del intérprete reemplazado</td>
</tr>
</tbody></table>
<p>Como la actuación viene de una grabación real, el usuario no tiene nada que describir y el modelo no tiene nada que improvisar sobre el baile. Por eso Bulin 47 AI no tiene cuadro de prompts. Lo que los prompts hacen bien (describir una escena) ya lo resuelve el clip de origen, y lo que hacen mal (reproducir una actuación exacta) lo resuelve la propia grabación.</p>
<h2>El motor: H3 Max</h2>
<p>Bulin 47 AI funciona con H3 Max Recast, servido a través de fal. Una breve aclaración sobre qué es H3 Max, porque el nombre genera algo de confusión.</p>
<p>H3 Max es una versión posentrenada del modelo de video de pesos abiertos MiniMax H3, desarrollada por fal Research y optimizada en velocidad por el equipo de inferencia de fal. fal informa de que fue posentrenado para lograr mayor fidelidad al prompt y mejor calidad visual, y optimizado junto con una pila de inferencia propia. Su afirmación más llamativa es generar un video de cinco segundos en unos tres segundos.</p>
<p>En cuanto a calidad, fal informa de que H3 Max quedó en primer lugar en sus evaluaciones de preferencia humana en calidad general, comprensión del prompt y estética frente a otros doce modelos de video, entre ellos Seedance 2.5, Kling 3 y Veo 3.1. fal también reporta primeros puestos en categorías de imagen a video en clasificaciones independientes de Artificial Analysis y Design Arena.</p>
<p>Seremos cuidadosos con el uso de esas cifras, y la parte 3 explica por qué. Por ahora, lo importante es más sencillo: H3 Max Recast es un modelo creado específicamente para la tarea de «conservar el video y cambiar a las personas», sobre un modelo base que hoy es de los más comentados en generación de video.</p>
<h2>Por qué elegimos una única plantilla preparada</h2>
<p>La mayoría de las herramientas de video te dejan subir cualquier clip. Nosotros deliberadamente no. Bulin 47 AI usa un solo clip de origen preparado, recortado en versiones de 6, 12 y 19 segundos, en formato vertical.</p>
<p>Esa decisión tiene beneficios de ingeniería reales:</p>
<ol>
<li><p><strong>Calidad predecible.</strong> Sabemos exactamente cómo es el material de origen: dónde está el intérprete, qué tan rápido se mueven los hombros, dónde está la bocina. La única variable es tu foto.</p>
</li>
<li><p><strong>Menos modos de fallo.</strong> Una herramienta abierta de «sube cualquier video» tiene que lidiar con iluminación desconocida, movimientos de cámara desconocidos y un número desconocido de personas. Una plantilla fija elimina la mayoría de esas incógnitas.</p>
</li>
<li><p><strong>Producto más simple.</strong> Un usuario que solo tiene que elegir una foto y una duración puede terminar en menos de un minuto de esfuerzo.</p>
</li>
<li><p><strong>Pensado con los derechos en mente.</strong> Una plantilla preparada mantiene la experiencia ligada a la tendencia para la que fue creada, en lugar de convertirse en una herramienta general para remezclar el material de cualquiera.</p>
</li>
</ol>
<p>La contrapartida es igual de clara: si quieres otro clip, esta no es la herramienta. Es una especialista, no un estudio.</p>
<h2>Lo que viene</h2>
<p>En la parte 2 seguimos un solo video desde el momento en que subes un retrato hasta el momento en que descargas el MP4, y explicamos por qué la generación es asíncrona, qué hace la cola y qué pasa cuando algo sale mal.</p>
<p>¿Quieres ver el resultado de todo esto? <a href="https://bulin-47-ai.org/"><strong>Prueba Bulin 47 AI →</strong></a></p>
<p><em>Bulin 47 AI es un proyecto independiente hecho por fans y no está afiliado ni respaldado por Bulin 47 ni por Kevin Wai.</em></p>
<hr />
<p><strong>Fuentes y lecturas adicionales</strong></p>
<ul>
<li><p>fal, «Introducing H3 Max by fal»: <a href="https://blog.fal.ai/introducing-h3-max-by-fal/">https://blog.fal.ai/introducing-h3-max-by-fal/</a></p>
</li>
<li><p>Página del modelo en fal, H3 Max Recast: <a href="https://fal.ai/models/minimax/h3-max/recast">https://fal.ai/models/minimax/h3-max/recast</a></p>
</li>
</ul>
]]></content:encoded></item><item><title><![CDATA[How Bulin 47 AI Works, Part 3: Quality, Limits and Honest Benchmarks]]></title><description><![CDATA[Part 3 of a 3-part series on the technology behind Bulin 47 AI. Part 1 covered why we use a recast model; Part 2 followed a video from upload to download…]]></description><link>https://find-image-prompt.hashnode.dev/how-bulin-47-ai-works-part-3-quality-limits-and-honest-benchmarks</link><guid isPermaLink="true">https://find-image-prompt.hashnode.dev/how-bulin-47-ai-works-part-3-quality-limits-and-honest-benchmarks</guid><dc:creator><![CDATA[Jason Wei]]></dc:creator><pubDate>Wed, 14 Oct 2026 13:26:57 GMT</pubDate><content:encoded><![CDATA[<p>Part 3 of a 3-part series on the technology behind Bulin 47 AI. Part 1 covered why we use a recast model; Part 2 followed a video from upload to download. This post is about what you can expect from the results.</p>
<p>If you have seen videos made with Bulin 47 AI, you have probably noticed that they hold together unusually well: the movement matches the original, the scene stays stable, the audio is the real audio. In our view, the results are among the strongest you can get for this particular trend. But "among the strongest" is an opinion, and a technical series should be clear about what is evidence, what is opinion and what is marketing. So let's separate them.</p>
<p>Where the quality comes from</p>
<p>Three things combine to produce a good result.</p>
<ol>
<li><p>The source clip does the hard part. In a recast, the choreography, timing, camera path, setting and audio come from a real recording. The model is not inventing a dance; it is re-dressing one. That removes the biggest source of weirdness in AI video, which is motion the model made up.</p>
</li>
<li><p>The model is built for the job. H3 Max Recast is designed to replace people in a video using reference photos while preserving the source motion, camera, cuts and audio, and to track each person across shots. Tracking matters: the replaced performer has to stay the same person from the first frame to the last, even as they turn, move and get partly blocked.</p>
</li>
<li><p>Your photo supplies a clean identity. A bright, front-facing image with one clearly visible person gives the model the most to work with.</p>
</li>
</ol>
<p>Where it struggles</p>
<p>We would rather tell you the limits than have you discover them. Across runs, the areas that vary most are:</p>
<p>Hands and fingers, especially during fast gestures. Fast movement, where small timing errors are more visible. Clothing edges, which can shimmer or shift, particularly with loose or patterned garments. Moments of occlusion, such as when someone passes in front of the performer. Lip-sync, which follows the source audio closely but is never guaranteed to be exact.</p>
<p>Inputs that make things harder: group photos, heavy filters, strong colour grading, sunglasses that hide most of the face, and low-resolution crops.</p>
<p>The benchmark question</p>
<p>It is tempting to write "powered by the world's best video model" and move on. Here is what we can actually say.</p>
<p>What fal reports. H3 Max is a post-trained version of the open-weights MiniMax H3 model, developed by fal Research. fal reports that in its own human-preference evaluations it ranked first for overall quality, prompt understanding and aesthetics against twelve other video models. fal also reports first-place results in image-to-video categories on independent leaderboards from Artificial Analysis and Design Arena.</p>
<p>What that does not mean.</p>
<p>Part of that evidence is fal's own evaluation of its own model. It is informative, but it is not independent. Independent coverage has noted that the first-place claims apply to specific image-to-video categories, not to every leaderboard. A model can lead one category and rank lower in another. Those rankings are about general video generation. We are not aware of a public benchmark that measures character replacement (recast) specifically, which is the task Bulin 47 AI actually performs. The "five seconds in about three seconds" speed claim describes a particular generation task under fal's test conditions. Recasting a 6-to-19-second clip takes longer, which is why our jobs are queued and usually take a few minutes.</p>
<p>What we are comfortable saying. Bulin 47 AI is built on a recently released, highly ranked video model, used for the task it was designed for, with a fixed source clip that removes most sources of error. In our experience that combination produces results among the best available for this trend. We would rather you judge by trying than by trusting a leaderboard, ours or anyone else's.</p>
<p>Getting the best result: a short checklist Use a bright, evenly lit photo. Choose a front-facing pose, ideally waist-up or full-body, with face, hair and outfit visible. Make sure only one person is in the frame. Skip heavy filters, strong colour grading and large sunglasses. Use a sharp, reasonably high-resolution image. Review your result for appearance, lip movement and scene consistency before sharing. If something looks off, try a different photo rather than re-running the same one. Using it responsibly</p>
<p>A tool that can put a face into a viral clip needs clear ground rules.</p>
<p>Only upload images you own or have permission to use. That includes photos of friends, family and colleagues. No minors. Do not create content involving anyone under 18. Label AI content where platforms require it, and do not present generated clips as real footage. Respect the original artists. Bulin 47 AI is an independent fan-made project, not affiliated with or endorsed by Bulin 47 or Kevin Wai, and generated videos should be understood as fan remixes. Mind platform and music rules where you post, since policies differ. Wrapping up the series</p>
<p>Across three posts, the story is short. A viral clip is a specific performance, so we kept the performance and swapped the person. A recast model does that job directly. A fixed template keeps the inputs predictable. An asynchronous queue keeps the experience reliable. And honest expectations, about both limits and benchmarks, keep the whole thing trustworthy.</p>
<p>If you have read this far, the best next step is the simplest one: make your own Bulin 47 AI video →</p>
<p>Sources and further reading</p>
<p>fal, "Introducing H3 Max by fal": <a href="https://blog.fal.ai/introducing-h3-max-by-fal/">https://blog.fal.ai/introducing-h3-max-by-fal/</a> fal model page, H3 Max Recast: <a href="https://fal.ai/models/minimax/h3-max/recast">https://fal.ai/models/minimax/h3-max/recast</a> RuntimeWire, "fal ships H3 Max, generating five-second videos in roughly three seconds": <a href="https://runtimewire.com/article/fal-h3-max-faster-than-real-time-video-model">https://runtimewire.com/article/fal-h3-max-faster-than-real-time-video-model</a></p>
]]></content:encoded></item><item><title><![CDATA[How Bulin 47 AI Works, Part 1: Why We Built on Recast, Not Prompts]]></title><description><![CDATA[This is part 1 of a 3-part series on the technology behind Bulin 47 AI. Part 1 explains the core idea and the model. Part 2 follows a video from upload to…]]></description><link>https://find-image-prompt.hashnode.dev/how-bulin-47-ai-works-part-1-why-we-built-on-recast-not-prompts</link><guid isPermaLink="true">https://find-image-prompt.hashnode.dev/how-bulin-47-ai-works-part-1-why-we-built-on-recast-not-prompts</guid><dc:creator><![CDATA[Jason Wei]]></dc:creator><pubDate>Wed, 14 Oct 2026 13:23:45 GMT</pubDate><content:encoded><![CDATA[<p><em>This is part 1 of a 3-part series on the technology behind</em> <a href="https://bulin-47-ai.org/"><em>Bulin 47 AI</em></a><em>. Part 1 explains the core idea and the model. Part 2 follows a video from upload to download. Part 3 covers quality, limits and what the benchmarks do and do not tell you.</em></p>
<p>When the Bulin 47 freestyle exploded in October 2026, most people who tried to recreate it with AI hit the same wall. They opened a text-to-video tool, typed something like "a rapper freestyling on a Madrid street with a speaker and a crowd," and got a video of... a rapper freestyling on a street. Pleasant, generic, and nothing like the clip everyone was talking about.</p>
<p>That gap, between <em>a</em> freestyle and <em>the</em> freestyle, is the reason Bulin 47 AI exists, and it shapes every technical decision we made.</p>
<h2>The problem with prompting a viral moment</h2>
<p>A viral clip is not a concept; it is a specific performance. The beat, the shoulder rhythm, the way the partner holds the speaker, the framing of the street, the sound of the original take: none of that survives a text description. You can describe "a rapper dancing," but you cannot describe <em>that</em> dance.</p>
<p>Image-to-video has the opposite weakness. Give a model one photo and it will invent motion, which means the movement is the model's idea, not the original performer's.</p>
<p>So the question we asked was different: instead of asking a model to <em>imagine</em> the freestyle, what if we kept the real freestyle and only changed who is in it?</p>
<h2>What "recast" means</h2>
<p>That is exactly what a recast model does. Recasting is a video-to-video task. According to fal's documentation for H3 Max Recast, it replaces the main people in a source video with people from reference photos, tracking each person across shots, while preserving the source motion, camera, cuts and audio.</p>
<p>Read that list again, because it is the whole product in one sentence:</p>
<ul>
<li><p><strong>Source motion</strong> is preserved, so the choreography stays the original performer's.</p>
</li>
<li><p><strong>Camera</strong> and <strong>cuts</strong> are preserved, so the framing and the street-level feel stay intact.</p>
</li>
<li><p><strong>Audio</strong> is preserved, so the video keeps the original sound rather than a regenerated approximation.</p>
</li>
<li><p><strong>People come from reference photos</strong>, so the identity on screen is the one you upload.</p>
</li>
</ul>
<p>The Bulin 47 trend is, by definition, a character-replacement remix: the lead performer is swapped, while the partner, the crowd, the lighting and the camera movement stay as they were. A recast model is the technical version of that same idea.</p>
<h2>The division of labor: clip carries the performance, photo carries the identity</h2>
<p>It helps to think of two inputs doing two different jobs.</p>
<table>
<thead>
<tr>
<th>Input</th>
<th>What it controls</th>
</tr>
</thead>
<tbody><tr>
<td>Prepared source clip</td>
<td>Choreography, timing, camera, setting, other people, audio</td>
</tr>
<tr>
<td>Your portrait</td>
<td>Face, hair, clothing, overall appearance of the replaced performer</td>
</tr>
</tbody></table>
<p>Because the performance comes from a real recording, there is nothing for the user to describe and nothing for the model to improvise about the dance. That is why Bulin 47 AI has no prompt box. The part prompts are good at (describing a scene) is already solved by the source clip, and the part prompts are bad at (reproducing an exact performance) is handled by the recording itself.</p>
<h2>The engine: H3 Max</h2>
<p>Bulin 47 AI is powered by H3 Max Recast, served through fal. A quick note on what H3 Max is, because the name causes some confusion.</p>
<p>H3 Max is a post-trained version of the open-weights MiniMax H3 video model, developed by fal Research and optimized for speed by fal's inference team. fal reports that it was post-trained for stronger prompt adherence and visual quality and co-optimized with a custom inference stack. Its headline claim is generation of a five-second video in roughly three seconds.</p>
<p>On quality, fal reports that H3 Max ranked first in its human-preference evaluations for overall quality, prompt understanding and aesthetics against twelve other video models, including Seedance 2.5, Kling 3 and Veo 3.1. fal also reports first-place results in image-to-video categories on independent leaderboards from Artificial Analysis and Design Arena.</p>
<p>We will be careful about how we use those numbers, and Part 3 explains why. For now, the important point is simpler: H3 Max Recast is a model built specifically for the "keep the video, change the people" job, on top of a base model that is currently among the most talked-about in video generation.</p>
<h2>Why we chose a single prepared template</h2>
<p>Most video tools let you upload any clip. We deliberately did not. Bulin 47 AI uses one prepared source clip, cut into 6-, 12- and 19-second versions, rendered in vertical format.</p>
<p>That choice has real engineering benefits:</p>
<ol>
<li><p><strong>Predictable quality.</strong> We know exactly what the source footage looks like: where the performer stands, how fast the shoulders move, where the speaker is. The only variable is your photo.</p>
</li>
<li><p><strong>Fewer failure modes.</strong> An open "upload any video" tool must cope with unknown lighting, unknown camera moves and unknown numbers of people. A fixed template removes most of those unknowns.</p>
</li>
<li><p><strong>Simpler product.</strong> A user who only has to pick a photo and a length can finish in under a minute of effort.</p>
</li>
<li><p><strong>Rights-aware by design.</strong> A prepared template keeps the experience tied to the one trend it was built for, instead of becoming a general tool for remixing anyone's footage.</p>
</li>
</ol>
<p>The trade-off is just as clear: if you want a different clip, this is not the tool. It is a specialist, not a studio.</p>
<h2>What comes next</h2>
<p>In Part 2 we follow a single video from the moment you upload a portrait to the moment you download the MP4, and explain why generation is asynchronous, what the queue does and what happens when something goes wrong.</p>
<p>Want to see the result of all this? <a href="https://bulin-47-ai.org/"><strong>Try Bulin 47 AI →</strong></a></p>
<p><em>Bulin 47 AI is an independent fan-made project and is not affiliated with or endorsed by Bulin 47 or Kevin Wai.</em></p>
<hr />
<p><strong>Sources and further reading</strong></p>
<ul>
<li><p>fal, "Introducing H3 Max by fal": <a href="https://blog.fal.ai/introducing-h3-max-by-fal/">https://blog.fal.ai/introducing-h3-max-by-fal/</a></p>
</li>
<li><p>fal model page, H3 Max Recast: <a href="https://fal.ai/models/minimax/h3-max/recast">https://fal.ai/models/minimax/h3-max/recast</a></p>
</li>
</ul>
]]></content:encoded></item><item><title><![CDATA[A Developer's Guide to Building an Image-to-Prompt Pipeline]]></title><description><![CDATA[If you're building anything in the AI-art space, "image to prompt" is a feature that comes up constantly — and it's trickier to get right than it first…]]></description><link>https://find-image-prompt.hashnode.dev/a-developer-s-guide-to-building-an-image-to-prompt-pipeline</link><guid isPermaLink="true">https://find-image-prompt.hashnode.dev/a-developer-s-guide-to-building-an-image-to-prompt-pipeline</guid><dc:creator><![CDATA[Jason Wei]]></dc:creator><pubDate>Fri, 21 Aug 2026 14:51:54 GMT</pubDate><content:encoded><![CDATA[<p>If you're building anything in the AI-art space, "image to prompt" is a feature that comes up constantly — and it's trickier to get right than it first looks. This is a breakdown of the pipeline, the design decisions that actually matter, and where the tradeoffs are.</p>
<img src="https://cdn.hashnode.com/uploads/covers/6a88652d7a66c9a8aa35fa2e/81fb791a-25c6-4dfc-8541-7cfba16e0ad3.png" alt="" style="display:block;margin:0 auto" />

<h2>The task, precisely defined</h2>
<p>Given an image, output a text prompt that, when fed to a generation model (Midjourney, Stable Diffusion, DALL·E), produces a similar image. This is <strong>not</strong> the same task as image captioning. A captioning model optimizes for accurately describing content. A prompting model needs to optimize for <em>reproducibility</em> — capturing the attributes a generator actually conditions on.</p>
<h2>Step 1: Attribute extraction</h2>
<p>The first stage needs a vision-language model capable of open-ended description, not fixed-vocabulary tagging. Object detection pipelines (YOLO-style) top out here because they can't describe lighting, mood, or medium — only discrete objects. You want something in the CLIP/BLIP lineage, or a general multimodal LLM with vision input, prompted specifically to extract:</p>
<ul>
<li><p>Subject</p>
</li>
<li><p>Art style / medium (photography, watercolor, 3D render, etc.)</p>
</li>
<li><p>Lighting (direction, quality, color temperature)</p>
</li>
<li><p>Composition / camera angle</p>
</li>
<li><p>Mood / atmosphere</p>
</li>
<li><p>Color palette</p>
</li>
</ul>
<p>A naive prompt to the VLM ("describe this image") will get you prose. You need to constrain the output shape explicitly:</p>
<p>python</p>
<pre><code class="language-python">instruction = (
    "Describe this image as a comma-separated AI art prompt: "
    "subject, style, lighting, mood, art medium, camera angle. "
    "Do not write full sentences."
)
</code></pre>
<h2>Step 2: Structuring, not just generating</h2>
<p>This is the step people skip, and it's the difference between a usable prompt and a mediocre one. Even with a constrained instruction, VLM output tends to drift toward natural language. A post-processing pass that normalizes the output into a strict attribute list — ordering subject first, then style, then lighting, then technical modifiers — measurably improves how well downstream generators respond to it.</p>
<p>If you want to go further, score candidate keyword phrases against the source image using CLIP similarity and drop anything below a threshold — this catches cases where the VLM hallucinated a style descriptor that doesn't actually match.</p>
<h2>Step 3: Closing the loop</h2>
<p>A one-way image → prompt tool is useful but limited. The more valuable version closes the loop:</p>
<ol>
<li><p>Image → prompt (extraction)</p>
</li>
<li><p>Prompt → image (generation, to test the extracted prompt)</p>
</li>
<li><p>New image → description (verification — does the regenerated image match intent?)</p>
</li>
<li><p>Adjust and repeat</p>
</li>
</ol>
<p>Building all three stages on the same underlying model/API reduces latency and keeps the attribute vocabulary consistent across stages, which matters more than it sounds — if your extractor and your verifier use different vocabularies for "style," comparing their outputs gets messy fast.</p>
<h2>If you don't want to build this yourself</h2>
<p>I built exactly this pipeline into <a href="http://Findimageprompt.com">Findimageprompt.com</a> — free, no signup, four tools (Image to Prompt, Text to Prompt, AI Image Describer, AI Image Generator) sharing one engine so the loop above works out of the box. Worth a look either as a working reference implementation or just as a tool if you don't need to own the pipeline yourself.</p>
<h2>Takeaways</h2>
<ul>
<li><p>Captioning and prompting are different problems — don't reuse a captioning model unmodified</p>
</li>
<li><p>Output <em>structure</em> affects generation quality as much as output <em>accuracy</em></p>
</li>
<li><p>The real value is in the loop (extract → generate → verify → adjust), not a single one-shot conversion</p>
</li>
</ul>
]]></content:encoded></item></channel></rss>