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.2.tar.gz (3.8 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.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: converso_ai-1.0.2.tar.gz
  • Upload date:
  • Size: 3.8 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.2.tar.gz
Algorithm Hash digest
SHA256 72a0f3f5b426f641a11e26861f210ec6321023d53be76b18e42b1313ccbbd0f5
MD5 6ef1cd8e53d9de70c0fb45be30957488
BLAKE2b-256 6e9f7f71eaa11c4de41c47c085db43d6bb168ac76813bc1ffc2796cb74b79c6b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: converso_ai-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.0 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7e7e34f055721a3235048136fe96f81d53cb62d963e70992f4febdf4dc20f5e7
MD5 e55cf26da1e334942ff8903bb55a8a6f
BLAKE2b-256 9ef558908cdc7dacbe38c7da474917db3f8c5bb511a052f3a3b2727946d850d6

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