Skip to main content

Python client for Converso AI API

Project description

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

pip install converso-ai

💻 Example Usage

from converso_ai import ConversoAI

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

Get Available Models

models = client.models()
print(models)

Get Tokens

tokens = client.tokens()
print(tokens)

Generate Image

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

Get All Generated Images

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

Generate Chat Completion

# 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


📝 License

MIT License. See LICENSE file for details.

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

converso_ai-1.0.4.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

converso_ai-1.0.4-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file converso_ai-1.0.4.tar.gz.

File metadata

  • Download URL: converso_ai-1.0.4.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for converso_ai-1.0.4.tar.gz
Algorithm Hash digest
SHA256 603b02498a8d53801d1989e219ed90de79551fb6a0824930bf0c327e8f8c7707
MD5 c6a8d4f7bf2954793e54c2ea029e799a
BLAKE2b-256 43fc3b9caa0107169702efd7b197e7289c33b0e3bf82dae26cc716f2aa1cd042

See more details on using hashes here.

File details

Details for the file converso_ai-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: converso_ai-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for converso_ai-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 66941a7dfaea85046d0008f1ca986b00019480cf583449b811c3490a259d47d5
MD5 15407970ef9d030a55971ff4eea59f86
BLAKE2b-256 f820eacd7376372b588661923f13a98c061f824c356fca4390dcd0961725ab22

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