Morph + Vercel AI SDK
Stream code edits at 10,500+ tokens/second using the Vercel AI SDK with Morph’s fast apply model. Use Vercel’s AI Gateway for unified billing, rate limits, and failover across 100+ AI models.Setup
Option 1: AI Gateway (Recommended)
- Get an AI Gateway API key from Vercel
- Add it to your environment variables as
OPENAI_API_KEY - Install the AI SDK:
Option 2: Direct API
- Get a Morph API key from the Morph dashboard
- Add it to your environment variables as
MORPH_API_KEY - Install the AI SDK: