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)

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.5.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.5-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: converso_ai-1.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 2f1022e2ce41b0009da55c2a464e5a33986585b8c6cb32a719f3f6da6ecc7b88
MD5 9b7376693f348f72858f82d7db52b7e7
BLAKE2b-256 0b3bdc04c43e35027e8eea217b73bd47f614d9d2417d7f1cbac0d49aea1c156a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: converso_ai-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 5.1 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 124cd22dde7d1f8a67fd890bcf63c25e933e607990f0f67ceb717a3d57586391
MD5 2345afc9a553bdc4c7dd0d0538f77081
BLAKE2b-256 01e84c40acc62c7d1ed5da97b0824a70169684532a2833cd56bddb98701db196

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