X-API-KEY header, you need a thin server-side proxy to keep the key off the client. The calling pattern is the same across all three.
Download reference proxy
spine-proxy.ts — a minimal Next.js / Edge-compatible proxyArchitecture
Set your API key
AddSPINE_API_KEY to your project’s environment / secrets:
| Tool | Where |
|---|---|
| Bolt.new | Project settings → Environment variables |
| Replit | Secrets tab (lock icon in sidebar) |
| Lovable | Project settings → Secrets |
Proxy setup
Bolt.new / Next.js
Createapp/api/spine/run/route.ts:
Replit
Create a simple Express endpoint or use Replit’s built-in HTTP handler:Lovable
Lovable uses Supabase Edge Functions. Createsupabase/functions/spine-run/index.ts: