https://api.together.ai/v1. GoModel routes these endpoints to it:
Configure
Create an API key in the Together AI dashboard and set:config.yaml:
https://us-api.together.ai/v1):
TOGETHER_MODELS set, only those models are served by default and other
models return 404; set TOGETHER_MODELS_MODE=fallback to let Together’s
listing drive the list. See Models modes.
Models
GoModel reads Together’s live/models listing, including each model’s type,
display name, context length, and per-token prices. With a TOGETHER_MODELS
allowlist those details still come from that listing for the listed models,
unless the allowlist metadata call is off (ALLOWLIST_UPSTREAM_METADATA=false
or GOMODEL_OFFLINE=true). If that call fails, the metadata from the last
successful listing is kept; before any listing has succeeded there is no
upstream metadata, only what the catalog or your own config
(models[].metadata, dashboard pricing overrides) supplies. A configured
model that Together does not list takes its metadata from GoModel’s model
catalog and may have none. Image, audio, video, and
rerank models are left out because GoModel does not route those endpoints to
Together. Model IDs contain a slash; use them verbatim, or prefix the provider
name to pin the route:
openai/gpt-oss-120b is looked up
on OpenAI and fails, so send together/openai/gpt-oss-120b instead.
Behavior notes
- Responses go through chat completions. Together’s native
/responsesendpoint is a beta that rejects many serverless models, so GoModel translates Responses requests to chat completions, which every chat model supports. With a GoModel response store configured,previous_response_idchains work: the gateway replays the stored history. - Passthrough is opt-in. Add
togethertoENABLED_PASSTHROUGH_PROVIDERSto expose/p/together/..., which forwards any path under the base URL with the gateway’s Together key. Use it for Together endpoints GoModel does not route, such as images or rerank.