Loading...
Loading...
Generate text content using Google Gemini models via scripts/. Use for text generation, multimodal prompts with images, thinking mode for complex reasoning, JSON-formatted outputs, and Google Search grounding for real-time information. Triggers on "generate with gemini", "use gemini for text", "AI text generation", "multimodal prompt", "gemini thinking mode", "grounded response".
npx skill4agent add akrindev/google-studio-skills gemini-text| Parameter | Description | Example |
|---|---|---|
| Text prompt (required) | |
| Model to use | |
| System instruction | |
| Enable thinking mode | Flag |
| Force JSON output | Flag |
| Enable Google Search | Flag |
| Image for multimodal | |
| Sampling 0.0-2.0 | |
| Output limit | |
python scripts/generate.py "Explain quantum computing in simple terms"gemini-3-flash-previewpython scripts/generate.py "How do I read a file in Python?" --system "You are a helpful coding assistant"python scripts/generate.py "Analyze the ethical implications of AI in healthcare" --thinkingpython scripts/generate.py "Generate a user profile object with name, email, and preferences" --jsonpython scripts/generate.py "Who won the latest Super Bowl?" --groundingpython scripts/generate.py "Describe what's in this image in detail" --image photo.png# 1. Create batch requests (gemini-batch skill)
# 2. Generate content
python scripts/generate.py "Create a 500-word blog post about sustainable energy"
# 3. Convert to audio (gemini-tts skill)| Model | Speed | Intelligence | Context | Best For |
|---|---|---|---|---|
| Fast | High | 1M | General use, agentic tasks (default) |
| Medium | Highest | 1M | Complex reasoning, research |
| Fast | Medium | 1M | Stable, reliable generation |
| Slow | High | 1M | Code, math, STEM tasks |
| Value | Creativity | Best For |
|---|---|---|
| 0.0-0.3 | Low | Code, facts, formal writing |
| 0.4-0.7 | Medium | Balanced output |
| 0.8-1.0 | High | Creative writing, brainstorming |
| 1.0-2.0 | Very High | Highly creative, varied outputs |
| Value | Description |
|---|---|
| 0 | Disabled (default behavior) |
| 512-1024 | Standard reasoning |
| 2048+ | Deep analysis (slower, more tokens) |
--jsonimport json; data = json.loads(output)--groundingpip install google-genaiexport GOOGLE_API_KEY="your-key-here"
# or
export GEMINI_API_KEY="your-key-here"gemini-3-flash-preview--max-tokens# Basic
python scripts/generate.py "Your prompt"
# Persona
python scripts/generate.py "Prompt" --system "You are X"
# Thinking
python scripts/generate.py "Complex task" --thinking
# JSON
python scripts/generate.py "Generate JSON" --json
# Search
python scripts/generate.py "Current event" --grounding
# Multimodal
python scripts/generate.py "Describe this" --image photo.pngreferences/models.md