In short.
This quickstart teaches TypeScript, React and Next.js developers to call Together AI models, with special handling required for results in a fixed data format. It demonstrates installation, text generation, streaming, tool execution, structured output and image generation. The page warns that generateObject fails with this provider and recommends generateText with Output.object instead. Its weather tool returns fixed example data, and two examples require zod beyond the initial installation command. Prices, package versions and licensing terms are not supplied. Nothing was executed, so runtime compatibility and example results remain unverified.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage is limited to the complete selected page at [https://docs.together.ai/docs/using-together-with-vercels-ai-sdk.md], including its documentation-index pointer, installation instructions, all code examples, structured-output warning, image-size guidance and Mintlify hosting notice. The documentation index, linked Together pages, AI SDK references and Zod website are excluded. No code was executed, packages installed, API requests made or outputs inspected; runtime behavior, compatibility, model access and results remain unverified.
The overview
identity
Vercel AI SDK quickstart is a Together AI documentation guide explaining how the @ai-sdk/togetherai provider connects the TypeScript AI SDK to Together models. The original page is [https://docs.together.ai/docs/using-together-with-vercels-ai-sdk.md].
The resource is an integration tutorial. Its examples use moonshotai/Kimi-K3 for text-related tasks and black-forest-labs/FLUX.2-dev for image generation.
assessment
The guide is useful for developers who want compact examples of several Together features through familiar AI SDK functions. Its most consequential detail is the documented structured-output limitation and the alternative call pattern provided alongside it.
It supplies building blocks rather than a complete application. The examples do not establish production reliability, output quality or compatibility with a particular installed package version; none were executed.
users
The stated audience is developers working in TypeScript, React or Next.js. Beginners will need enough JavaScript or TypeScript knowledge to understand imports, asynchronous functions, environment variables and package installation.
Experienced developers can use the page to identify provider-specific request options, tool execution and structured-output behavior. Although React and Next.js are named, the snippets show console-oriented calls rather than a complete framework route or user interface.
capabilities
The page demonstrates completed text responses with generateText, incremental text with streamText, tools declared using tool and Zod, and structured results requested through Output.object. These are documented examples, not verified execution results.
For images, it demonstrates generateImage with the provider’s .image() factory, an optional size and a Together-specific steps parameter. The page says image data is base64-encoded by default and that supported dimensions depend on the chosen model.
Using it
requirements
The examples require the ai and @ai-sdk/togetherai packages and a Together API key supplied through TOGETHER_API_KEY. Tool use and structured output also import zod, which is absent from the initial installation command.
The snippets assume a runtime providing process.env; the streaming example also writes to process.stdout. Required runtime and package versions, account entitlements, quotas and model access requirements are not specified.
mechanism
createTogetherAI creates a provider configured with the API key. Passing a model identifier to that provider supplies the model used by an AI SDK function. Settings inside providerOptions.togetherai pass through as Together API request-body fields, allowing parameters outside the SDK’s common interface.
For tool calls, a Zod schema describes the expected input and an execute function implements the operation. The SDK invokes that function and returns its result to the model. The example uses stopWhen with stepCountIs(3) to allow follow-up processing after the tool result.
setup
Install ai and @ai-sdk/togetherai using the displayed npm, yarn or pnpm command. Configure TOGETHER_API_KEY, import createTogetherAI and the desired SDK function, then construct the provider and select a model.
Ensure zod is installed before using either schema-based example. The API-key expression falls back to an empty string when the environment variable is missing; the snippets contain no explicit credential validation or error handling. No complete project configuration or deployment procedure is supplied.
example
The tool example asks for the current weather in Paris. Its getWeather function accepts a city string but always returns temperature 18 and condition cloudy; it does not retrieve live weather, and no temperature unit is specified. This illustrates tool wiring rather than a functioning weather service.
The structured-output example requests an invented vegetarian dish with name and cuisine fields. The image example requests a quetzal in flight; its second variant specifies 512x512 and steps: 40. No generated text, object or image results are included.
Assessment & evidence
limitations
The page explicitly warns that the Together provider does not support the AI SDK’s JSON schema response format and that generateObject fails with a schema validation error. Its prescribed approach is generateText with Output.object and a Zod schema. This behavior was not independently verified.
Image dimensions vary by model. Although the page states a default of 1024x1024 and lists common sizes, those statements do not establish every model’s supported dimensions.
The snippets omit package-version pins, error handling, retries and rate-limit handling. They provide neither benchmarks nor an end-to-end application demonstrating deployment behavior.
reasoning
The guide’s practical appeal is the combination of standard AI SDK functions with a Together-specific provider and request options. It is a reasonable starting point when that integration matches an existing TypeScript application; the page provides insufficient evidence to judge it against competing integrations.
For model reasoning, the page states that Kimi K3 reasons by default. Its text examples explicitly disable this through reasoning: { enabled: false } inside providerOptions.togetherai. No comparison establishes how that setting changes quality, speed or cost.
alternatives
Within the guide, generateText suits a completed response, while streamText exposes successive text chunks. For schema-shaped results, the documented option is generateText with Output.object; generateObject is explicitly identified as incompatible with this provider.
The page offers no comparative assessment of other SDKs, providers or direct API integration. It points to separate function-calling and structured-output guides for more detail, but their contents are outside the available evidence.
evidence
The evidence consists of the complete Together AI documentation page at [https://docs.together.ai/docs/using-together-with-vercels-ai-sdk.md], including its installation commands, code examples, compatibility warning and image-size guidance.
The page contains no execution logs, measured results or generated outputs. Its documentation index and linked reference pages supply addresses for further reading, but their contents are not evidence here. The Mintlify notice identifies the documentation hosting platform; it does not establish SDK behavior.
Access & freshness
costs
The page supplies no token prices, image prices, subscription charges, free allowances or example-request costs. The cost of following the guide is unknown from this evidence.
It also provides no measurements connecting model choice, reasoning settings, image dimensions or image steps to cost or latency. No usage or spending was measured.
rights
The page contains no explicit licence or redistribution grant for its prose or code snippets. It does not establish the licensing terms of ai, @ai-sdk/togetherai, zod or either named model.
Commercial-use permissions, rights in generated content and data-handling terms are not explained. Those permissions and obligations remain unknown from this page.
freshness
The available copy was captured on 23 November 2026 at 06:07:13 UTC. The page provides no publication date, last-updated date or pinned package versions; the capture date does not establish when its instructions were last revised.
Current availability of moonshotai/Kimi-K3 and black-forest-labs/FLUX.2-dev, and compatibility with any particular SDK release, remain unverified.
actions
Begin with the minimal text example after installing the packages and configuring the API key. Add zod when moving to tool calls or structured output, and follow the page’s generateText plus Output.object approach for structured results.
Replace the fixed weather response with an actual data source before using that example for weather information. Before committing to an application, confirm model availability, package compatibility, supported image dimensions, pricing and applicable terms. The page links to model details at [https://docs.together.ai/docs/serverless/models.md#image-models], whose contents were not assessed.
