Running real inference at scale? Apply for our limited $10K credit program — Find out more
Learn how to get started with Friendli Dedicated Endpoints in this step-by-step guide. Create an account, select your project, choose a model you wish to serve, deploy your endpoint, and seamlessly generate text, code, and more with ease.
import os from openai import OpenAI client = OpenAI( api_key=os.getenv("FRIENDLI_TOKEN"), base_url="https://api.friendli.ai/dedicated/v1", ) chat_completion = client.chat.completions.create( model="YOUR_ENDPOINT_ID", messages=[ { "role": "user", "content": "Tell me how to make a delicious pancake" } ] ) print(chat_completion.choices[0].message.content)
Was this page helpful?