Create an API Key
1
Create a Friendli Suite Account
If you haven’t already, sign up for an account.
2
Sign In
Then, sign in. Friendli Suite opens your dashboard.
3
Create a FriendliAI API Key
- In the left sidebar, click Settings. Then, click API Keys.
- In the upper-right corner, click Create API Key.
- Click Copy.
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:
Use Popular Models and Your Favorite Agent or SDK
You’re ready to start building with your favorite coding agent or SDK to connect to fast, cost-efficient, and reliable open-weight models.Models
Use popular FriendliAI models.
Agents
Use your favorite agent with FriendliAI.
SDKs
Use your favorite SDK with FriendliAI.