forked from gptscript-ai/dalle-image-generation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtool.gpt
9 lines (8 loc) · 741 Bytes
/
tool.gpt
1
2
3
4
5
6
7
8
9
name: image-generation
credential: github.com/gptscript-ai/image-generation/credential
description: Generates images based on the specified parameters and returns a list of URLs to the generated images.
args: prompt: (required) The text prompt based on which the GPT model will generate a response
args: size: (optional) The size of the image to generate, format WxH (e.g. 1024x1024). Defaults to 1024x1024.
args: quality: (optional) The quality of the generated image. Allowed values are "standard" or "hd". Default is "standard".
args: number: (optional) The number of images to generate. Defaults to 1.
#!/usr/bin/env python3 ${GPTSCRIPT_TOOL_DIR}/cli.py --prompt="${prompt}" --size="${size}" --quality="${quality}" --number="${number}"