API Provider

API Temple
API Temple

Developer links

Social Media Assets Generator API
Social Media Assets Generator API

Resizes and creates images with all appropriate sizes for any social media service.

Image generator for social networks such as;

  • Instagram
  • Twitter
  • Facebook
  • Linkedin
  • YouTube
  • Pinterest
  • Tumblr

What this API does ?

Resizes and creates appropriate social network images for given service and returns resized image’s url. You can pass the orientation parameter for each service for the intended image format.

For improper image sizes, api crops images from center point.

Valid / Supported Orientation Values

Instagram

Default value is set to : square

  • square: 1080x1080
  • landscape: 1080x566
  • portrait: 1080x1350
  • profile: 110x110
  • story: 1080x1920
Twitter

Default value is set to : profile

  • profile: 400x400
  • header: 1500x500
  • image: 1024x512
  • card: 1200x628
  • ad: 800x428
Facebook

Default value is set to : profile

  • profile: 180x180
  • cover: 820x462
  • link: 1200x630
  • image: 1200x630
  • event: 1920x1080
  • ad: 1200x628
  • storyad: 1080x1920
  • groupcover: 1640x922
  • messengerad: 1200x628
Linkedin

Default value is set to : profile

  • profile: 400x400
  • background: 1584x396
  • postdesktop: 1200x1200
  • postmobile: 1200x628
  • post: 1200x628
  • companylogo: 300x300
  • companycover: 1536x768
  • companysponsoredcontent: 1200x627
  • companyhero: 1128x376
  • companybanner: 646x220
YouTube

Default value is set to : channelcoverdesktop

  • channelcoverdesktop: 2560x1440
  • channelcoverphone: 1546x423
  • displayad: 300x250
  • overlayad: 480x60
  • companion: 300x250
Pinterest

Default value is set to : profile

  • profile: 165x165
  • board: 222x150
  • pin: 1000x1500
Tumblr

Default value is set to : profile

  • profile: 128x128
  • post: 500x750

Upload/Post Example
$ curl --location --request POST \
  -i 'https://api.promptapi.com/social_asset/instagram/upload' \
  --data-binary '@/path/to/file/image.jpg' \
  --header 'Content-Type: octet/stream' \
  --header 'apikey: YOUR API KEY'

Response:

HTTP/1.0 201 CREATED
Content-Type: application/json
Content-Length: 146
:
:
{
    "orientation": "square",
    "service": "instagram",
    "width": 1080,
    "height": 1080,
    "url": "https://assets.promptapi.com/social_asset/instagram-square-1080x1080.jpg"
}
URL/Get Example
$ curl --location --request GET \
  -i 'https://api.promptapi.com/social_asset/tumblr/url?url=https%3A%2F%2Fexample.com%2Fimages%2Ftest.jpg%26orientation%3Dpost' \
  --header 'Content-Type: octet/stream' \
  --header 'apikey: YOUR API KEY'

Response:

HTTP/1.0 201 CREATED
Content-Type: application/json
Content-Length: 146
:
:
{
    "orientation": "post",
    "service": "tumblr",
    "width": 1080,
    "height": 1080,
    "url": "https://assets.promptapi.com/social_asset/tumblr-post-500x750-1f1299c0-e9b2-11ea-9741-acde48001122.jpg"
}

How secure is this service?

Prompt API is a legal entity in European Union and regulated by its laws. We never store any sensitive information on our servers and fully respect your privacy.

Is it free?

Social Media Assets Generator API is a paid service but we have a free plan that will be more than enough for you to test its functionalities and see if it works for your needs.

How does Prompt API's pricing work?

Our subscriptions are tiered. We offer a monthly subscription scheme and you decide which tier works for you the best. No strings attached.

Can I cancel/upgrade/downgrade at any time?

Sure you can. You can cancel your subscription or upgrade/downgrade yourself, anytime without any restrictions.

Fast and reliable
Easy to use

Ready to try it out?

We offer a free plan. No credit cards required!


or see documentation

See Also

View All