### Make a Chat Completion Request via cURL Source: https://crof.ai Send a POST request to the Crof.ai API to get a chat completion. Ensure you replace 'MODEL-FROM-LIST' and 'YOUR_API_KEY' with actual values. ```curl curl -X POST https://crof.ai/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '{ "model": "MODEL-FROM-LIST", "messages": [{"role": "user","content": "Hello World"}] }' ``` -------------------------------- ### Initialize OpenAI Client with Crof.ai Source: https://crof.ai Configure the OpenAI client to use Crof.ai's API endpoint and provide your API key. ```python from openai import OpenAI client = OpenAI( base_url="https://crof.ai/v1", api_key="api-key-here" ) response = client.chat.completions.c ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.