Collager.ai Mosaics API

The mosaics API from Collager.ai — 6 operation(s) for mosaics.

GitHub OpenAPI

Operations 7

POST /mosaics Create a mosaic job #
GET /mosaics/{id} Get job status and the preview #
DELETE /mosaics/{id} Delete the job's photos and all results right away #
POST /mosaics/{id}/start Start assembly of a job that was collecting uploads #
POST /mosaics/{id}/unlock Spend one credit and get the clean HD file #
POST /mosaics/{id}/layered Build the layered PSB for print (takes longer than the JPEG) #
GET /mosaics/{id}/layout Map of the mosaic - every tile with its photo, position and size in pixels of… #

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-mosaics-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-mosaics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Collager Ai Mosaics 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 mosaics 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: mosaics
paths:
  /mosaics:
    post:
      tags:
      - mosaics
      operationId: createMosaic
      summary: Create a mosaic job
      x-status: live
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateMosaicRequest'
          multipart/form-data:
            x-status: v0.1
            schema:
              type: object
              description: Arrives in v0.1 - until then send links (tile_image_urls) or use collect_uploads.
              properties:
                main_image:
                  type: string
                  format: binary
                tiles:
                  type: array
                  items:
                    type: string
                    format: binary
      responses:
        '202':
          description: Job accepted; status fetching (we download your links) or collecting.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Mosaic'
        '200':
          description: Same Idempotency-Key as an earlier request - that job is returned.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Mosaic'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '402':
          description: Live key on an account with no credits.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/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)
  /mosaics/{id}:
    get:
      tags:
      - mosaics
      operationId: getMosaic
      summary: Get job status and the preview
      x-status: live
      parameters:
      - $ref: '#/components/parameters/MosaicId'
      responses:
        '200':
          description: The job.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Mosaic'
        '404':
          $ref: '#/components/responses/Error'
    delete:
      tags:
      - mosaics
      operationId: deleteMosaic
      summary: Delete the job's photos and all results right away
      x-status: live
      parameters:
      - $ref: '#/components/parameters/MosaicId'
      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)
  /mosaics/{id}/start:
    post:
      tags:
      - mosaics
      operationId: startMosaic
      summary: Start assembly of a job that was collecting uploads
      x-status: live
      parameters:
      - $ref: '#/components/parameters/MosaicId'
      responses:
        '202':
          description: Queued.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Mosaic'
        '409':
          description: The job is not collecting uploads, or too few photos yet (main photo + at least 30 tiles).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    servers:
    - url: https://api.collager.ai/v1
      description: Production
    - url: https://collager.ai/v1
      description: Production (same API on the main domain)
  /mosaics/{id}/unlock:
    post:
      tags:
      - mosaics
      operationId: unlockMosaic
      summary: Spend one credit and get the clean HD 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/MosaicId'
      responses:
        '200':
          description: Unlocked. hd_url is set.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Mosaic'
        '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)
  /mosaics/{id}/layered:
    post:
      tags:
      - mosaics
      operationId: buildLayeredFile
      summary: Build the layered PSB for print (takes longer than the JPEG)
      description: Unlocks the job first if needed (one credit); the PSB itself currently costs nothing extra (may be priced separately later). psb_status becomes building, then ready with psb_url (webhook mosaic.layered_ready).
      x-status: live
      parameters:
      - $ref: '#/components/parameters/MosaicId'
      responses:
        '202':
          description: Accepted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Mosaic'
        '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)
  /mosaics/{id}/layout:
    get:
      tags:
      - mosaics
      operationId: getMosaicLayout
      summary: Map of the mosaic - every tile with its photo, position and size in pixels of…
      x-status: live
      parameters:
      - $ref: '#/components/parameters/MosaicId'
      - name: format
        in: query
        schema:
          type: string
          enum:
          - json
          - xml
      responses:
        '200':
          description: The layout (JSON, or XML with ?format=xml).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Layout'
            application/xml:
              schema:
                type: string
        '404':
          $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
    JobError:
      type: object
      required:
      - code
      - message
      properties:
        code:
          type: string
          example: too_few_tiles
        message:
          type: string
    Layout:
      type: object
      required:
      - object
      - mosaic_id
      - width
      - height
      - tile_count
      - tiles
      properties:
        object:
          type: string
          const: layout
        mosaic_id:
          type: string
        width:
          type: integer
        height:
          type: integer
        tile_count:
          type: integer
        levels:
          type: integer
        tiles:
          type: array
          items:
            type: object
            required:
            - x
            - y
            - w
            - h
            - level
            properties:
              photo:
                type:
                - integer
                - 'null'
                description: 0-based position of the photo in your request (main image first, then featured, secondary and tile_image_urls).
              source_url:
                type:
                - string
                - 'null'
              x:
                type: integer
              y:
                type: integer
              w:
                type: integer
              h:
                type: integer
              level:
                type: integer
                description: 1 = largest tiles.
              featured:
                type:
                - string
                - 'null'
                enum:
                - gold
                - silver
                - null
              avg_color:
                type:
                - string
                - 'null'
                example: '#a0785a'
    Mosaic:
      type: object
      required:
      - id
      - object
      - status
      - created_at
      - expires_at
      properties:
        id:
          type: string
          example: msc_7Hq2xV9aB3kL
        object:
          type: string
          const: mosaic
        status:
          type: string
          enum:
          - collecting
          - fetching
          - queued
          - processing
          - preview_ready
          - unlocked
          - failed
          description: fetching - we are downloading your links; queued/processing - in the build farm.
        upload_url:
          type:
          - string
          - 'null'
          format: uri
          description: With collect_uploads - the page where your users add photos.
        photos_received:
          type:
          - integer
          - 'null'
          description: With collect_uploads - photos uploaded so far.
        preview_url:
          type:
          - string
          - 'null'
          format: uri
          description: Watermarked preview, set from preview_ready on. Link valid 24 h.
        hd_url:
          type:
          - string
          - 'null'
          format: uri
          description: Clean full-resolution file, set after unlock. Link valid 24 h.
        psb_status:
          type:
          - string
          - 'null'
          enum:
          - building
          - ready
          - failed
          - null
        psb_url:
          type:
          - string
          - 'null'
          format: uri
          description: Layered PSB for print, when built. Link valid 24 h.
        layout_url:
          type:
          - string
          - 'null'
          format: uri
          description: GET it with your key - every tile with photo, position, size, colour. JSON by default, XML with ?format=xml. Set from preview_ready on.
        tiles_archive_url:
          type:
          - string
          - 'null'
          format: uri
          x-status: v0.1
          description: ZIP of the tile images as placed in the mosaic (v0.1). Large sets - read access to a storage folder by agreement.
        viewer_url:
          type:
          - string
          - 'null'
          format: uri
          x-status: v0.1
          description: Interactive zoom viewer page (v0.1).
        width:
          type:
          - integer
          - 'null'
        height:
          type:
          - integer
          - 'null'
        tiles_used:
          type:
          - integer
          - 'null'
        tiles_failed:
          type: integer
          description: Links we could not download (they are skipped).
        style:
          type:
          - object
          - 'null'
        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
        expires_at:
          type: string
          format: date-time
          description: When photos and results are deleted automatically (30 days after creation).
        created_at:
          type: string
          format: date-time
    CreateMosaicRequest:
      type: object
      description: 'Pass the tiles as links (tile_image_urls, plus optional featured/secondary) or use collect_uploads.

        tiles_zip_url, tiles_source and multipart upload arrive in v0.1. Other storage (Dropbox, Google Drive, FTP,

        your platform''s API) - custom integration on request.

        '
      properties:
        main_image_url:
          type: string
          format: uri
          description: The picture to recreate. Required unless collect_uploads.
        tile_image_urls:
          type: array
          maxItems: 10000
          items:
            type: string
            format: uri
          description: Photos for the tiles (public or pre-signed links). At least 30 tiles in total; a few hundred give a good result.
        tiles_zip_url:
          type: string
          format: uri
          x-status: v0.1
          description: One ZIP archive with all tile photos (v0.1).
        tiles_source:
          type: object
          x-status: v0.1
          description: Cloud folder we read the tiles from (v0.1).
          properties:
            type:
              type: string
              enum:
              - s3
              - gcs
              - azure
            bucket:
              type: string
            prefix:
              type: string
            region:
              type: string
        featured_tile_urls:
          type: array
          maxItems: 100
          items:
            type: string
            format: uri
          description: Photos that get the largest tiles and are placed first.
        secondary_tile_urls:
          type: array
          maxItems: 300
          items:
            type: string
            format: uri
          description: Second featured level, slightly smaller.
        style:
          type: object
          description: Omit for the standard look (the engine picks the style for the main photo).
          properties:
            layout:
              type: string
              enum:
              - variable
              - uniform
              default: variable
            large_tiles:
              type: integer
              default: 300
              description: How many of the largest tiles fit across the picture (variable 0 = auto or 50-5000; uniform 200-5000, default 2000).
            size_levels:
              type: integer
              minimum: 1
              maximum: 4
              default: 4
            colorization:
              type: string
              enum:
              - low
              - medium
              - high
              default: medium
            blur_background:
              type: integer
              minimum: 0
              maximum: 100
            clean_subject:
              type: boolean
              description: Keep the main subject as a clean photo, mosaic only around it.
        layered_file:
          type: boolean
          description: Also build the layered PSB for print (takes longer).
        collect_uploads:
          type: boolean
          description: No photos yet - the response carries upload_url, a page where your users add photos; status stays collecting until POST /mosaics/{id}/start.
        webhook_url:
          type: string
          format: uri
          description: Called with a WebhookEvent when the preview is ready, the job fails, is unlocked or the PSB is ready.
        metadata:
          type: object
          additionalProperties:
            type: string
          description: Your own key-value pairs, returned unchanged.
  parameters:
    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
    MosaicId:
      name: id
      in: path
      required: true
      schema:
        type: string
        pattern: ^msc_[A-Za-z0-9]{12}$
        example: msc_7Hq2xV9aB3kL
  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