import os
from google import genai
from google.genai.types import HttpOptions

os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = r"D:\project\advich\xinkeaboard\xinkeaboard-gemini-langgraph_prompt\backend\xinke-b2b-project-devops-763c6b8c6901.json"
os.environ["GOOGLE_CLOUD_PROJECT"] = r"xinke-b2b-project-devops"
os.environ["GOOGLE_CLOUD_LOCATION"] = r"global"
os.environ["GOOGLE_GENAI_USE_VERTEXAI"] = r"True"

client = genai.Client(http_options=HttpOptions(api_version="v1"))
response = client.models.generate_content(
    model="gemini-2.5-flash",
    contents="How does AI work? in 10 words",
)
print(response.text)