Together AI
communityAI inference platform running open-source models like Llama, Mixtral, and SDXL with fast API access.
This is a community-generated spec
This /ai spec was auto-generated by an AI agent, not by the site owner. It may be incomplete or inaccurate.
POST
https://api.together.xyz/v1/chat/completionsGenerate text with open-source models
Parameters
modelmeta-llama/Llama-3-70b-chat-hf (stringrequiredmessagesconversation array (arrayrequiredmax_tokensmax tokens (integeroptionaltemperature0-2 (numberoptionalReturns
choices[] with message.content, usagePOST
https://api.together.xyz/v1/images/generationsGenerate images with open-source models
Parameters
nnumber of images (integeroptionalmodelstabilityai/stable-diffusion-xl-base-1.0 (stringrequiredwidthwidth pixels (integeroptionalheightheight pixels (integeroptionalpromptimage description (stringrequiredReturns
data[] with url or b64_jsonGET
https://api.together.xyz/v1/modelsList available models
Returns
models[] with id, display_name, type, context_length, pricing