Blog
>
How to generate images using supportivekoala
How to generate images using supportivekoala
Learn how to use supportivekoala tool to generate images

Above you can the result that we are going achieve in this article. First of all, what you need to do is create an account on this website, if you don't have one. After that go to your profile page and copy your API key(it's your bearer token). You do have some limit of number requests you can use.

Lets use template with template ID 6116dc0d0e0002001bc2991a. Left one on the image above. You can populate it with different values or try it like that.

Use postman or any other tool(Token is populated if you logged in)

curl --location --request POST 'https://api.supportivekoala.com/v1/images/' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ' \
--data-raw '{"template":"6116dc0d0e0002001bc2991a"}'

The result will look like this.

{
    "_id": "61158cbcb18087773138fc55",
    "template": "6116dc0d0e0002001bc2991a",
    "imageUrl": "https://dwgg0jeln99wi.cloudfront.net/38fca40b-9aa0-4e3e-8a30-43225d8a2a09.png",
    "createdAt": "2021-08-12T21:03:56.769Z",
    "updatedAt": "2021-08-12T21:03:56.769Z",
    "__v": 0
}

imageUrl point to this image

alt text

You can change how images will be generated. To use it you need to specify the params variable in your request. You need to "use template" for a template of your choice on templates page After that go to my templates page On the left side of the website, you can see layers with their names. E.x. let's say it "background-image". To change the default image to your choice you can send this request

curl --location --request POST 'https://api.supportivekoala.com/v1/images/' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ' \
--data-raw '{
    "template":"6116dc0d0e0002001bc2991a",
    "params":[{"name":"background image", "value":"https://thumbs.dreamstime.com/b/dark-kitchen-background-spices-kitchen-utensils-free-copy-space-dark-kitchen-background-spices-kitchen-utensils-210292137.jpg"}]
}'

Result will look like this.

{
   "_id":"6117cda73c3f91001b552029",
   "template":"6116dc0d0e0002001bc2991a",
   "imageUrl":"https://dwgg0jeln99wi.cloudfront.net/f024222b-07eb-4b87-9279-c8b7520ac4ff.png",
   "createdAt":"2021-08-14T14:05:27.437Z",
   "updatedAt":"2021-08-14T14:05:27.437Z",
   "__v":0
}

imageUrl point to this image

alt text