Python client for Converso AI API
Project description
๐ค Converso AI Python Library
A lightweight and powerful Python client for interacting with the Converso AI API.
Easily integrate AI models, generate images, retrieve tokens, chat with agents, and more โ all with just a few lines of code.
๐ Features
- ๐ Fetch available AI models (no API key required)
- ๐ Retrieve API tokens (requires API key)
- ๐ผ Generate images from text prompts (requires API key)
- ๐ Access previously generated images (requires API key)
- ๐ฌ Generate chat completions (requires API key)
- ๐ค Get responses from specific agents (requires API key)
๐ฆ Installation
Install directly from PyPI:
pip install converso-ai
โก Quick Start
from converso_ai import ConversoAI
# Initialize client
client = ConversoAI(api_key="YOUR_API_KEY")
๐ป Usage Examples
๐ Get Available Models
models = client.models()
print(models)
๐ Retrieve Tokens
tokens = client.tokens()
print(tokens)
๐ผ Generate an Image
image = client.generate_image(
prompt="A futuristic cityscape",
model="flux.1-dev"
)
print(image)
๐ฌ Generate Chat Completion
messages = [
{"role": "user", "content": "Hello, who are you?"}
]
completion = client.chat_completion(
model="gemini-2.5-flash",
messages=messages
)
print(completion)
๐ค Get Agent Response
response = client.agent_response(
agent_id="AGENT_ID",
prompt="What is the weather today?"
)
print(response)
๐ Project Structure
converso-ai/
โโโ converso_ai/
โ โโโ __init__.py # Core library code
โโโ pyproject.toml # Build & metadata
โโโ requirements.txt # Dependencies
โโโ README.md # Documentation
โโโ LICENSE # License
๐ Documentation
Full API docs: Converso AI Docs
๐ License
This project is licensed under the MIT License. See the LICENSE file for details.
๐ Privacy Policy
Read our Privacy Policy here: Privacy Policy
โญ Contributing
Contributions are welcome!
- Fork the repo
- Create a feature branch
- Submit a pull request
Help us make Converso AI Python Library even better ๐
โก Quick Links
- ๐ฆ PyPI: Converso AI
- ๐ Docs: API Documentation
- ๐ Source: GitHub Repository
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
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 converso_ai-1.0.7.tar.gz.
File metadata
- Download URL: converso_ai-1.0.7.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4463d348da7148b637c6e6adf828e5289c4ce1f3800c2fc78a5ff94088b0268
|
|
| MD5 |
fb53383bb92b48645045d630923f7f31
|
|
| BLAKE2b-256 |
83c1a014d9e5cded78752edac4fcdf619bc9b0278d21ed25486bd9ff90426268
|
File details
Details for the file converso_ai-1.0.7-py3-none-any.whl.
File metadata
- Download URL: converso_ai-1.0.7-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7fed92dd132ee4a30e8a28b22616fab55ebb86a63253c1460d07b6aebab49081
|
|
| MD5 |
1087f16753c35bd142e19c13c214f932
|
|
| BLAKE2b-256 |
8b303355c4fecddf132c8ea9c177d5f620f7188ed728b00ca29eb01a8b9bd970
|