JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 29
  • Score
    100M100P100Q72301F
  • License MIT

Batch processing for Google Gemini AI

Package Exports

  • gemini-batch
  • gemini-batch/package.json

Readme

Gemini-Batch

A TypeScript CLI tool for managing batch processing jobs with Google Gemini API.

Use cases:

  • Batch content tagging and classification
  • Large-scale file translation
  • Bulk text analysis and processing

Learn more about Gemini Batch Mode.

Installation

npm install -g gemini-batch

Quick Start

  1. Configure your API key:
gemini-batch config set-key your-gemini-key

# or
export GEMINI_API_KEY="your-gemini-key"

# or
export GOOGLE_GENERATIVE_AI_API_KEY="your-gemini-key"
  1. Create a input file:
gemini-batch file create \
  --prompt "translate this file to Chinese" \
  --input "blog/*.md" \
  --output batch.jsonl
  1. Submit batch jobs:
gemini-batch job submit batch.jsonl
  1. Check job status and download results:
gemini-batch job list
gemini-batch job get your-job-id
gemini-batch job download your-job-id

For detailed usage, run gemini-batch --help or gemini-batch <command> --help.

License

MIT