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)
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)
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.