gemini-image
Original:🇺🇸 English
Translated
Generate images using AI when user wants to create pictures, draw, paint, or generate artwork. Supports text-to-image and image-to-image generation.
12installs
Added on
NPX Install
npx skill4agent add bahayonghang/my-claude-code-settings gemini-imageTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Gemini Image Generation
Use this skill when user expresses intent to generate images (e.g., "draw a...", "generate an image...", "create a picture...").
Steps
1. Read Configuration
- Read to get API Key
config/secrets.md
2. Construct Prompt
| Mode | Prompt Format | Example |
|---|---|---|
| Text-to-Image | | |
| Image-to-Image | | |
| Multi-Image Reference | | |
For image-to-image, upload local images first. See .
tips/image-upload.md3. Call API
bash
curl -s -X POST "https://api.apicore.ai/v1/images/generations" \
-H "Authorization: Bearer API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "model_name",
"prompt": "prompt_text",
"size": "aspect_ratio",
"n": 1
}'4. Return Result
Extract from response and return to user.
data[0].urlReference Docs
- - Image upload methods
tips/image-upload.md - - Chinese text handling tips
tips/chinese-text.md