Together AI MCP by usefulapi

v1.41.1
io.usefulapi/together-ai Checked 3 days ago Published 2 days ago

Run Together AI chat, embeddings and images; manage fine-tunes, batches and endpoints.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

together_whoami Who am I

Identify the API key: its organization, project and project slug. The project slug forms the `<project_slug>/<endpoint_slug>` model name for dedicated-endpoint inference. A cheap way to confirm the key works. Together: GET /whoami.

together_list_models List models

List Together's models with type (chat, language, code, image, embedding, moderation, rerank), context length, organization, license and per-token pricing. Together: GET /models.

ParameterTypeDescription
dedicatedbooleanOnly return models that can run on dedicated endpoints.

together_list_files List files

List uploaded data files (fine-tune, eval and batch-api inputs, plus job outputs) with size, type, purpose and validation status. Together: GET /files.

together_get_file Get one file

Fetch one file's metadata, including its processing_status and validation_report (why a fine-tune training file was rejected). Together: GET /files/{id}.

ParameterTypeDescription
file_id *stringThe file id, e.g. file-abc123.

together_list_fine_tunes List fine-tuning jobs

List fine-tuning jobs with status, base model, output model name and training settings. Together: GET /fine-tunes.

together_get_fine_tune Get one fine-tuning job

Fetch one fine-tuning job: status, progress, hyperparameters, token counts, cost and the output model name. Together: GET /fine-tunes/{id}.

ParameterTypeDescription
fine_tune_id *stringThe job id, e.g. ft-abc123.

together_list_fine_tune_events List a fine-tuning job's events

List the event log of one fine-tuning job (queued, started, checkpoint saved, epoch completed, errors). The first place to look when a job failed. Together: GET /fine-tunes/{id}/events.

ParameterTypeDescription
fine_tune_id *stringThe job id, e.g. ft-abc123.

together_list_batches List batch jobs

List batch inference jobs with status, progress, model and input/output/error file ids. Together: GET /batches.

together_get_batch Get one batch job

Fetch one batch job: status (VALIDATING, IN_PROGRESS, COMPLETED, FAILED, EXPIRED, CANCELLED), progress, and the output_file_id / error_file_id once done. Together: GET /batches/{id}.

ParameterTypeDescription
batch_id *stringThe batch job id.

together_list_endpoints List endpoints

List endpoints with model, owner and state (PENDING, STARTING, STARTED, STOPPING, STOPPED, ERROR). Use mine=true and type=dedicated to see what is running on your account and billing by the minute. Together: GET /endpoints.

ParameterTypeDescription
minebooleanOnly endpoints owned by the caller.
typestringFilter by endpoint type.
usage_typestringFilter by usage type.

together_get_endpoint Get one endpoint

Fetch one dedicated endpoint: state, model, hardware, autoscaling bounds and display name. Together: GET /endpoints/{endpointId}.

ParameterTypeDescription
endpoint_id *stringThe endpoint id, e.g. endpoint-d23901de-....

together_list_hardware List hardware

List hardware configurations for dedicated endpoints with GPU type/count/memory and price in cents per minute. Pass a model to get only compatible configurations with live availability. Together: GET /hardware.

ParameterTypeDescription
modelstringOnly hardware compatible with this model, with availability.

together_list_evaluations List evaluation jobs

List LLM-as-a-judge evaluation jobs (classify, score, compare) with status, parameters and results once completed. Together: GET /evaluation.

ParameterTypeDescription
limitintegerMaximum number of jobs to return.
statusstringFilter by status: pending, queued, running, completed, error, user_error.

together_chat_completion Chat completion

Run a chat completion on a Together model (billed per token). Non-streaming. For a dedicated endpoint pass its `<project_slug>/<endpoint_slug>` as the model. Together: POST /chat/completions.

ParameterTypeDescription
messages *arrayThe conversation so far.
model *stringModel name, e.g. meta-llama/Llama-3.3-70B-Instruct-Turbo.
max_tokensintegerMaximum tokens to generate.
reasoning_effortstringReasoning effort for reasoning models that support it.
repetition_penaltynumber
seedintegerSeed for reproducible sampling.
stoparrayStop sequences.
temperaturenumber
top_kinteger
top_pnumber

together_create_embeddings Create embeddings

Generate vector embeddings for one or more texts (billed per token). Together: POST /embeddings.

ParameterTypeDescription
input *A text, or a list of texts, to embed.
model *stringEmbedding model, e.g. BAAI/bge-large-en-v1.5.

together_generate_image Generate an image

Generate images from a prompt (billed per image/megapixel). Returns image URLs by default rather than base64, to keep responses small. Together: POST /images/generations.

ParameterTypeDescription
model *stringImage model, e.g. black-forest-labs/FLUX.1-schnell.
prompt *stringWhat to draw.
guidance_scalenumberPrompt adherence; higher is more literal.
heightintegerHeight in pixels.
image_urlstringInput image URL, for models that support editing.
nintegerNumber of images.
negative_promptstringWhat to steer away from.
output_formatstring
response_formatstringurl (default here) or base64. base64 can be very large.
seedinteger
stepsintegerNumber of generation steps.
widthintegerWidth in pixels.

together_create_fine_tune Create a fine-tuning job

Start a fine-tuning job on an uploaded training file (billed per token processed). Stop it with together_cancel_fine_tune. Together: POST /fine-tunes.

ParameterTypeDescription
model *stringBase model to fine-tune.
training_file *stringFile id of an uploaded training file (purpose fine-tune).
batch_sizeBatch size, or 'max' (the default).
from_checkpointstringContinue from a previous job: <job_id>, <output_model_name>, optionally with :<step>.
learning_ratenumber
max_seq_lengthinteger
n_checkpointsintegerIntermediate checkpoints to save.
n_epochsintegerPasses over the training data.
n_evalsintegerEvaluations on the validation set during training.
suffixstringSuffix for the fine-tuned model's name (max 64 chars).
training_methodSupervised fine-tuning (sft, the default) or preference tuning (dpo).
training_typeFull fine-tune or LoRA. Together defaults to LoRA when omitted.
validation_filestringFile id of an uploaded validation file.
warmup_rationumber

together_cancel_fine_tune Cancel a fine-tuning job

Cancel a running fine-tuning job. Cannot be resumed, but a new job can continue from its last checkpoint via from_checkpoint. Together: POST /fine-tunes/{id}/cancel.

ParameterTypeDescription
fine_tune_id *stringThe job id, e.g. ft-abc123.

together_create_batch Create a batch job

Start an asynchronous batch job over an uploaded JSONL input file (purpose batch-api), at a discount to real-time inference. Together: POST /batches.

ParameterTypeDescription
endpoint *stringThe API each line of the input file is sent to.
input_file_id *stringFile id of the uploaded JSONL request file.
completion_windowstringTime window for completion, e.g. 24h.
model_idstringModel to process the requests with.
priorityintegerProcessing priority.

together_cancel_batch Cancel a batch job

Cancel a batch job that has not finished. Together: POST /batches/{id}/cancel.

ParameterTypeDescription
batch_id *stringThe batch job id.

together_create_endpoint Create a dedicated endpoint

Deploy a model on dedicated GPUs. The endpoint STARTS AUTOMATICALLY and bills per minute of uptime until stopped — set inactive_timeout to auto-stop it, and use together_list_hardware for valid hardware ids. Together: POST /endpoints.

ParameterTypeDescription
autoscaling *objectReplica bounds for autoscaling.
hardware *stringHardware id, e.g. 1x_nvidia_a100_80gb_sxm.
model *stringThe model to deploy.
availability_zonestringAvailability zone, e.g. us-central-4b.
disable_speculative_decodingboolean
display_namestringHuman-readable name.
inactive_timeoutintegerMinutes of inactivity before auto-stop; 0 disables it.
statestringInitial state. Pass STOPPED to create without starting (and without billing).

together_start_endpoint Start a dedicated endpoint

Start a stopped dedicated endpoint. It bills per minute of uptime until stopped. Reversible with together_stop_endpoint. Together: PATCH /endpoints/{endpointId} with state=STARTED.

ParameterTypeDescription
endpoint_id *stringThe endpoint id.

together_stop_endpoint Stop a dedicated endpoint

Stop a running dedicated endpoint, which stops its per-minute billing. Requests to it fail until it is started again. Together: PATCH /endpoints/{endpointId} with state=STOPPED.

ParameterTypeDescription
endpoint_id *stringThe endpoint id.