Cette page est affichée en anglais. Une traduction française est en cours.
SkillsApr 8, 2026·1 min de lecture

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.

Prêt pour agents

Installation agent prête

Cet actif peut être installé après choix du runtime, vérification du plan et exécution de la commande adaptée.

Native · 98/100Policy : autoriser
Surface agent
Tout agent MCP/CLI
Type
Skill
Installation
Single
Confiance
Confiance : Community
Point d'entrée
Together AI Image Generation Skill for Claude Code
Commande d'installation directe
npx -y tokrepo@latest install 84500559-5ce6-41c7-ba22-9712153bb821 --target codex

À exécuter après confirmation du plan en dry-run.

TL;DR
Claude Code skill for Together AI's image generation API with FLUX and Kontext models.
§01

What it is

This skill teaches Claude Code how to use Together AI's image generation API. It covers FLUX and Kontext models for text-to-image generation, image editing, and style transfer workflows. With this skill active, Claude Code can generate correct API calls with proper parameters for each model variant.

Developers who want to integrate AI image generation into their projects through Claude Code will get accurate, working API calls instead of guessing at parameter names and model identifiers.

§02

How it saves time or tokens

Together AI's image API has model-specific parameters that differ between FLUX and Kontext variants. Without this skill, you would need to reference documentation for each model and correct the agent's mistakes. The skill encodes the correct parameters, model names, and request formats, reducing prompt length and eliminating trial-and-error cycles.

The skill covers an estimated 2,600 tokens of domain knowledge that would otherwise need to be included in your prompts.

§03

How to use

  1. Add the Together AI Image Generation skill to your Claude Code configuration.
  2. Prompt Claude Code to generate images using Together AI's API.
  3. Specify the model variant (FLUX or Kontext) and the task (text-to-image, editing, or style transfer).
§04

Example

import requests

url = 'https://api.together.xyz/v1/images/generations'
headers = {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
}
payload = {
    'model': 'black-forest-labs/FLUX.1-schnell',
    'prompt': 'A serene mountain landscape at sunset, photorealistic',
    'width': 1024,
    'height': 768,
    'n': 1
}
response = requests.post(url, headers=headers, json=payload)
image_url = response.json()['data'][0]['url']
print(image_url)
§05

Related on TokRepo

§06

Common pitfalls

  • Using the wrong model identifier string. Together AI model names include the organization prefix (e.g., 'black-forest-labs/FLUX.1-schnell') and must be exact.
  • Setting image dimensions that the model does not support. Each model has specific resolution constraints.
  • Forgetting to handle the asynchronous response for larger images. Some generation requests return a job ID that requires polling.

Questions fréquentes

What models does this skill cover?+

The skill covers Together AI's FLUX models (including FLUX.1-schnell and FLUX.1-dev) and Kontext models. Each model variant has different capabilities for text-to-image, image editing, and style transfer.

Do I need a Together AI account?+

Yes. You need a Together AI API key to make image generation requests. Sign up at together.ai to get an API key. The skill teaches Claude Code how to use the API correctly but does not provide authentication.

Can this skill generate video?+

No. This skill is specifically for image generation. Together AI has a separate video generation API covered by a different skill on TokRepo.

What image formats are returned?+

Together AI's image generation API typically returns PNG images via URL or base64 encoding. The response format depends on the request parameters you specify.

Is there a free tier for Together AI image generation?+

Together AI offers free credits for new accounts. Beyond that, image generation is billed per image based on the model and resolution used. Check Together AI's pricing page for current rates.

Sources citées (3)
🙏

Source et remerciements

Part of togethercomputer/skills — MIT licensed.

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires