Skip to content

Providers

Google Gemini

Gemini through the native or OpenAI-compatible path.

Use /gemini for the native generateContent API, or /v1 with a Gemini model name through the OpenAI-compatible endpoint.

terminal
curl https://gateway.ospin.dev/gemini/v1beta/models/gemini-2.5-flash:generateContent \  -H "Authorization: Bearer $OSPIN_KEY" \  -d '{"contents":[{"parts":[{"text":"ping"}]}]}'