Skip to main content

This is an unofficial API designed to interact with Google AI Kitchen's Music and Image generation tools. It provides programmatic access to features like Music Generation and Image Generation.

Project description

AIKitchen-API

An unofficial Python API designed for seamless interaction with Google AI Kitchen's Music and Image generation tools. Unlock the potential of creative content generation through programmatic access to cutting-edge AI capabilities.

Features

Music Generation

  • Generate audio tracks from text prompts.
  • Control the number of tracks and adjust their duration (up to 30 seconds).

Image Generation

  • Generate visually captivating images based on textual prompts.
  • Customize the number of images and control aspect ratios.

Key Features

  • Modular Architecture: Clearly defined classes for Music and Image functionalities, promoting code organization and readability.
  • Automated Login: Utilizes Selenium for automated login and token management, streamlining user interactions.
  • Error Handling: Robust error handling and logging for improved reliability and user feedback.
  • Security Considerations: Encourages secure storage practices for sensitive information; explore further enhancements for security.
  • Documentation: Includes inline comments for code clarity; consider adding docstrings for comprehensive documentation.

Potential Use Cases

  • Creative Projects: Experiment with AI-generated music and images for artistic endeavors.
  • Application Integration: Integrate AI-generated content into applications, websites, or workflows.
  • Automation: Automate content creation tasks using the API's versatile features.

Important Notes

  • This API is unofficial and may not be officially supported by Google AI Kitchen.
  • Responsible AI Practices: Adhere to ethical AI principles and practices when using AI-generated content.
  • Security Best Practices: Implement robust security measures, considering the sensitivity of information stored.

Note: For optimal usage, it is recommended to keep Two-Factor Authentication (2FA) off for the Google AI Kitchen account associated with this API to avoid login issues.

Further Enhancements

  • API Documentation: Develop extensive API documentation to guide users effectively.
  • Authentication Improvements: Implement advanced authentication methods, such as OAuth2, for enhanced security.
  • Error Handling Refinement: Continuously refine error handling for a seamless user experience.
  • Thorough Testing: Conduct comprehensive testing to ensure the API's reliability in various scenarios.

Installation

pip install AIKitchen-API

Getting Started

from AIKitchen_API import Login, Music, Image

# Login
login = Login(email="your_email@example.com", password="your_password")
token = login.token

#Music Generation
music = Music()
input = "Ambient, soft sounding music I can study to"
tracks = music.get_tracks(input, 2, token)

if isinstance(tracks, list):
    music.b64toMP3(tracks, input,)

#Image Generation 
image = Image()

input = 'Silver coin with a smiling cat, words "5 catnips" "handmade"'
images = image.get_image(input, 3, token)

if isinstance(images, list):
    image.b64toImg(images, input)

For more details, examples, and contribution guidelines, please refer to the 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

AIKitchen-API-0.2.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

AIKitchen_API-0.2.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file AIKitchen-API-0.2.0.tar.gz.

File metadata

  • Download URL: AIKitchen-API-0.2.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for AIKitchen-API-0.2.0.tar.gz
Algorithm Hash digest
SHA256 177d8cf708ac86535febb622ae109d7427a8577382902dfa6aeb601f66815c39
MD5 6dc3d41b7a9b5b8b23824425ac41e3ad
BLAKE2b-256 456df67397646de5ff11384a46446cf169a151ec3305869eee844b64032202e2

See more details on using hashes here.

File details

Details for the file AIKitchen_API-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for AIKitchen_API-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9147123427061319dfa0327a44bed0a6ea0cbcf1f2dd5dcd0e4fc9946277d51c
MD5 64ad7b14ab1d468f98b525e4a5ced111
BLAKE2b-256 89f73c12026317ac237853e0ff77e756841d05cae2a973468e5da4d24cdbf648

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page