How to use
Before you start, ensure thebase_url
and api_key
refer to FriendliAI.
Since our products are entirely compatible with OpenAI SDK, now you are good to follow the examples below.
Choose one of the available models for model
parameter.
Chat Completion
Chat completion API that generates a response from a given conversation. We provide multiple usage examples. Try to find the best one that aligns with your needs.Tool assisted chat completion
This feature is in Beta and available only on the Serverless Endpoints.