Free plan

Collage maker

Combine several photos into one collage
POST
/v1/images/collage

About this tool

Puts 2 to 60 pictures together into a single picture. Choose a layout: a neat grid, a row, a column, a staggered wall, rows of equal height, or a pile of tilted photos with white frames. You can set the spacing, borders, rounded corners, background colour and shadows, and mix up the order.
For example, you put six holiday photos into one picture to share with family.

How to use it

  1. Choose this tool.
  2. Add two or more pictures with Upload or drag and drop, in the order you want.
  3. Choose the layout, spacing and background colour.
  4. Press Generate.
  5. Download your collage.

What you get back

You get one new collage picture that you can download.
GOOD TO KNOW
A result larger than 60 megapixels is refused. Counts as one image per picture.
TEST IT LIVE

Try Collage maker in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
Images
Plan
Free
Method
POST
Endpoint
/v1/images/collage
Tool ID
images.collage
Authentication
API key
Accepts
JPEG, PNG, WEBP, GIF, AVIF, TIFF +15 more
Background jobs
Yes
Usage group
Image
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/images/collage" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'images=@photo.jpg' \
  -F 'layout=grid' \
  -F 'columns=1' \
  -F 'width=2000'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.images.collage({
    "images": 'photo.jpg',
    "layout": "grid",
    "columns": 1,
    "width": 2000
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->images()->collage([
    'images' => 'photo.jpg',
    'layout' => 'grid',
    'columns' => 1,
    'width' => 2000,
]);
echo $result->requestId;
FAQ

Frequently asked questions

Make one collage from several pictures: a grid, a row, a column, a masonry of columns, a mosaic of rows with equal height, or a pile of tilted photos with white frames, with spacing, borders, rounded corners, a background, shadows, and a shuffle with a seed.

Collage maker accepts JPEG, PNG, WEBP, GIF, AVIF, TIFF, SVG, SVGZ, BMP, ICO, APNG, PNM and 9 more. You can send several files in one request.

Collage maker is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/images/collage with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.