Skip to main content

Universal AI Client - Works out of the box with FREE endpoint

Project description

🚀 Abhanti - Universal AI Client

Works out of the box with FREE endpoint!

from abhanti import ai

# Works immediately - no setup needed!
response = ai("What is Python?")
print(response)

✨ Features

  • Zero config - works instantly
  • FREE by default - uses llm7.io
  • Universal - supports ollama.com, OpenAI, etc.
  • Smart API keys - prompts when needed
  • Model discovery - fetch available models
  • LangChain compatible

📦 Installation

pip install abhanti

🚀 Quick Start

Zero Config (FREE)

from abhanti import ai

print(ai("What is 2+2?"))
print(ai("Explain AI"))

Ollama.com (with API key)

from abhanti import AIClient

# Get API key from: https://ollama.com/account
client = AIClient(
    url="https://ollama.com/v1",
    api_key="your-ollama-key"
)

# Get available models
models = client.get_available_models()
print([m['name'] for m in models])

# Use specific model
client.model = "gpt-oss:120b"
response = client.ask("Hello!")

Environment Variables

export ABHANTI_URL="https://ollama.com/v1"
export ABHANTI_API_KEY="your-key"
export ABHANTI_MODEL="gpt-oss:120b"

🔥 Supported Providers

  • llm7.io (FREE, default)
  • ollama.com (requires API key)
  • OpenAI (requires API key)
  • Groq (requires API key)
  • Anthropic (requires API key)

📖 Examples

See examples/ folder for more examples.

📄 License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

abhanti-1.0.0.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

abhanti-1.0.0-py2.py3-none-any.whl (7.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file abhanti-1.0.0.tar.gz.

File metadata

  • Download URL: abhanti-1.0.0.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.2

File hashes

Hashes for abhanti-1.0.0.tar.gz
Algorithm Hash digest
SHA256 480ae673447afaf3b03f20b759f9fbdd0b5e24700a7406e761859765820b9ab0
MD5 e3a93d1b123e39b2911a0d481d1c7021
BLAKE2b-256 5d05713932d65aa8fe0ba3450768ec40ba3c8e2cf97c7af2983e9c17582ef950

See more details on using hashes here.

File details

Details for the file abhanti-1.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: abhanti-1.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.2

File hashes

Hashes for abhanti-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3806d45c1b6f9cdd0120da6db3b30f8b4c4057ad41199b30be33c31be88dd1ff
MD5 1312c6ca9811ed8351d8eacd74bc0de8
BLAKE2b-256 fa7777cdafe253158804de5576575b99a8bf14f0668f63c2eac67930f5bca249

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page