Bluepic - Plus Exclusive

Product details

Q: Usecase Question?

Could I upload a PNG as a background, leave some background empty (to not have to use so much your Builder), and then send just text and maybe one image via API, but get the text and the picture back via API?

UXnerdPLUSApr 30, 2025
Founder Team
Elya_Bluepic

Elya_Bluepic

May 2, 2025

A: You can render any template in Bluepic STUDIO with our API. You can pass any valid image URL or DATA URL into the variables that will be used by image elements. If you are using a custom image URL form your webserver, make sure that your CORS is set up in a way that any webpage can display the image within an image element and make fetch() calls to it. Otherwise, the rendering will probably not work because our templates are in fact small web pages that will be rendered using chromium.

Example API Call:

curl -X POST 'https://api.bluepic.io/api/export?env=prod' \
-H 'Content-Type: application/json' \
-d '{
"templateId": "681491014bd55bd15bb79a8a",
"data": {
"text1_text": "beautiful text"
},
"width": 1080,
"height": 1080,
"format": "png"
}'

You can pass everything along the "data" object as long as it is valid and can be rendered by your template. External URL'S for images are no problem as long they allow to be embedded within foreign web pages such as our template environment.

In this case you normally get the following things back:

{
"creditsConsumed": <AMOUNT_OF_CONSUMED_CREDITS>,
"files": <FILES>,
"creditBalanceName": "EMBED",
"publicUserConfig": <PUBLIC_USER_CONFIG>,
}

Share
Helpful?
Log in to join the conversation