/babel-fish:imagefrom babel-fish
Generates and edits AI images using GPT Image 2 (via Codex CLI), Gemini, and FLUX. Supports text-to-image, style transfer, and logo generation.
Ships in babel-fish. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Translating your thoughts into pictures. The Babel Fish handles all languages, including visual ones.
| Backend | When to Use | Key |
|---|---|---|
GPT Image 2 via Codex CLI (gpt-image-2) | Default — strong prompt adherence, text in images, no API key | ChatGPT OAuth (codex login) |
Gemini (gemini-3-pro-image-preview) | Style transfer with reference images, multi-turn iteration, 4K | GEMINI_API_KEY |
FLUX via OpenRouter (black-forest-labs/flux.2-pro) | Artistic, stylised work | ~/.claude/secrets/openrouter.json |
Before generating, ask via AskUserQuestion which backend to use — list the three above as options with GPT Image 2 first (default). Skip the question only when:
gpt-image-1.5Announce the chosen backend in one line before running so the user has clarity.
Requires: codex-cli >= 0.124.0-alpha.2 for GPT Image 2. Install: npm install -g @openai/[email protected].
Gather before generating. Ask if unclear:
1:1 (default), 16:9, 9:16, 4:3, 3:21K (default/fast), 2K (balanced), 4K (quality)./generated_image.jpg)Runs through codex's built-in image_gen tool — uses your ChatGPT OAuth, no API key, no per-image billing (counts against your ChatGPT plan limits).
plugins/babel-fish/skills/image/scripts/generate_image_codex.sh \
--output ./output.png \
--size 1024x1024 \
--quality high \
"your prompt here"
Constraints:
auto or WxH — max edge ≤ 3840px, edges multiples of 16, 655k–8.3M total pixels.low | medium | high | auto.background=transparent — use Gemini or ask codex for gpt-image-1.5 explicitly if true transparency is required.Equivalent raw invocation (skip the wrapper for multi-variant riffs):
codex exec --skip-git-repo-check --sandbox workspace-write --full-auto \
"Use your built-in image_gen tool to generate: <PROMPT>. After it returns, copy the file to <OUT_PATH> and print the path."
import os
from google import genai
from google.genai import types
client = genai.Client(api_key=os.environ["GEMINI_API_KEY"])
response = client.models.generate_content(
model="gemini-3-pro-image-preview",
contents=["Your refined prompt here"],
config=types.GenerateContentConfig(
response_modalities=["TEXT", "IMAGE"],
image_config=types.ImageConfig(
aspect_ratio="16:9", # adjust per request
image_size="1K", # 1K | 2K | 4K
),
),
)
for part in response.parts:
if part.text:
print(part.text)
elif part.inline_data:
img = part.as_image()
img.save("output.jpg") # Gemini returns JPEG — always use .jpg
Critical: Gemini returns JPEG by default. Use .jpg extension. If PNG is needed, pass format="PNG" explicitly to img.save().
curl https://openrouter.ai/api/v1/images/generations \
-H "Authorization: Bearer $(cat ~/.claude/secrets/openrouter.json | python3 -c 'import json,sys; print(json.load(sys.stdin)["api_key"])')" \
-H "Content-Type: application/json" \
-d '{"model": "black-forest-labs/flux.2-pro", "prompt": "your prompt", "n": 1}' \
| python3 -c 'import json,sys,base64,urllib.request; d=json.load(sys.stdin); urllib.request.urlretrieve(d["data"][0]["url"], "output.png")'
Show the output path. Ask if it matches the intent and whether style, composition, or content needs adjusting.
If refinement is needed, use Gemini's multi-turn chat for continuity:
chat = client.chats.create(
model="gemini-3-pro-image-preview",
config=types.GenerateContentConfig(response_modalities=["TEXT", "IMAGE"])
)
response = chat.send_message("Create a logo for 'Acme'")
# save, then refine:
response = chat.send_message("Make the font bolder and add a blue gradient")
Adjust the prompt and regenerate until approved.
Save to the requested output path. Report:
What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/audioGenerate audio content — text-to-speech, podcasts, voice cloning, sound effects, speech-to-speech, dubbing, and audio isolation. Currently powered by ElevenLabs. Works with both the Python SDK and the ElevenLabs CLI. Includes ready-to-run generator scripts that Claude writes to a temp file and executes directly. Triggers: audio, elevenlabs, text-to-speech, TTS, podcast, voice, voiceover, narration, voice clone, sound effects, dubbing, speech-to-speech, audio isolation.
/linkedin-carouselTurn a set of screenshots or images into a LinkedIn document-post PDF (carousel) with per-page background matching so padding disappears into the source. Triggers: linkedin carousel, carousel pdf, document post, slide pdf, screenshots to pdf, linkedin pdf, carousel from images.
/npx claudepluginhub ondrej-svec/heart-of-gold-toolkit --plugin babel-fishOther plugins' skills for the same job