Skip to main content

AI 图片生成 CLI — 命令行文本生成图片,支持多模型

Project description

AI Image CLI

Generate images from your terminal using DALL-E 3. Supports multiple image sizes and batch generation.

Installation

pip install ai-img-cli

Usage

# Generate an image
ai-img "a cat in space wearing a hoodie"

# Specify output size
ai-img -s 1792x1024 "wide landscape"

# Save to file
ai-img -o output.png "your prompt"

# View pricing
ai-img -p

Requirements

  • Python 3.10+
  • OpenAI API key with DALL-E 3 access

Set your API key:

export OPENAI_API_KEY="sk-..."
ai-img --config

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

ai_img_cli-0.1.1-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file ai_img_cli-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ai_img_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for ai_img_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cff75865e0e8115359f88f9e27a0e7f650eb52f5e0b10e492081e60a3c268841
MD5 1dd6b440e2ce8165067326fd0b7df63e
BLAKE2b-256 88a9f1c204a410f837a9a8e3a6722a2b2e29b0b9b3a9ca13c1d1d5dc2530db1b

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