apps/blog/content/blog/introducing-instant-app-deployments-in-partnership-with-vercel/index.mdx
AI coding platforms let anyone create software from a prompt, but turning generated code into a deployed app is still a hard problem. Announcing Instant App Deployment, a new API built on Prisma Postgres and Vercel, that solves this problem.
AI coding and no-code platforms all face the same hurdle: users build great apps, then stall when it comes to deployment.
Hosting is costly, complex, and far from your core focus cause you care about models, code generation, and UX, not Kubernetes and database scaling.
The result: users have working code but no clear path to a deployed application. Platforms must either take on heavy infrastructure themselves or risk losing users when they leave to deploy elsewhere.
Instant app hosting provides a complete deployment solution through a single API call. When users click "Deploy" in a platform, here's what happens:
The entire process takes minutes, not hours. No configuration files, no DevOps knowledge required. It's an elegant setup from both the platform and the users perspective that removes friction on both ends.
<Steps variant="vertical"> <Step variant="vertical">// VERCEL_TOKEN – Create a Personal Access Token at
// https://vercel.com/account/tokens
// Example: VERCEL_TOKEN="vercel_pat_abc123xyz"
//
// TEAM_ID – From your Vercel Team Settings (not personal account).
// Example: TEAM_ID="team_abc123xyz"
//
// INTEGRATION_CONFIG_ID – Prisma Integration Config ID.
// Go to Vercel Dashboard → Team → Integrations → Prisma → Configure.
// Copy the `icfg_...` part from the URL.
// Example: INTEGRATION_CONFIG_ID="icfg_abc123xyz"
const { VERCEL_TOKEN, TEAM_ID, INTEGRATION_CONFIG_ID } = process.env;
const API = "https://api.vercel.com";
const PRISMA_PRODUCT_ID = "prisma-postgres";
const api = (path: string, body: any, method = "POST") =>
fetch(
`${API}${path}${path.includes("?") ? "&" : "?"}teamId=${TEAM_ID}`,
{
method,
headers: {
Authorization: `Bearer ${VERCEL_TOKEN}`,
"Content-Type": "application/json"
},
body: body ? JSON.stringify(body) : undefined,
}
).then(r => r.json());
const projectName = `demo-${Date.now()}`;
const project = await api(`/projects`, { name: projectName });
const auth = await api(`/integrations/billing/authorization`, {
integrationIdOrSlug: "prisma",
productId: PRISMA_PRODUCT_ID,
billingPlanId: "pro",
metadata: JSON.stringify({ region: "iad1" }),
integrationConfigurationId: INTEGRATION_CONFIG_ID,
});
console.log(`Prisma authorized`);
const db = await api(`/storage/stores/integration`, {
name: `ppg-${project.name}`,
billingPlanId: "pro",
metadata: { region: "iad1" },
integrationConfigurationId: INTEGRATION_CONFIG_ID,
integrationProductIdOrSlug: PRISMA_PRODUCT_ID,
authorizationId: auth.authorization.id,
source: "marketplace",
});
console.log(`DB: ${db.store.id}`);
await api(
`/integrations/installations/${INTEGRATION_CONFIG_ID}/products/${PRISMA_PRODUCT_ID}/resources/${db.store.id}/connections`,
{ projectId: project.id }
);
console.log(`DB connected`);
const deployment = await api(`/deployments`, {
name: `deploy-${Date.now()}`,
project: project.name,
projectSettings: { framework: "nextjs" },
});
console.log(`URL: https://${deployment.url}`);
const transfer = await api(`/projects/${project.id}/transfer-request`, {});
console.log(`Claim: https://vercel.com/claim-deployment?code=${transfer.code}`);
To explore all the APIs for claiming a Vercel deployment, check out our guide or visit the official Vercel docs. You can also try out the live demo we’ve prepared.
This isn't a sandbox or a demo environment. Every deployment is production-ready:
Here's where it gets interesting. When users are ready to take ownership of their deployed application, they can claim it seamlessly. The entire deployment, both database and application, transfers to their own Vercel and Prisma accounts.
This solves a critical problem for platforms: you can offer instant deployments without being responsible for long-term hosting support or costs. Users get a working application they fully control, with their own billing and management. The claiming process ensures continuity, preserving the application state and data while transferring ownership cleanly to the user's accounts.
Whether you're building an AI assistant that generates full applications, a no-code tool for app development, or a teaching platform where students deploy projects, Instant App Deployment handles the infrastructure complexity.
Consider these use cases:
The future of application development is here. AI is making app development accessible to everyone, and this new API ensures that deployment is just as simple.
If you're building a platform that generates code, we want to work with you. Whether you're focused on AI-assisted development, no-code programming tools, or any other approach to application creation, the Instant App Deployment API can handle your deployment needs.
Ready to get started or have questions? Ping us!