Python
Get started with Orshot Python SDK
Installation
Initialise
Render from template
Generate Signed URL
Examples
base64
response format
binary
response format
url
response format
render_from_template
Use this function to generate an image.
argument | required | description |
---|---|---|
template_id | Yes | ID of the template (open-graph-image-1 , tweet-image-1 , beautify-screenshot-1 ) |
modifications | Yes | Modifications for the selected template. |
response_type | No | base64 , binary , url (Defaults to base64 ). |
response_format | No | png , webp , pdf , jpg , jpeg (Defaults to png ) |
For available templates and their modifications refer Orshot Templates Page
generate_signed_url
Use this function to get a signed URL.
argument | required | description |
---|---|---|
template_id | Yes | ID of the template (open-graph-image-1 , tweet-image-1 , beautify-screenshot-1 ) |
modifications | Yes | Modifications for the selected template. |
expires_at | Yes | Expires at time in UNIX timestamp (Integer) |
render_type | No | images , pdfs (Defaults to images ). |
response_format | No | png , webp , pdf , jpg , jpeg (Defaults to png ) |