Immediate 429 from batch embedding endpoint

Here is the code I ran, based on Gemini Batch API now supports Embeddings and OpenAI Compatibility - Google Developers Blog

import json
from google import genai
import os
import boto3
os.environ["GEMINI_API_KEY"] = get_api_key()

client = genai.Client()

uploaded_batch_requests = client.files.upload(file='my_file', config={'mime_type': 'application/jsonl'})

batch_job = client.batches.create_embeddings(
    model="gemini-embedding-001",
    src={"file_name": uploaded_batch_requests.name}
)

and here is the error I received, although it is not that helpful, since this was the first request I ran in over a month

google.genai.errors.ClientError: 429 RESOURCE_EXHAUSTED. {'error': {'code': 429, 'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, head to: https://ai.google.dev/gemini-api/docs/rate-limits. To monitor your current usage, head to: https://ai.dev/rate-limit. ', 'status': 'RESOURCE_EXHAUSTED', 'details': [{'@type': 'type.googleapis.com/google.rpc.Help', 'links': [{'description': 'Learn more about Gemini API quotas', 'url': 'https://ai.google.dev/gemini-api/docs/rate-limits'}]}]}}

I used to use this endpoint heavily, and I now can’t seem to do anything with it. All my usage is basically at zero.

my friend was able to run exactly the same code with a different api key successfully. Any help is appreciated.

Hi @Robert_Undermind , Welcome to forum!!!

Thanks for reaching out to us. Apologies for the inconvenience caused, Could you please share the project number (not the project ID) via direct message along with the tier details?

Thanks

Thanks for the quick reply @Nireeksha_K_A . I suspect outbound DMs may be restricted for me as a “new user”. Can you initiate the DM to me?

Hi @Robert_Undermind ,

I’ve sent a direct message with you. I would appreciate your confirmation and your time in reviewing and responding to it.

Thanks

Thanks, I got the DM

Hi @Robert_Undermind ,

We truly appreciate you flagging this issue and apologize for the issues. We have escalated this issue to our internal team for further investigation.

okay! Will they reply in this thread directly, or will you interface with them?