Skip to main content

Example Requests

Once you have your endpoint URL (whether local, hosted test, or your own deployment), you can call the API using these examples. Replace https://your-endpoint.com/v1 with your actual base URL.

cURL (bash/macOS/Linux)

PowerShell (Windows)

Python (OpenAI SDK)

Using the Hosted Test Endpoints

You can try the API immediately with the hosted test instances (note: these are on free tiers and may have rate limits):
Replace free-gem-1 with free-gem-2 (Netlify), free-gem-3 (Vercel), or use the Deno endpoint https://free-gemini.tinypixel.deno.net/v1.