Metadata-Version: 2.4
Name: converso-ai
Version: 1.0.4
Summary: Python client for Converso AI API
Author-email: Muhammad Gohar <mg03164525711@gmail.com>
License: MIT
Project-URL: Converso-AI_Telegarm-Channel, https://t.me/conversoai
Project-URL: Converso-AI_Telegarm-Group, https://t.me/conversoai_chat
Project-URL: Converso_AI-API_Docs, https://conversoai.stylefort.store
Project-URL: Repository, https://github.com/muhammadgohar-official/converso-ai-python-library
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.20.0
Dynamic: license-file

# Converso AI Python Library

Converso AI - Python Library is a Python client for interacting with the Converso AI API.

---

## 🚀 Features
- Fetch available models
- Retrieve API tokens (requires API key)
- Generate images from text prompts (requires API key)
- Fetch previously generated images (requires API key)
- Generate chat completions (requires API key)

---

## 📦 Installation

```bash
pip install converso-ai
```

---

## 💻 Example Usage

```python
from converso_ai import ConversoAI

# Initialize client
client = ConversoAI(api_key="YOUR_API_KEY")
```

### Get Available Models
```python
models = client.models()
print(models)
```

### Get Tokens
```python
tokens = client.tokens()
print(tokens)
```

### Generate Image
```python
# Generate Image
image_response = client.generate_image(prompt="A futuristic cityscape", model="model-id")
print(image_response)
```

### Get All Generated Images
```python
# Get All Generated Images
images = client.generated_images()
print(images)
```

### Generate Chat Completion
```python
# Generate a completion
messages = [
    {"role": "user", "content": "Hello, who are you?"},
    # ... more messages ...
]
completion_response = client.chat_completion(model="MODEL_ID", messages=messages)
print(completion_response)
```

---

## ⚙ Project Structure

```
converso_ai/
├── converso_ai/
│   └── __init__.py        # Library code
├── pyproject.toml         # Package config
├── requirements.txt       # Dependencies
├── README.md              # This file
└── LICENSE                # License file (optional)
```

---

## 📖 API Docs

Official API documentation: [https://conversoai.stylefort.store](https://conversoai.stylefort.store)

---

## 📝 License

MIT License. See `LICENSE` file for details.
