Documentation

API Reference

Getting Started

Imagefly is a responsive image service that processes images on the fly. It's fully hosted and accessed using a simple URL-based API.

  • 1
    Create An Account

    Creating an account is simple and quick! Create an account. The hostname create your unique subdomain on imagefly.io.

  • 2
    Add The Code To Your Site

    Add your JavaScript library just before the </body> tag. You can find your account's embed code on your account settings

    <script>
    (function(d,t){var g=d.createElement(t),
    s=d.getElementsByTagName(t)[0];
    g.async = true;
    g.src='[YOUR ACCOUNT''S JAVASCRIPT URL]';
    s.parentNode.insertBefore(g,s);}(document,'script'));
    </script>
    
  • 3
    Update Your Image Urls

    Then change any images you want to be responsive from:

    <img src="http://yoursite.com/image.jpg">
    

    to:

    <img src="http://[HOST].imagefly.io/q_low/http://yoursite.com/image.jpg">
    

    For more advanced integrations, see the HTML Integration.

  • 4
    Setup Your Billing Information