Send a Request
1
Set Up Your API Key
In your terminal, run the following command:Replace
<FRIENDLIAI_API_KEY> with your API key.2
Install the OpenAI SDK
In your terminal, run the following command:
3
Send Your Request to FriendliAI
Run the following code:
FriendliAI returns a response, similar to the following: