Together AI RL API

The RL API from Together AI — 14 operation(s) for rl.

GitHub OpenAPI
Business capability
Artificial Intelligence Management BC-610.60

Operations 15

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /rl/training-sessions List RL training sessions · List training sessions #
Ask an LLM
“Which reinforcement learning training sessions have I started?”
“Can I list only the training sessions that are still running?”
Tell an agent
List my RL training sessions.
Show training sessions with status {status}.
POST /rl/training-sessions Start a reinforcement learning training session · Create training session #
Ask an LLM
“How do I start a reinforcement learning session to fine-tune a base model?”
“Can I resume training from a checkpoint or use a LoRA adapter?”
Tell an agent
Start an RL training session on {base_model}.
Start RL training on {base_model} from checkpoint {resume_from_checkpoint_id} with LoRA config {lora_config}.
GET /rl/training-sessions/{session_id} Get a reinforcement learning training session · Get training session #
Ask an LLM
“What are the details of one of my RL training sessions?”
“Has my reinforcement learning session finished yet?”
Tell an agent
Get RL training session {session_id}.
Show the status of reinforcement learning session {session_id}.
POST /rl/training-sessions/{session_id}/stop Stop a reinforcement learning training session · Stop training session #
Ask an LLM
“How do I stop a reinforcement learning training session early?”
“Can I halt an RL session that is taking too long?”
Tell an agent destructive · confirm first
Stop RL training session {session_id}.
Halt reinforcement learning session {session_id} now.
GET /rl/training-sessions/{session_id}/operations/forward-backward/{operation_id} Check a forward-backward pass operation · Get forward-backward operation #
Ask an LLM
“Did the forward-backward pass in my RL session complete?”
“What did a specific gradient computation return?”
Tell an agent
Get forward-backward operation {operation_id} in session {session_id}.
Check the result of gradient pass {operation_id} for RL session {session_id}.
GET /rl/training-sessions/{session_id}/operations/optim-step/{operation_id} Check an optimizer step operation · Get optim-step operation #
Ask an LLM
“Has the optimizer step in my RL session finished?”
“What learning rate did a specific gradient update use?”
Tell an agent
Get optimizer step {operation_id} in session {session_id}.
Check the result of gradient update {operation_id} for RL session {session_id}.
GET /rl/training-sessions/{session_id}/operations/sample/{operation_id} Check a sample generation operation · Get sample operation #
Ask an LLM
“Did the text generation pass in my RL session finish?”
“Can I see the completions a sample operation produced?”
Tell an agent
Get sample operation {operation_id} in session {session_id}.
Check the completions from sample {operation_id} for RL session {session_id}.
POST /rl/training-sessions/{session_id}/operations/forward-backward Submit a forward-backward pass · Forward-backward pass #
Ask an LLM
“How do I compute gradients for a batch of RL training samples?”
“Can I choose the loss function used in a forward-backward pass?”
Tell an agent
Submit a forward-backward pass in session {session_id} for samples {samples} with loss {loss}.
Backpropagate gradients on {samples} using loss {loss} in RL session {session_id}.
POST /rl/training-sessions/{session_id}/operations/optim-step Submit an optimizer step · Optimizer step #
Ask an LLM
“How do I apply accumulated gradients to update my model?”
“Can I set the learning rate for one optimizer step?”
Tell an agent
Apply an optimizer step in session {session_id}.
Apply gradients to session {session_id} at learning rate {learning_rate}.
POST /rl/training-sessions/{session_id}/operations/sample Submit text generation samples · Sample #
Ask an LLM
“How do I generate text completions with log probabilities for RL training?”
“Can I generate several completions per prompt?”
Tell an agent
Generate text completions for prompts {prompts} in session {session_id}.
Sample {num_samples} completions per prompt {prompts} in RL session {session_id}.
POST /rl/training-sessions/{session_id}/operations/inference-checkpoint Save an inference checkpoint · Create inference checkpoint #
Ask an LLM
“How do I save my RL adapter so I can run inference on it?”
“Can I upload the trained LoRA adapter to object storage?”
Tell an agent
Save an inference checkpoint in session {session_id}.
Upload the trained adapter from RL session {session_id} as an inference checkpoint.
GET /rl/training-sessions/{session_id}/operations/inference-checkpoint/{operation_id} Check an inference checkpoint operation · Get inference checkpoint operation #
Ask an LLM
“Has my inference checkpoint finished saving?”
“Where is the uploaded adapter stored?”
Tell an agent
Get inference checkpoint operation {operation_id} in session {session_id}.
Check the upload status of inference checkpoint {operation_id} for RL session {session_id}.
POST /rl/training-sessions/{session_id}/operations/training-checkpoint Save the full training state · Save training checkpoint #
Ask an LLM
“How do I save the full training state including optimizer and step?”
“Can I checkpoint everything so I can resume training later?”
Tell an agent
Save the full training state in session {session_id}.
Checkpoint the adapter, optimizer and step of RL session {session_id}.
GET /rl/training-sessions/{session_id}/operations/training-checkpoint/{operation_id} Check a training state save operation · Get save training checkpoint operation #
Ask an LLM
“Has my full training state checkpoint finished?”
“What did saving the training state return?”
Tell an agent
Get training checkpoint operation {operation_id} in session {session_id}.
Check the result of saving the full state in RL session {session_id}, operation {operation_id}.
GET /rl/checkpoints/{id}/download Download an inference checkpoint · Download checkpoint #
Ask an LLM
“How do I download the model files of an inference checkpoint?”
“Can I fetch a training checkpoint as a file to use elsewhere?”
Tell an agent
Download inference checkpoint {id} variant {variant}.
Get presigned URLs to download the model files of checkpoint {id} ({variant}).

Documentation

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/together-ai:together-ai-rl-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

together-ai-rl-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Together RL API
  description: The Together REST API. Please see https://docs.together.ai for more details.
  version: 2.0.0
  termsOfService: https://www.together.ai/terms-of-service
  contact:
    name: Together Support
    url: https://www.together.ai/contact
  license:
    name: MIT
    url: https://github.com/togethercomputer/openapi/blob/main/LICENSE
servers:
- url: https://api.together.ai/v1
security:
- bearerAuth: []
tags:


# --- truncated at 32 KB (41 KB total) ---
# Full source: https://artifacts.apis.io/together-ai/openapi/together-ai-rl-api-openapi.yml