Documentation Index
Fetch the complete documentation index at: https://docs.pixeltable.com/llms.txt
Use this file to discover all available pages before exploring further.
module pixeltable.functions.reve
Pixeltable UDFs that wrap Reve image generation API. In order to use them, the API key must be specified either withREVE_API_KEY environment variable,
or as api_key in the reve section of the Pixeltable config file.
udf create()
Signature
https://api.reve.com/v1/image/create endpoint. For more information, refer to the official
API documentation.
Parameters:
prompt(pxt.String): prompt describing the desired imageaspect_ratio(pxt.String | None): desired image aspect ratio, e.g. ‘3:2’, ‘16:9’, ‘1:1’, etc.version(pxt.String | None): specific model version to use. Latest if not specified.model_kwargs(pxt.Json | None): additional keyword arguments to pass to the Reve API.
pxt.Image: A generated image
udf edit()
Signature
https://api.reve.com/v1/image/edit endpoint. For more information, refer to the official
API documentation
Parameters:
image(pxt.Image): image to editedit_instruction(pxt.String): text prompt describing the desired editversion(pxt.String | None): specific model version to use. Latest if not specified.model_kwargs(pxt.Json | None): additional keyword arguments to pass to the Reve API.
pxt.Image: A generated image
udf remix()
Signature
<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(pxt.String): prompt describing the desired imageimages(pxt.Json[(Image): list of reference imagesaspect_ratio(Any): desired image aspect ratio, e.g. ‘3:2’, ‘16:9’, ‘1:1’, etc.version(Any): specific model version to use. Latest by default.model_kwargs(Any): additional keyword arguments to pass to the Reve API.
pxt.Image: A generated image