A Python library for accessing various free AI providers, inspired by g4f.
Project description
Free AI SDK
A Python library for accessing various free AI providers, inspired by g4f.
Installation
pip install free-ai-sdk
Usage
from free_ai_sdk import Client
client = Client()
# Use Pollinations AI
response = client.chat_completion(
provider="pollinations",
model="gpt-4",
messages=[{"role": "user", "content": "Hello!"}]
)
print(response)
# Use Puter
# response = client.chat_completion(
# provider="puter",
# model="gpt-4o",
# messages=[{"role": "user", "content": "Hello!"}]
# )
# print(response)
Supported Providers
- Pollinations AI
- Puter (Beta)
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
free_ai_sdk-0.1.0.tar.gz
(3.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file free_ai_sdk-0.1.0.tar.gz.
File metadata
- Download URL: free_ai_sdk-0.1.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Hatch/1.16.3 cpython/3.11.0 HTTPX/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4ca640499e8a08e3cd0642016c4a3814f86e801d487853b9297b8fbd7f09363
|
|
| MD5 |
1f5fc0ae5819d163a89efbd9c9b1a26f
|
|
| BLAKE2b-256 |
febc011b343ab2931a0eda9ebe7636738be728e01b870a309bb611d1ef1d6fc7
|
File details
Details for the file free_ai_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: free_ai_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Hatch/1.16.3 cpython/3.11.0 HTTPX/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
821d8606aa89fb9715e404516b846a3e366f45ff9894bdf0b4f67adb47993206
|
|
| MD5 |
4007f84eb8bd488229ab45a74613e27b
|
|
| BLAKE2b-256 |
f51383f221e6808e6cff7100d615c7dce0182482c2ab72857902e57ec1149076
|