Together

Run Together models with streaming, image input, reasoning, structured output, web search, and retry configuration.

Together retires serverless model IDs on a rolling schedule. The linked cookbook examples may reference retired IDs. Before running an example, choose a current model from the serverless catalog and verify the capabilities required by that example.

ExampleDescription
Together BasicRun a current Together chat model with sync, streaming, and async calls.
Together Image AgentDescribe an image from a URL with a current Together vision model.
Together Image Agent BytesSend local image bytes to a current Together vision model and stream the description.
Together Image Agent With MemoryKeep image context across turns with a current Together vision model and an in-memory database.
RetryReview retry settings and why invalid model IDs cannot reliably exercise the retry path.
Together Structured OutputRequest JSON through Together and validate a MovieScript with Pydantic.
Tool UseGive a function-calling Together model web search tools and run it sync, streaming, and async.
Reasoning alternativesCurrent alternatives for the retired Together Reasoning Agent example.