Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Batch Text Generation with Google Cloud Storage (GCS) as input

What is the correct config for running a Gemini batch text generation job with GCS as input?

https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/batch-prediction-gemini#cloud-stora...
Request JSON body is invalid. 
'INPUT_SOURCE' is an incomplete k:v pair. 

{
    "displayName": "BP_JOB_NAME",
    "model": "publishers/google/models/gemini-1.0-pro-002",
    "inputConfig": {
      "instancesFormat":"INSTANCES_FORMAT",
      "inputSource":{ INPUT_SOURCE
        "inputUri" : "INPUT_URI"
      }
    },
    "outputConfig": {
      "predictionsFormat":"bigquery",
      "bigqueryDestination":{
        "outputUri": "OUTPUT_URI"
        }
    }
}

Error message:

{
  "error": {
    "code": 400,
    "message": "Invalid JSON payload received. Expected : between key:value pair.\ne\":{ gcsSource      \"inputUri\" : \"gs://j\n                    ^",
    "status": "INVALID_ARGUMENT"
  }
}
0 1 222
1 REPLY 1