Collager.ai Collages API

The collages API from Collager.ai — 4 operation(s) for collages.

GitHub OpenAPI

Operations 5

1 of 5 operations are conformant: apis.io called them with no credentials and the responses matched this contract. Checked 2026-11-12. how this works · status file

GET /shapes Shapes a collage can take and how many photos fill each conformant #
POST /collages Create a shape collage (heart, number, word ...) from photos #
GET /collages/{id} Get a collage #
DELETE /collages/{id} Delete the collage and its files right away #
POST /collages/{id}/unlock Spend one credit and get the clean full-resolution file #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/collager-ai:collager-ai-collages-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

collager-ai-collages-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Collager Ai Collages API
  version: 0.1.0
  contact:
    name: Collager.ai support
    email: support@collager.ai
    url: https://collager.ai/developers/
  termsOfService: https://collager.ai/terms-of-service.php
  x-status: live
  description: 'Operations tagged collages across 2 of this provider''s published API definitions: collager-ai-openapi.yaml, collager-ai-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.collager.ai/v1
  description: Production
- url: https://collager.ai/v1
  description: Production (same API on the main domain)
security:
- bearerKey: []
tags:
- name: collages
paths:
  /shapes:
    get:
      tags:
      - collages
      operationId: listShapes
      summary: Shapes a collage can take and how many photos fill each
      security: []
      x-status: live
      responses:
        '200':
          description: List of shapes.
          content:
            application/json:
              schema:
                type: object
                required:
                - object
                - data
                properties:
                  object:
                    type: string
                    const: list
                  data:
                    type: array
                    items:
                      type: object
                      required:
                      - type
                      - description
                      properties:
                        type:
                          type: string
                        description:
                          type: string
    servers:
    - url: https://api.collager.ai/v1
      description: Production
    - url: https://collager.ai/v1
      description: Production (same API on the main domain)
  /collages:
    post:
      tags:
      - collages
      operationId: createCollage
      summary: Create a shape collage (heart, number, word ...) from photos
      x-status: live
      parameters:
      - $ref: '#/components/parameters/Prefer'
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateCollageRequest'
          multipart/form-data:
            schema:
              type: object
              properties:
                payload:
                  type: string
                  description: The JSON request (shape, options) as a string.
                photos:
                  type: array
                  items:
                    type: string
                    format: binary
                  description: Up to 20 photo files per request.
                photos_zip:
                  type: string
                  format: binary
                  description: A ZIP with up to 600 photos.
      responses:
        '200':
          description: Finished within the Prefer wait time.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Collage'
        '202':
          description: Accepted; poll GET /collages/{id}.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Collage'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/Error'
    servers:
    - url: https://api.collager.ai/v1
      description: Production
    - url: https://collager.ai/v1
      description: Production (same API on the main domain)
  /collages/{id}:
    get:
      tags:
      - collages
      operationId: getCollage
      summary: Get a collage
      x-status: live
      parameters:
      - $ref: '#/components/parameters/CollageId'
      - $ref: '#/components/parameters/Prefer'
      responses:
        '200':
          description: The collage.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Collage'
        '404':
          $ref: '#/components/responses/Error'
    delete:
      tags:
      - collages
      operationId: deleteCollage
      summary: Delete the collage and its files right away
      x-status: live
      parameters:
      - $ref: '#/components/parameters/CollageId'
      responses:
        '204':
          description: Deleted.
        '404':
          $ref: '#/components/responses/Error'
    servers:
    - url: https://api.collager.ai/v1
      description: Production
    - url: https://collager.ai/v1
      description: Production (same API on the main domain)
  /collages/{id}/unlock:
    post:
      tags:
      - collages
      operationId: unlockCollage
      summary: Spend one credit and get the clean full-resolution file
      description: A repeated call returns the same result and charges nothing (credits_charged 0). Test keys get 403.
      x-status: live
      parameters:
      - $ref: '#/components/parameters/CollageId'
      responses:
        '200':
          description: Unlocked. hd_url is set.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Collage'
        '402':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
        '409':
          $ref: '#/components/responses/Error'
    servers:
    - url: https://api.collager.ai/v1
      description: Production
    - url: https://collager.ai/v1
      description: Production (same API on the main domain)
components:
  schemas:
    Error:
      type: object
      required:
      - error
      - message
      properties:
        error:
          type: string
          example: invalid_request
        message:
          type: string
    Collage:
      type: object
      required:
      - id
      - object
      - status
      - created_at
      - expires_at
      properties:
        id:
          type: string
          example: clg_4Rt8sP1qZx0M
        object:
          type: string
          const: collage
        status:
          type: string
          enum:
          - queued
          - processing
          - preview_ready
          - unlocked
          - failed
        shape:
          type:
          - string
          - 'null'
          example: heart of 70
        cells:
          type:
          - integer
          - 'null'
        photos_used:
          type:
          - integer
          - 'null'
        width:
          type:
          - integer
          - 'null'
        height:
          type:
          - integer
          - 'null'
        preview_url:
          type:
          - string
          - 'null'
          format: uri
          description: Watermarked preview (<= 1200 px). Link valid 24 h - every GET gives a fresh one.
        hd_url:
          type:
          - string
          - 'null'
          format: uri
          description: Clean full-resolution JPEG, after unlock. Link valid 24 h.
        credits_left:
          type: integer
          description: Returned by unlock.
        credits_charged:
          type: integer
          description: Returned by unlock - 1 the first time, 0 on repeats.
        error:
          oneOf:
          - type: 'null'
          - $ref: '#/components/schemas/JobError'
        metadata:
          type: object
          additionalProperties:
            type: string
        created_at:
          type: string
          format: date-time
        expires_at:
          type: string
          format: date-time
    JobError:
      type: object
      required:
      - code
      - message
      properties:
        code:
          type: string
          example: too_few_tiles
        message:
          type: string
    Shape:
      type: object
      required:
      - type
      description: 'Examples: {"type":"heart"}, {"type":"heart","cells":70}, {"type":"number","text":"30"}, {"type":"text","text":"LOVE"}, {"type":"love"}, {"type":"star","size":"large"}, {"type":"grid","n":4}, {"type":"mask_url","url":"https://..."}. GET /shapes lists them.'
      properties:
        type:
          type: string
          enum:
          - heart
          - number
          - text
          - love
          - circle
          - star
          - flower
          - daisy
          - yinyang
          - grid
          - mask_url
        cells:
          type: integer
          enum:
          - 27
          - 34
          - 70
          - 79
          - 91
          - 164
          description: Heart only. Omitted - the smallest heart that holds all your photos.
        text:
          type: string
          maxLength: 14
        size:
          type: string
          enum:
          - small
          - medium
          - large
        n:
          type: integer
          minimum: 2
          maximum: 12
        url:
          type: string
          format: uri
          description: mask_url - black-and-white picture, each black pixel is one photo cell.
    CreateCollageRequest:
      type: object
      required:
      - shape
      - photo_urls
      properties:
        shape:
          $ref: '#/components/schemas/Shape'
        photo_urls:
          type: array
          minItems: 1
          maxItems: 300
          items:
            type: string
            format: uri
          description: Photos (JPEG/PNG/WEBP). Fewer photos than cells - photos repeat.
        gap_pct:
          type: number
          minimum: 0
          maximum: 40
          default: 6
        size_px:
          type: integer
          minimum: 600
          maximum: 8000
          default: 3000
          description: Long side of the full-resolution file (the figure keeps a 9 % white margin).
        background:
          type: string
          example: white
          description: white, cream, pink, gray, black or
        webhook_url:
          type: string
          format: uri
        metadata:
          type: object
          additionalProperties:
            type: string
  parameters:
    CollageId:
      name: id
      in: path
      required: true
      schema:
        type: string
        pattern: ^clg_[A-Za-z0-9]{12}$
        example: clg_4Rt8sP1qZx0M
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      description: Repeating a POST with the same key returns the first job instead of creating a second one.
      schema:
        type: string
        maxLength: 80
    Prefer:
      name: Prefer
      in: header
      required: false
      description: '"wait=N" (N up to 25) - wait up to N seconds for the collage to finish before answering.'
      schema:
        type: string
        example: wait=25
  responses:
    Error:
      description: Error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerKey:
      type: http
      scheme: bearer
      description: 'API key from https://collager.ai/developers/ : Authorization: Bearer <key>'
externalDocs:
  description: Developer page with examples
  url: https://collager.ai/developers/
x-refined-from:
- collager-ai-openapi.yaml
- collager-ai-openapi.yml