πŸ’¬Chat Completions

Chat with any AI model instantly, perfect for e-sex (If you're into that of course).


Models can be found here.


import requests  

# Set your API key here to authenticate
headers = {"Authorization": "Bearer shard-xxx"}  

# Set the body for the request
data = {
    "messages": [
        {"role": "user", "content": 'Hi!'}, # Prompt goes here
    ],
    "model": "gpt-3.5-turbo" # Model goes here
}    

# URL for posting requests.
url = "https://api.shard-ai.xyz/v1/chat/completions"  

# Send the request to request a chat response
response = requests.post(url, headers=headers)

# Print the full response!
print(response.json())

# Print the AI's response!
print(response.json()['choices'][0]['message']['content'])

Last updated