RepositoryPython
ezzcodeezzlife

ezzcodeezzlife/dalle2-in-python

Use DALL·E 2 in Python

175sao
34fork
10issue
2lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: generation

#1 Repository của tháng

1
TINIX TRENDING·Chủ đề: e

#1 Repository của tháng

1
TINIX TRENDING·Chủ đề: dalle2

#1 Repository của tháng

🎨 Gọi DALL·E 2 từ Python một cách đơn giản

Gói thư viện nhỏ gọn, giúp bạn tạo ảnh bằng DALL·E 2 mà không cần chờ đợi API chính thức.

dalle2-in-python là một thư viện Python cho phép bạn dùng DALL·E 2 để tạo ảnh từ mô tả văn bản, tải ảnh về máy, và thậm chí hỗ trợ tạo ảnh từ file có vùng trong suốt (inpainting).

✨ Điểm nổi bật

  • Tạo ảnh từ văn bản: Dùng phương thức generate để gửy lời nhắn tới DALL·E 2 và nhận về danh sách ảnh sinh ra.
  • Tự động tải ảnh về: Phương thức generate_and_download giúp tạo ảnh và lưu trực tiếp dưới dạng file .webp.
  • Tạo số lượng ảnh tùy chỉnh: Dùng generate_amount để sinh nhiều ảnh liên tiếp (theo bộ 4).
  • Hỗ trợ inpainting: Phương thức generate_from_masked_image điền nội dung vào vùng trong suốt của ảnh gốc.
  • Cài đặt nhanh: Chỉ cần pip install dalle2 và khởi tạo với bearer token.

💡 Vì sao đáng chú ý

Dự án này hữu ích khi bạn muốn tích hợp khả năng tạo ảnh của DALL·E 2 vào dự án Python mà chưa có quyền truy cập API chính thức. Cách lấy token cũng khá sáng tạo: dùng công cụ phát triển trình duyện để bắt yêu cầu gửi đến labs.openai.com. Phù hợp cho prototyping, học tập hoặc tạo nội dung nhanh.


#DALLE2 #Python #AI #ImageGeneration #OpenSource #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryPython
Significant-Gravitas/AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

188.2k
Nov 29, 2026
RepositoryJupyter Notebook
microsoft/generative-ai-for-beginners

21 Lessons, Get Started Building with Generative AI

124.7k
Dec 2, 2026
RepositoryPython
langgenius/dify

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

162.3k
Dec 2, 2026
RepositoryPython
langchain-ai/langchain

The agent engineering platform.

150.1k
Nov 29, 2026
RepositoryPython
Comfy-Org/ComfyUI

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

149.6k
Dec 2, 2026
RepositoryTypeScript
openclaw/openclaw

The AI that really does things. Any OS. Any Platform. The lobster way. 🦞

395.6k
Dec 2, 2026
RepositoryShell
obra/superpowers

An agentic skills framework & software development methodology that works.

331.2k
Nov 28, 2026
RepositoryTypeScript
firecrawl/firecrawl

Firecrawl is the knowledge infrastructure to make your agents smarter. It connects your agents to the web, and to Alexandria, our library of everything else.

215.1k
Dec 2, 2026
RepositoryPython
public-apis/public-apis

A collective list of free APIs

502.6k
Nov 30, 2026