# Embed a live Android phone in your web app.

Mobilebox’s embed API puts a live, clickable cloud Android phone in your web page: one call returns a signed iframe link that only your origin can frame, and the phone costs $0.01 a minute. Your users watch or tap through the app your product built without a Mobilebox account, and a phone was ready for a first screenshot in 1.35 s in our 22 November 2026 benchmark.

[Embed guide](https://mobilebox.dev/docs/embed?via=md) [Get an API key](https://mobilebox.dev/signup?via=md)

For AI app builders, no-code tools, docs and demos: anywhere a page should hold a working phone.

## Three calls from your server.

Allow your pages once. Then, per preview: a phone, the build from a URL, and a link that only your origin can frame. Keep the API key on your server and hand the browser only the link.

We ran these calls on production on 25 November 2026 with the F-Droid app (its APK from f-droid.org): phone, install and link came back in 2.9 s. The install takes about as long as your APK’s download.

[Every option in the embed guide](https://mobilebox.dev/docs/embed?via=md)

```
# Once: the pages that may show a phone (up to 20)
curl -X PUT https://mobilebox.dev/v1/embed/origins \
  -H "Authorization: Bearer $MOBILESANDBOX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"origins": ["https://app.example.com"]}'

# Per preview: a phone, your build, a link
ID=$(curl -s -X POST https://mobilebox.dev/v1/phones \
  -H "Authorization: Bearer $MOBILESANDBOX_API_KEY" \
  -H "Content-Type: application/json" -d '{"display_hz": 30}' | jq -r .id)
curl -X POST "https://mobilebox.dev/v1/phones/$ID/apps" \
  -H "Authorization: Bearer $MOBILESANDBOX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://builds.example.com/preview.apk"}'
curl -X POST "https://mobilebox.dev/v1/phones/$ID/embed" \
  -H "Authorization: Bearer $MOBILESANDBOX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"origin": "https://app.example.com", "interactive": true}'

# Your page: the url from the answer
<iframe src="https://mobilebox.dev/embed?t=e1.…" width="360" height="800"
  style="border:0" title="Phone preview"></iframe>
```

## What your users get.

One phone’s screen in your page, and nothing else from Mobilebox.

### The real app

- Your APK on an Android 14 phone, not a web build in a frame

- View-only, or interactive: taps, swipes, typing, back and home

- The screen fills the iframe at its own aspect ratio

### Only your pages

- The browser refuses any other parent page

- Links expire after 1 to 60 minutes, 15 by default

- One call revokes every link of a phone, open ones too

### Your page stays in charge

- Events tell it when the first frame is up and when a link ends

- No account, API key or billing reaches the user

- Your own team can take over the phone; embeds pause meanwhile

## Embeddable phone previews compared

Published prices and embed options as of 25 November 2026, from each vendor’s own page.

| Service | Published price | How you embed it | Phones |
| --- | --- | --- | --- |
| Mobilebox | $0.01 a minute, billed per second, no plan | Signed iframe link per phone, locked to one of your origins, view-only or interactive, page events | Android phones in the embed; iPhone and iPad simulators through the API and live view |
| Limrun | Android $0.04–0.05 a minute in credits, iOS double; plans from $20 a month, free trial | Embeddable simulators on all plans, a React component with a stream token | iOS simulators, Android emulators, cloud builds |
| Expo Simulators | $0.10 a minute on a paid Expo plan (launch post); sessions end after 115 minutes | An iframe allowed by --frame-ancestor (up to 10 origins), or @expo/hub-client | iOS simulators, Android emulators |
| Appetize | Starter $59 a month billed yearly ($89 monthly) for 500 minutes and 3 devices, then $0.06 a minute; free plan | An iframe per uploaded build, plus a JavaScript SDK | iOS simulators, Android emulators |
| Revyl | 1,200 device minutes a month free, then $0.075 a minute for iOS or Android (pricing) | An iframe with single-use session links; any site may frame it, and a session ends after 3 idle or 10 active minutes | iOS simulators, Android emulators, cloud builds |
| Genymotion SaaS | $0.06 a minute per running device, pay as you go | An open-source JavaScript web player | Cloud Android devices |

Limrun, Expo, Appetize and Revyl put iOS in the frame; Limrun and Revyl build your app from source and Expo pairs with EAS Build, while Mobilebox expects the APK. Mobilebox is the cheapest Android minute here and, like Genymotion’s pay as you go, needs no plan. Picking a cloud iOS simulator instead? [Cloud iOS simulators compared](https://mobilebox.dev/blog/cloud-ios-simulators-compared?via=md) · [Limrun alternatives](https://mobilebox.dev/blog/limrun-alternatives?via=md) · [Revyl alternatives](https://mobilebox.dev/blog/revyl-alternatives?via=md).

## Questions

Building a phone preview into your product.

Does anything run in my user’s browser?

Only the stream. The phone runs on our servers; the iframe shows its screen and sends your user’s taps and typing back. Nothing is installed in the visitor’s browser.

How do I get my user’s app onto the phone?

Install an APK, split APKs (.apks, .xapk) or a URL to one: `POST /v1/phones/{id}/apps` with `{"url": "…"}` takes about as long as the download. For an Expo or React Native project, send the Metro tunnel link instead: the phone installs the matching Expo Go and opens it ([Expo previews](https://mobilebox.dev/expo-preview?via=md)), or build an APK with an EAS Build profile whose `android.buildType` is `apk`. Google Play isn’t on the phones.

What does a preview cost?

$0.01 a minute while the phone runs, billed per second, the same as any Mobilebox phone. The embed adds nothing. Taps count as activity, so a phone someone plays with stays up; park or delete it when your user leaves. See [pricing](https://mobilebox.dev/pricing?via=md).

Can my users get into my account through the iframe?

No. A link shows one phone and accepts only screen input and a few safe keys. It carries no API key, opens only inside your origin and expires on its own. Treat it like a short-lived password to that phone, and revoke it with `DELETE /v1/phones/{id}/embed` when the session ends.

Can I show an iPhone preview?

The embed link shows Android phones. Mobilebox also runs iPhone and iPad simulators on the same API at $0.03 a minute, and your agents and team can watch them in the live view.

Can my AI agent test the app on the same phone?

Yes. The phone your user sees is an ordinary Mobilebox phone, so your agent can read its screen, tap and check results over the [MCP server](https://mobilebox.dev/android-mcp-server?via=md) or REST before or after the preview.

## Read more

[Limrun, Expo Simulators, Appetize alternatives: cloud iOS simulators compared (2026) Limrun, Expo Simulators, Appetize, Argent Cloud, Mobilebox and local MCP servers side by side: platforms, how agents connect, published price, whether you need a Mac, MCP, and what a 5-minute check costs. Comparisons5 min read](https://mobilebox.dev/blog/cloud-ios-simulators-compared?via=md) [Limrun alternatives (2026): cloud Android and iOS for agents For iOS: Expo Simulators, Argent Cloud, Phone Harness. For Android: Mobilebox, Mobilerun, Clousd, mobile-mcp. Published prices as of 23 Nov 2026, and where Limrun is still faster. Comparisons8 min read](https://mobilebox.dev/blog/limrun-alternatives?via=md)

Watching your own agent instead? [Live view](https://mobilebox.dev/live-view?via=md) · [Mobile sandbox](https://mobilebox.dev/mobile-sandbox?via=md).

## Try it in your agent in 60 seconds

Paste this into Claude Code, Cursor, Codex or any agent that can read a web page. It asks for your email, gets its own key at once and adds the phone tools; the 6-digit code from your inbox keeps the workspace.

```
Set up Mobilebox for me: read https://mobilebox.dev/setup.md?via=app-preview and follow it.
```

[What your agent reads](https://mobilebox.dev/setup.md?via=app-preview)

## Next questions

- [Does my agent need a real device?](https://mobilebox.dev/blog/real-android-devices-vs-cloud-phones?via=next-real-device)

- [Can my agent automate tasks in my apps?](https://mobilebox.dev/app-automation?via=next-automation)

- [What replaces Firebase Test Lab?](https://mobilebox.dev/blog/mobilebox-vs-firebase-test-lab?via=next-firebase)

- [Mobilebox or BrowserStack?](https://mobilebox.dev/blog/mobilebox-vs-browserstack?via=next-browserstack)

- [Cloud phone or a local emulator?](https://mobilebox.dev/blog/mobilebox-vs-local-emulator?via=next-emulator)

- [Limrun or Mobilebox?](https://mobilebox.dev/blog/mobilebox-vs-limrun?via=next-limrun)

- [How do I add it to Cursor, Codex or VS Code?](https://mobilebox.dev/blog/android-mcp-cursor-codex-vscode?via=next-setup)

- [Can my agent run 50 phones in parallel?](https://mobilebox.dev/blog/run-android-phones-in-parallel?via=next-parallel)
