SuperAPI AI Directory

image-generate

Design & creation

View repository

Updated 10-15 17:30

About this skill

Image Generate

Use cases

When you need to generate an image based on a text description, use this skill to call the image_generate function.

Usage steps

  1. Prepare a clear and specific prompt。
  2. Run the script python scripts/image_generate.py "<prompt>". Before running, cd to the corresponding directory.
  3. The script will return the URL of the generated image.

Authentication and credential sources

  • Preferentially read the MODEL_IMAGE_API_KEY or ARK_API_KEY environment variable.
  • If not configured, it will try to use VOLCENGINE_ACCESS_KEY and VOLCENGINE_SECRET_KEY to obtain the Ark API Key.

Output format

  • Output the URL of the generated image.
  • If the call fails, an error message will be printed.

Example

python scripts/image_generate.py "一只可爱的猫"