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 Friendli’s base URL and your Friendli token (API key).- Serverless Endpoints:
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
).