Configure your feature settings in the UI (model, parameters, etc.).
Copy
from google import genaiimport osclient = genai.Client( api_key=os.environ.get("KEYWORDSAI_API_KEY"), http_options={ "base_url": "https://api.keywordsai.co/api/google/gemini", },)response = client.models.generate_content( model="gemini-2.5-flash", contents="Hello", # Note: provider SDK support for Keywords AI params may vary. # If you can't pass `var_1` via the SDK, use the Standard API/proxy endpoint instead.)
3
Step 3: Use in your code
Copy the configuration and use it in your requests.