Nanobanana Vertex AI
AI-generatedSummary
Generate an image using the specified Vertex AI model with provided request contents, optionally upload it to a Google Cloud Storage bucket, and output image data and metadata.
Inputs
- Project ID (required) — The Google Cloud project ID containing the Vertex AI resources.
- Location (required) — The region location of the Vertex AI model, e.g., 'us-central1'.
- Model ID (required) — The identifier of the Vertex AI model to use for content generation, defaulting to 'imagegeneration@006'.
- Contents (JSON) (required) — A JSON array representing the request contents sent to the Vertex AI generateContent API endpoint for the model.
- GCS Bucket Name — Optional name of a Google Cloud Storage bucket; if provided, the generated image is uploaded to this bucket and made publicly readable.
Output shape
An array of JSON objects, each with 'json' containing image metadata (file ID in GCS, public URI if uploaded, base64 data URI, MIME type, and success flag) and 'binary' containing the image file data prepared for downstream binary data processing.
Returns one output item per input item processed. On failure and if 'Continue On Fail' is enabled, outputs an error message in the item's JSON field instead of halting execution.