Render API
Last updated
Was this helpful?
Last updated
Was this helpful?
Export OpenAPI specification for Render API
When defining this optional parameter in your request, the same value will be returned in the response.
This parameter is used to help recognize the request you sent with the label.
By default, we return a .png rendered image.
But sometimes, for example, you want to get a more optimized image for the web.
By providing some of the following values: jpg, png, webp
you can control what image format you want from our API.
Same as image_format, you can tell our API if you need an image of a specific size.
We will return high image resolution, but sometimes you need smaller ones.
Provide export_options.image_size = 720
to get the image with 720px width.
The provided value will define image width and height will auto-scale.
Our API exports images as binary by default, causing the browser to download them automatically.
To display the image in the browser instead of downloading it, set export_options.mode = "view"
.
The provided URL image will be rendered inside a chosen smart object UUID.
The image must be one of the following extensions: jpg, jpeg, png, webp, gif
In some cases, you will want to send the binary file instead of the URL.
To send the binary file, include it as part of the smart_objects.asset
object, using the file
property instead of url
. Ensure that the file is sent using FormData
.
When sending a binary file in an API request, you must use FormData
instead of sending the file as part of a JSON payload. This is because binary files cannot be directly represented in JSON format.
The image must be one of the following extensions: jpg, jpeg, png, webp, gif
This optional field will paint the whole smart object with the provided color value.
You can provide two different value types:
hexadecimal value, example: #AA411B
In our web application editor, you can turn on Print Area and place the asset position and size. Each of your uploaded assets using Render API will inherit this setting.
You can optionally change print area fit mode by selecting one of these: stretch, contain, cover
You can optionally change the position of your asset using Render API.
Set position.top
and position.left
to tweak your asset position if necessary.
You can optionally change the size of your asset using API.
Set size.width
and size.height
to tweak your asset size if necessary.
You can optionally provide print_area_preset_uuid
inside each smart object to automatically position the provided asset without explicitly setting any position, fit, rotate, or size.
To create new print area presets, upload the design asset and set the print area you want. You can create any amount of print area presets.
You can optionally apply blending_mode
to the smart object.
Supported blending mode list:
You can optionally apply adjustment_layers
to the smart object.
Supported adjustment layer list:
contrast
-100
100
0
brightness
-150
150
0
opacity
0
100
100
saturation
-100
100
0
vibrance
-100
100
0
In some cases, your custom psd files will contain text layers and you will want to provide the text to get the output.
At the moment, at least one smart object needs to be provided in addition to text layers to work. You don't need to provide any image to the smart object if you don't want to, so it can stay invisible.
Use this UUID
field to refer to the text layer you want to put the text on.
Provide text that will be applied to the text layer and output on the rendered image.
Default font used is Roboto
, if you want, provide a custom font family.
List of available fonts: Helvetica, Arial, Times New Roman, Futura, Garamond, Bebas Neue, Roboto, Lato, Montserrat, Open Sans, Raleway, Playfair Display, Avenir, Century Gothic, Georgia, Proxima Nova, Teko, Impact, Poppins, Merriweather
Default font size from the PSD file will be applied.
Provide font_size
to modify the default font size of the text layer.
Default font color from the PSD file will be applied.
Provide font_color
in the hex color code to change the color of the text.
or color names from
Inside our web application editor, you can easily create new print area presets, which will automatically appear inside our where you can get print_area_presets
details for each mockup and smart object.
Our text layer feature is in [Beta] stage at the moment. Feel free to if you face any issues in implementation.
If you upload the PSD files that contain text layers, text layers will be visible on our besides smart objects.
Left image without color - Right image with color
Returns an image URL of the selected mockup template and provided design asset.
The request must accept JSON responses.
API key required for authentication.
YOUR_API_KEY_HERE
The UUID of the mockup template.
754a46c5-7693-43a1-9cd4-aedabd273f57
A label for the exported image.
MY_FIRST_IMAGE_01