Existing applications can migrate with minimal effort, still using the official OpenAI SDKs.
Specify the Base URL and API Key
Initialize the OpenAI client using FriendliAI’s base URL and your Personal API key.- Model APIs:
https://api.friendli.ai/serverless/v1. - Dedicated Endpoints:
https://api.friendli.ai/dedicated/v1. - Container: your own container’s URL (e.g.,
http://HOST:PORT/v1).