The response is slow

I’m just running the official sample code from the Gemini API documentation,
but I get the log message
AFC is enabled with max remote calls,
and then the response is returned only after 10 minutes.
What could be the possible reasons for this behavior?
"I’m waiting for the full 10 minutes before making the next request.

model:gemini-2.0-flash, gemini-2.0-flash-light, gemini-2.5-flash

Hi @user2162 Welcome to the community.
Could you please share the specific Gemini API documentation code snippet you’re running so I can test it on my end?
Thank you

This is my code

from google import genai

client = genai.Client(api_key="GEMINI_API_KEY")

response = client.models.generate_content(
    model="gemini-2.5-flash",
    contents="How does AI work?"
)
print(response.text)

I tested the same code in Google Colab and received a response in under 15 seconds. This can be related to network connectivity or environment configuration , not the model or the code itself. could you please clarify the environment you are running this from?