Skip to content

Can I embed the interactive AISwapLab studio inside my website or course page?

The current AISwapLab deployment sends X-Frame-Options: DENY, so the interactive studio is not offered as an embeddable iframe widget. Link users to the top-level studio instead. If your product needs its own embedded creation interface, scope a separate supported server-side API integration with its own user interface and ownership checks. Do not remove framing protections or expose an account key to make the existing website appear inside your page.

SHIP A RELIABLE INTEGRATIONAISwapLab team · Editorial methodPublished 3 min read
Open API documentationExplore 67 Image SkillsPrivate keys · Explicit credit approval
Article workflow: Identify what the host page is trying to show; Use top-level navigation for the native studio; Scope a separate application if a custom interface is essential.
Workflow diagram: Identify what the host page is trying to show → Use top-level navigation for the native studio → Scope a separate application if a custom interface is essential. Read the article for evidence and limits.

Embedding a document is different from calling an API

MDN explains that DENY prevents a document from loading in a frame regardless of the parent origin. That is a document policy, not the same failure as browser JavaScript encountering API CORS. A backend that can authenticate an API request does not thereby make the studio document embeddable. Showing an appropriately authorized exported video is another operation again; private result routes are not public shareable widgets.

What to do next

  1. 01

    Identify what the host page is trying to show

    Decide whether you need interactive creation, a link to a tool, or playback of an approved deliverable. Inspect the actual iframe error and the studio response policy using ordinary read-only diagnostics. Do not substitute a generated-media URL for the interactive document or assume an account session will transfer to course participants. Record the exact public page being framed without including private account routes in a public issue.

  2. 02

    Use top-level navigation for the native studio

    Provide a clearly labeled link to the official studio so the user can work in its own page and account context. Preserve your course instructions outside that session and explain which action the user should perform after opening it. Avoid proxying the entire authenticated site or stripping its response headers. Adding an allow attribute to your iframe does not override the framed document's DENY policy.

  3. 03

    Scope a separate application if a custom interface is essential

    Read the documented API contract before promising an integrated experience. Keep credentials server-side, authorize your own users, quote and approve paid operations, persist task identities and mediate private downloads. Match the needed task to exposed API capabilities: the H3 API is not automatically the studio's individual two-person mapping interface. Prototype with local fixtures and read-only connection checks before approving any paid creation. A new front end is implementation work, not an undocumented embed switch.

A concrete example

Illustrative course design: an instructor's frame displays a browser refusal. They replace it with a labeled link and a separate checklist for the exercise. A later proposal for an in-course generator is evaluated as an API application with its own account and spending boundaries, rather than a header-removal workaround. No live iframe test or custom integration was executed for this example.

Before you call it ready

  • Document-framing policy is distinguished from API CORS and media playback.
  • The native studio opens in its own top-level account context.
  • Any custom application is limited to the documented API and independent authorization requirements.

When to stop or choose another method

Stop promising an iframe-based native studio when the document policy forbids it. Do not bypass browser protections, circulate private job links or embed a permanent API secret in a course page.

Sources

One task. A recoverable workflow.

Check the contract, approve the quote and retain the job.

Open API documentation