Skip to main content

Run the API Locally

You can run gemini-web2api locally to test it before deploying to a serverless platform.

Prerequisites

  • Python 3.8+
  • httpx library (for streaming)

Steps

1

Install dependencies

2

Install dependencies

3

Start the server

The server starts at http://localhost:8081/v1.
4

Verify

Test with cURL:

Next Steps

Once you’ve verified it works locally, choose a deployment platform to run it in production.