capabilities.work

Draft Spec With Gateway Then Build App

A 2-step recipe with Vercel. We can help you get access.

Recipe · 2 steps

Draft Spec With Gateway Then Build App

with Vercel

Expand an idea into a spec via the gateway, then generate the app with v0.

  1. Ask an AI Gateway model to expand the short idea into a detailed app build specification suitable for code generation.
  2. Send the generated specification to v0 as the generation prompt.
What you'll need to have ready
  • gatewayApiKey: AI Gateway API key (AI_GATEWAY_API_KEY) used as a Bearer token for the gateway.
  • v0ApiKey: v0 API key (V0_API_KEY) used as a Bearer token for the v0 Platform API.
  • chatModel: AI Gateway chat model id in 'provider/model-name' form.
  • idea: A short product idea to expand into a detailed build spec.
For your developer

Arazzo workflow vercel:draftSpecThenBuildApp, 2 operations: createChatCompletion → createChat. Specs on APIs.io.