REVE_API_KEY environment variable, or as api_key in the reve section of the Pixeltable config file.
View source on GitHub
udf create()
https://api.reve.com/v1/image/create endpoint. For more information, refer to the official API documentation.
Parameters:
prompt(String): prompt describing the desired imageaspect_ratio(String | None): desired image aspect ratio, e.g. ‘3:2’, ‘16:9’, ‘1:1’, etc.version(String | None): specific model version to use. Latest if not specified.
Image: A generated image
udf edit()
https://api.reve.com/v1/image/edit endpoint. For more information, refer to the official API documentation
Parameters:
image(Image): image to editedit_instruction(String): text prompt describing the desired editversion(String | None): specific model version to use. Latest if not specified.
Image: A generated image
udf remix()
<img>0</img>, <img>1</img>, etc. tags to refer to the images in the images argument.
This UDF wraps the https://api.reve.com/v1/image/remix endpoint. For more information, refer to the official API documentation
Parameters:
prompt(String): prompt describing the desired imageimages(Json): list of reference imagesaspect_ratio(String | None): desired image aspect ratio, e.g. ‘3:2’, ‘16:9’, ‘1:1’, etc.version(String | None): specific model version to use. Latest by default.
Image: A generated image