# Together AI Image Generation Skill for Claude Code > Skill that teaches Claude Code Together AI's image generation API. Covers FLUX and Kontext models for text-to-image, image editing, and style transfer with correct parameters. ## Install Save the content below to `.claude/skills/` or append to your `CLAUDE.md`: ## Quick Use ```bash npx skills add togethercomputer/skills ``` ## What is This Skill? This skill teaches AI coding agents how to generate and edit images using Together AI's image API. It covers FLUX models for text-to-image generation and Kontext models for image editing, style transfer, and visual transformations. **Answer-Ready**: Together AI Image Generation Skill for coding agents. Covers FLUX (text-to-image) and Kontext (image editing/style transfer) models. Correct SDK patterns, model IDs, and parameters. Part of official 12-skill collection. **Best for**: Developers building AI image generation with Together AI. **Works with**: Claude Code, Cursor, Codex CLI, Gemini CLI. ## What the Agent Learns ### Text-to-Image (FLUX) ```python from together import Together client = Together() response = client.images.generate( model="black-forest-labs/FLUX.1-schnell-Free", prompt="A sunset over mountains, photorealistic", width=1024, height=768, n=1, ) print(response.data[0].url) ``` ### Image Editing (Kontext) ```python response = client.images.generate( model="black-forest-labs/FLUX.1-Kontext-Free", prompt="Change the sky to nighttime with stars", image_url="https://example.com/photo.jpg", ) ``` ### Available Models | Model | Type | Speed | |-------|------|-------| | FLUX.1-schnell-Free | Text-to-image | Fast | | FLUX.1-dev | Text-to-image | High quality | | FLUX.1-Kontext-Free | Image editing | Fast | | FLUX.1-Kontext-Pro | Image editing | Highest quality | ## FAQ **Q: Free models available?** A: Yes, FLUX.1-schnell-Free and FLUX.1-Kontext-Free are free tier. ## Source & Thanks > Part of [togethercomputer/skills](https://github.com/togethercomputer/skills) — MIT licensed. ## 快速使用 ```bash npx skills add togethercomputer/skills ``` ## 什么是这个 Skill? 教 AI Agent 使用 Together AI 的图像生成 API,包括 FLUX(文生图)和 Kontext(图像编辑)模型。 **一句话总结**:Together AI 图像生成 Skill,FLUX 文生图 + Kontext 图像编辑,含免费模型,官方出品。 ## 来源与致谢 > [togethercomputer/skills](https://github.com/togethercomputer/skills) — MIT --- Source: https://tokrepo.com/en/workflows/84500559-5ce6-41c7-ba22-9712153bb821 Author: Skill Factory