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
Metadata
Release files for free-ai-sdk 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| free_ai_sdk-0.1.0.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| free_ai_sdk-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.7 kB
Release files / free_ai_sdk-0.1.0.tar.gz
| Download URL | free_ai_sdk-0.1.0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a4ca640499e8a08e3cd0642016c4a3814f86e801d487853b9297b8fbd7f09363
|
|
BLAKE2b-256 checksum How to use checksums |
febc011b343ab2931a0eda9ebe7636738be728e01b870a309bb611d1ef1d6fc7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.16.3 cpython/3.11.0 HTTPX/0.28.1
|
Release files / free_ai_sdk-0.1.0-py3-none-any.whl
| Download URL | free_ai_sdk-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
821d8606aa89fb9715e404516b846a3e366f45ff9894bdf0b4f67adb47993206
|
|
BLAKE2b-256 checksum How to use checksums |
f51383f221e6808e6cff7100d615c7dce0182482c2ab72857902e57ec1149076
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.16.3 cpython/3.11.0 HTTPX/0.28.1
|