Deploy openai-gemini to various providers
mainYou can deploy this project as a serverless proxy to provide an OpenAI-compatible endpoint for the Gemini API. You will need a personal Google API key.
Vercel
- Use the Deploy with Vercel button.
- Or use the CLI:
vercel deploy. - Local development:
vercel dev.
Netlify
- Use the Deploy to Netlify button.
- Or use the CLI:
netlify deploy. - Local development:
netlify dev. - This provider offers two API bases:
/v1(e.g.,/v1/chat/completions)/edge/v1
Cloudflare
- Use the Deploy to Cloudflare Workers button.
- Or manually paste the content of
src/worker.mjsinto the Cloudflare Workers Playground. - Or use the CLI:
wrangler deploy. - Local development:
wrangler dev.
Deno
- See deployment details in this discussion.