Google Quickstart
Access Gemini models through Klint's Google-compatible endpoint.
Python
import google.generativeai as genai
genai.configure(
api_key="klint_sk_live_...",
transport="rest",
client_options={"api_endpoint": "https://api.tryklint.com/google"}
)
model = genai.GenerativeModel("gemini-2-flash")
response = model.generate_content("Hello from Klint!")
print(response.text)REST
curl "https://api.tryklint.com/google/v1beta/models/gemini-2-flash:generateContent" \
-H "x-goog-api-key: $KLINT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"contents":[{"parts":[{"text":"Hello!"}]}]}'