#!/usr/bin/env bash
# Canonical Gemma 4 call via the Gemini API (Google AI Studio).
# Source: https://ai.google.dev/gemma/docs/core/gemma_on_gemini_api
# Hosted model IDs (2026-04): gemma-4-31b-it, gemma-4-26b-a4b-it
# Note: hosted variants are the big ones only; on-device E2B/E4B are NOT served on the Gemini API.

export GEMINI_API_KEY="..."  # from https://aistudio.google.com/apikey

curl "https://generativelanguage.googleapis.com/v1beta/models/gemma-4-26b-a4b-it:generateContent" \
  -H 'Content-Type: application/json' \
  -H "x-goog-api-key: ${GEMINI_API_KEY}" \
  -X POST \
  -d '{
    "contents": [{
      "parts": [{"text": "Write a haiku about inference framework fragmentation."}]
    }]
  }'
