JUHE API Marketplace
stefanskiasan avatar
MCP Server

Together AI Image MCP Server

Enables the generation of images using Together AI's models through an MCP server, supporting customizable parameters such as model selection, image dimensions, and output directory.

7
GitHub Stars
11/23/2025
Last Updated
MCP Server Configuration
1{
2 "name": "togetherai-image",
3 "command": "node",
4 "args": [
5 "/path/to/togetherai-image-server/build/index.js"
6 ],
7 "env": {
8 "TOGETHER_API_KEY": "your-api-key-here"
9 },
10 "disabled": false,
11 "autoApprove": []
12}
JSON12 lines
  1. Home
  2. MCP Servers
  3. togetherai-image-mcp-server

README Documentation

Together AI Image Server

An MCP server for generating images using Together AI's image generation models.

Together AI Image Server MCP server

Setup

  1. Install dependencies:
npm install
  1. Build the server:
npm run build

Configuration

1. Together AI API Key

The server requires a Together AI API key. You can get one from Together AI's platform.

2. Cline Configuration

Add the server to your Cline MCP settings file:

For macOS/Linux: ~/Library/Application Support/Windsurf/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

{
  "mcpServers": {
    "togetherai-image": {
      "command": "node",
      "args": ["/path/to/togetherai-image-server/build/index.js"],
      "env": {
        "TOGETHER_API_KEY": "your-api-key-here"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

Usage in Cline

The server provides a generate_image tool with the following parameters:

{
  prompt: string;           // Required: Text description of the image to generate
  model?: string;          // Optional: Model to use (default: 'black-forest-labs/FLUX.1.1-pro')
  width?: number;          // Optional: Image width in pixels (default: 1024)
  height?: number;         // Optional: Image height in pixels (default: 768)
  steps?: number;         // Optional: Number of inference steps (default: 28)
  n?: number;             // Optional: Number of images to generate (default: 1)
  outputDir?: string;     // Optional: Directory where images will be saved (default: './output')
}

Example Usage

You can use the server in Cline like this:

Generate an image of a cat and save it to my desktop:

<use_mcp_tool>
<server_name>togeherai-image</server_name>
<tool_name>generate_image</tool_name>
<arguments>
{
  "prompt": "A cute cat sitting on a windowsill",
  "outputDir": "/Users/username/Desktop/generated-images"
}
</arguments>
</use_mcp_tool>

Output

The tool returns a JSON response containing:

  • filepath: Full path to the saved image
  • filename: Name of the saved image file
  • dimensions: Original and final dimensions of the image

Features

  • Supports Together AI's latest FLUX.1.1-pro model
  • Automatically resizes images if dimensions are below 256 pixels
  • Maintains aspect ratio during resizing
  • High-quality JPEG output (90% quality)
  • Creates output directories recursively
  • Returns detailed metadata including image dimensions

Quick Install

Quick Actions

View on GitHubView All Servers

Key Features

Model Context Protocol
Secure Communication
Real-time Updates
Open Source

Boost your projects with Wisdom Gate LLM API

Supporting GPT-5, Claude-4, DeepSeek v3, Gemini and more.

Enjoy a free trial and save 20%+ compared to official pricing.

Learn More
JUHE API Marketplace

Accelerate development, innovate faster, and transform your business with our comprehensive API ecosystem.

JUHE API VS

  • vs. RapidAPI
  • vs. API Layer
  • API Platforms 2025
  • API Marketplaces 2025
  • Best Alternatives to RapidAPI

For Developers

  • Console
  • Collections
  • Documentation
  • MCP Servers
  • Free APIs
  • Temp Mail Demo

Product

  • Browse APIs
  • Suggest an API
  • Wisdom Gate LLM
  • Global SMS Messaging
  • Temp Mail API

Company

  • What's New
  • Welcome
  • About Us
  • Contact Support
  • Terms of Service
  • Privacy Policy
Featured on Startup FameFeatured on Twelve ToolsFazier badgeJuheAPI Marketplace - Connect smarter, beyond APIs | Product Huntai tools code.marketDang.ai
Copyright © 2025 - All rights reserved