Skip to content

togetherai

@ai-sdk/togetherai

AIProviders.togetherAI

  • Language
  • Completion
  • Embedding
  • Image
  • Reranking

TogetherAI mirrors upstream TogetherAI 3.0.45: TOGETHER_API_KEY with deprecated TOGETHER_AI_API_KEY fallback, versioned user-agent suffix, language/completion/embedding/image/reranking factories, chat and completion stream usage enabled by default, image n request mapping despite upstream maxImagesPerCall = 1, loose image provider options, reranking rankFields, and upstream-focused image/reranking response validation, and DeepSeek V4 Flash native JSON Schema structured-output routing without enabling it for unrelated models. ProviderV4, ESM-only packaging, Node 22 engines, and workflow serialization helpers are JS-only upstream concerns.

Factory argument requirements are defined by the public Swift factory signatures. Use Public symbols when you need the exact initializer or factory declaration.

Return to the provider matrix.