Skip to main content

A Python library for generating images using Mistral AI API

Project description

Mistral Image Generator

مكتبة Python لتوليد الصور باستخدام Mistral AI API.

التثبيت

pip install mistral-image-gen

الاستخدام الأساسي

from mistral_image_gen import MistralImageGenerator

# إنشاء نسخة من المولد
generator = MistralImageGenerator()

# توليد صورة واحدة
image_path = generator.generate_image("سيارة رياضية حمراء جميلة")
print(f"تم حفظ الصورة في: {image_path}")

# توليد عدة صور دفعة واحدة
prompts = [
    "قطة صغيرة تلعب بكرة",
    "غروب الشمس على الشاطئ",
    "حديقة مليئة بالزهور"
]
image_paths = generator.batch_generate(prompts, prefix="my_images_")
print(f"تم إنشاء {len(image_paths)} صور")

المميزات

  • توليد صور من وصف نصي
  • دعم توليد صور متعددة دفعة واحدة
  • إمكانية تخصيص مجلد حفظ الصور
  • معالجة الأخطاء وإعادة المحاولة تلقائياً
  • تنسيق أسماء الملفات تلقائياً

المساهمة

نرحب بمساهماتكم! يرجى إرسال pull requests أو فتح issues على GitHub.

الترخيص

هذا المشروع مرخص تحت MIT License.

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

mistral_image_gen-0.1.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

mistral_image_gen-0.1.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file mistral_image_gen-0.1.0.tar.gz.

File metadata

  • Download URL: mistral_image_gen-0.1.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.4

File hashes

Hashes for mistral_image_gen-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f82742b7e51b521ac16c84a6591a9dd462375c17397686873ecfacad203054af
MD5 b5e46f075b34bf063e03849811fb6f5f
BLAKE2b-256 7c89e3a56a7b7cdfab99908d5539baa4a9852a8cc6168b23aa3f3e6c3b3b106e

See more details on using hashes here.

File details

Details for the file mistral_image_gen-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mistral_image_gen-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5c647cff886c15540dad84058efef070cc2a023110b84f440b4ae970f85318de
MD5 f8ec19755f7b27c2970c2d6f1e344bfe
BLAKE2b-256 49c8de6b1f0bd7148f194722585ab9690669a56fc3f3da4f5904d0099bb67573

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