Together AI (gateway)
Together AI (gateway)
Route Together AI model calls through the Respan gateway to use Respan credentials, request logs, routing, fallbacks, and metadata. No TOGETHER_API_KEY is needed in application code when TogetherAI is configured in Respan.
Setup
Set environment variables
Optional:
Together AI requires bring your own key (BYOK). Add your Together AI key on the Providers page before making requests. Together AI usage cannot be paid with Respan credits. Once the key is stored in Respan, you can keep TOGETHER_API_KEY out of your application runtime.
Switch models
Change the model parameter to use 1000+ models from different providers through the same gateway.
See the full model list.
Respan parameters
Pass additional Respan parameters via extra_body for gateway features.
See Respan params & metadata for the full list.
Bring your own Together AI key
Your Together AI key is required, and Together AI bills provider usage to your account. Store the key in Respan or pass it per request as shown below. The provider ID for request-level credentials is togetherai and the credential field is api_key.