LaminarForge API Image Utils API

lf-image-utils — QR/barcode generation, EXIF, color analysis, image info, format detection, ASCII art, grayscale, compression

GitHub OpenAPI

Operations 18

GET /v1/qr-generate QR Code Generator #
GET /v1/barcode-generate Barcode Generator #
GET /v1/exif-read EXIF Reader #
GET /v1/dominant-color Dominant Color #
GET /v1/color-palette Color Palette #
GET /v1/image-info Image Info #
GET /v1/format-detect Format Detect #
GET /v1/image-ascii Image to ASCII #
GET /v1/grayscale Grayscale Converter #
GET /v1/compress Image Compress #
GET /v1/image-resize Image Resize / Resample #
GET /v1/image-to-datauri Image to Base64 Data URI #
GET /v1/image-caption Image Caption / Meme Generator #
GET /v1/image-hash Image Hash / Checksum #
GET /v1/favicon-generate Favicon Generator #
POST /v1/register Register an agent, get a free API key #
GET /v1/register Agent onboarding info (no key created) #
GET /v1/exif-gps EXIF GPS Decoder #

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/laminarforge-dev:laminarforge-dev-image-utils-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

laminarforge-dev-image-utils-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Laminarforge Dev Image Utils API
  version: 1.1.0
  contact:
    url: https://laminarforge.dev/contact
  description: 'Operations tagged Image Utils across 2 of this provider''s published API definitions: laminarforge-dev-openapi.json, laminarforge-dev-openapi.json. Each path carries the servers of the definition it was published in.'
tags:
- name: Image Utils
  description: lf-image-utils — QR/barcode generation, EXIF, color analysis, image info, format detection, ASCII art, grayscale, compression
paths:
  /v1/qr-generate:
    get:
      tags:
      - Image Utils
      summary: QR Code Generator
      description: Generates an SVG QR code from input text. Supports configurable module size and output format (SVG or matrix). Max 200 characters input.
      operationId: generateQrCode
      security:
      - ApiKeyAuth: []
      parameters:
      - name: input
        in: query
        required: true
        schema:
          type: string
        description: Text to encode in QR code (max 200 chars)
      - name: text
        in: query
        schema:
          type: string
        description: Alias for 'input'
      - name: size
        in: query
        schema:
          type: integer
          default: 4
          minimum: 2
          maximum: 10
        description: Module size (2-10, affects QR version)
      - name: format
        in: query
        schema:
          type: string
          enum:
          - svg
          - matrix
          default: svg
        description: 'Output format: svg or raw matrix array'
      responses:
        '200':
          description: QR code generated
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  format:
                    type: string
                    example: svg
                  svg:
                    type: string
                    description: SVG markup of QR code
                  text:
                    type: string
                  matrix_size:
                    type: integer
        '400':
          $ref: '#/components/responses/BadRequest'
  /v1/barcode-generate:
    get:
      tags:
      - Image Utils
      summary: Barcode Generator
      description: Generates an SVG barcode (code128-style) from input text. Max 50 characters input.
      operationId: generateBarcode
      security:
      - ApiKeyAuth: []
      parameters:
      - name: input
        in: query
        required: true
        schema:
          type: string
        description: Text to encode in barcode (max 50 chars)
      - name: text
        in: query
        schema:
          type: string
        description: Alias for 'input'
      - name: format
        in: query
        schema:
          type: string
          enum:
          - code128
          default: code128
        description: Barcode format
      responses:
        '200':
          description: Barcode generated
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  format:
                    type: string
                  text:
                    type: string
                  svg:
                    type: string
                    description: SVG markup of barcode
                  bars:
                    type: integer
                    description: Number of bars
        '400':
          $ref: '#/components/responses/BadRequest'
  /v1/exif-read:
    get:
      tags:
      - Image Utils
      summary: EXIF Reader
      description: Parses JPEG/TIFF EXIF metadata from base64-encoded image data or image URL. Extracts format, dimensions, file size, JFIF data, and embedded EXIF strings.
      operationId: readExif
      security:
      - ApiKeyAuth: []
      parameters:
      - name: data
        in: query
        required: true
        schema:
          type: string
        description: Base64-encoded image data or image URL
      - name: input
        in: query
        schema:
          type: string
        description: Alias for 'data'
      responses:
        '200':
          description: EXIF data
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  source:
                    type: string
                    description: Source indicator (URL, base64, or text)
                  exif:
                    type: object
                    description: Parsed EXIF metadata object
                  image_size:
                    type: integer
                  detected_type:
                    type: string
                    description: Detected MIME type
        '400':
          $ref: '#/components/responses/BadRequest'
  /v1/dominant-color:
    get:
      tags:
      - Image Utils
      summary: Dominant Color
      description: Extracts dominant colors from base64 image data or image URL using k-means clustering. Returns colors as RGB values and hex codes with relative weights.
      operationId: extractDominantColors
      security:
      - ApiKeyAuth: []
      parameters:
      - name: data
        in: query
        required: true
        schema:
          type: string
        description: Base64-encoded image data or image URL
      - name: input
        in: query
        schema:
          type: string
        description: Alias for 'data'
      - name: count
        in: query
        schema:
          type: integer
          default: 5
          minimum: 1
          maximum: 20
        description: Number of dominant colors to extract
      responses:
        '200':
          description: Dominant colors
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  source:
                    type: string
                  dominant_colors:
                    type: array
                    items:
                      type: object
                      properties:
                        r:
                          type: integer
                        g:
                          type: integer
                        b:
                          type: integer
                        hex:
                          type: string
                        weight:
                          type: number
                          description: Relative proportion of the color in the image
                  image_size:
                    type: integer
        '400':
          $ref: '#/components/responses/BadRequest'
  /v1/color-palette:
    get:
      tags:
      - Image Utils
      summary: Color Palette
      description: Extracts a color palette from base64 image data or URL using k-means clustering. Similar to dominant colors but optimized for palette generation with configurable color count (2-32).
      operationId: extractColorPalette
      security:
      - ApiKeyAuth: []
      parameters:
      - name: data
        in: query
        required: true
        schema:
          type: string
        description: Base64-encoded image data or image URL
      - name: input
        in: query
        schema:
          type: string
        description: Alias for 'data'
      - name: count
        in: query
        schema:
          type: integer
          default: 8
          minimum: 2
          maximum: 32
        description: Number of palette colors
      responses:
        '200':
          description: Color palette
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  source:
                    type: string
                  palette:
                    type: array
                    items:
                      type: object
                      properties:
                        r:
                          type: integer
                        g:
                          type: integer
                        b:
                          type: integer
                        hex:
                          type: string
                        weight:
                          type: number
                  image_size:
                    type: integer
        '400':
          $ref: '#/components/responses/BadRequest'
  /v1/image-info:
    get:
      tags:
      - Image Utils
      summary: Image Info
      description: Extracts dimensions, format, MIME type, and basic metadata from image data. Supports JPEG, PNG, GIF, BMP, and WebP formats. Accepts base64 data or image URL.
      operationId: getImageInfo
      security:
      - ApiKeyAuth: []
      parameters:
      - name: data
        in: query
        required: true
        schema:
          type: string
        description: Base64-encoded image data or image URL
      - name: input
        in: query
        schema:
          type: string
        description: Alias for 'data'
      responses:
        '200':
          description: Image information
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  source:
                    type: string
                  format:
                    type: string
                    description: Detected image format
                  mime:
                    type: string
                  width:
                    type: integer
                  height:
                    type: integer
                  file_size:
                    type: integer
                  bits_per_pixel:
                    type: integer
                  content_type:
                    type: string
        '400':
          $ref: '#/components/responses/BadRequest'
  /v1/format-detect:
    get:
      tags:
      - Image Utils
      summary: Format Detect
      description: Detects image/video/document format from binary headers (magic bytes). Supports JPEG, PNG, GIF, WebP, BMP, TIFF, SVG, ICO, HEIC, AVIF, and PDF. Accepts base64 data, hex bytes, or URL.
      operationId: detectImageFormat
      security:
      - ApiKeyAuth: []
      parameters:
      - name: data
        in: query
        required: true
        schema:
          type: string
        description: Base64-encoded image data, hex bytes, or image URL
      - name: input
        in: query
        schema:
          type: string
        description: Alias for 'data'
      responses:
        '200':
          description: Format detection results
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  source:
                    type: string
                  formats:
                    type: array
                    items:
                      type: object
                      properties:
                        format:
                          type: string
                        mime:
                          type: string
                        confidence:
                          type: string
                          enum:
                          - high
                          - medium
                        extension:
                          type: string
                  image_size:
                    type: integer
                  content_type:
                    type: string
        '400':
          $ref: '#/components/responses/BadRequest'
  /v1/image-ascii:
    get:
      tags:
      - Image Utils
      summary: Image to ASCII
      description: Converts an image to ASCII art. Supports multiple character sets (standard, simple, blocks, dots, binary) and configurable output width. Accepts base64 image data or URL.
      operationId: convertImageToAscii
      security:
      - ApiKeyAuth: []
      parameters:
      - name: data
        in: query
        required: true
        schema:
          type: string
        description: Base64-encoded image data or image URL
      - name: input
        in: query
        schema:
          type: string
        description: Alias for 'data'
      - name: width
        in: query
        schema:
          type: integer
          default: 80
          minimum: 20
          maximum: 200
        description: Output width in characters
      - name: charset
        in: query
        schema:
          type: string
          enum:
          - standard
          - simple
          - blocks
          - dots
          - binary
          default: standard
        description: Character set for ASCII rendering
      responses:
        '200':
          description: ASCII art
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  source:
                    type: string
                  ascii:
                    type: string
                    description: ASCII art output as multi-line string
                  width:
                    type: integer
                  height:
                    type: integer
                    description: Number of rows in output
                  charset:
                    type: string
        '400':
          $ref: '#/components/responses/BadRequest'
  /v1/grayscale:
    get:
      tags:
      - Image Utils
      summary: Grayscale Converter
      description: 'Analyzes an image and returns grayscale sample data using one of three methods: luminosity (ITU-R BT.601), average, or lightness. Returns per-sample RGB → gray conversions with statistics.'
      operationId: convertToGrayscale
      security:
      - ApiKeyAuth: []
      parameters:
      - name: data
        in: query
        required: true
        schema:
          type: string
        description: Base64-encoded image data or image URL
      - name: input
        in: query
        schema:
          type: string
        description: Alias for 'data'
      - name: method
        in: query
        schema:
          type: string
          enum:
          - luminosity
          - average
          - lightness
          default: luminosity
        description: Grayscale conversion method
      responses:
        '200':
          description: Grayscale analysis
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  source:
                    type: string
                  method:
                    type: string
                  samples:
                    type: integer
                    description: Number of pixel samples analyzed
                  stats:
                    type: object
                    properties:
                      min_gray:
                        type: integer
                      max_gray:
                        type: integer
                      avg_gray:
                        type: integer
                      std_dev:
                        type: integer
                      sample_ratio:
                        type: string
                  method_description:
                    type: string
        '400':
          $ref: '#/components/responses/BadRequest'
  /v1/compress:
    get:
      tags:
      - Image Utils
      summary: Image Compress
      description: Analyzes byte entropy and redundancy in image data to estimate compression potential. Returns entropy score, estimated gzip ratio, and unique byte count. Accepts base64 data or image URL.
      operationId: analyzeImageCompression
      security:
      - ApiKeyAuth: []
      parameters:
      - name: data
        in: query
        required: true
        schema:
          type: string
        description: Base64-encoded image data or image URL
      - name: input
        in: query
        schema:
          type: string
        description: Alias for 'data'
      responses:
        '200':
          description: Compression analysis
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  source:
                    type: string
                  image_size:
                    type: integer
                  compression:
                    type: object
                    properties:
                      entropy:
                        type: number
                      max_possible_entropy:
                        type: number
                      compression_potential:
                        type: string
                      estimated_gzip_ratio:
                        type: string
                      unique_bytes:
                        type: integer
                      note:
                        type: string
        '400':
          $ref: '#/components/responses/BadRequest'
  /v1/image-resize:
    get:
      tags:
      - Image Utils
      summary: Image Resize / Resample
      operationId: v1_image_resize
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
      security:
      - ApiKeyAuth: []
  /v1/image-to-datauri:
    get:
      tags:
      - Image Utils
      summary: Image to Base64 Data URI
      operationId: v1_image_to_datauri
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
      security:
      - ApiKeyAuth: []
  /v1/image-caption:
    get:
      tags:
      - Image Utils
      summary: Image Caption / Meme Generator
      operationId: v1_image_caption
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
      security:
      - ApiKeyAuth: []
  /v1/image-hash:
    get:
      tags:
      - Image Utils
      summary: Image Hash / Checksum
      operationId: v1_image_hash
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
      security:
      - ApiKeyAuth: []
  /v1/favicon-generate:
    get:
      tags:
      - Image Utils
      summary: Favicon Generator
      operationId: v1_favicon_generate
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
      security:
      - ApiKeyAuth: []
  /v1/register:
    post:
      tags:
      - Image Utils
      summary: Register an agent, get a free API key
      operationId: v1_register
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
    get:
      tags:
      - Image Utils
      summary: Agent onboarding info (no key created)
      operationId: getV1Register
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
      x-operation-id-source: normalized
      x-operation-id-original: v1_register
  /v1/exif-gps:
    get:
      tags:
      - Image Utils
      summary: EXIF GPS Decoder
      operationId: v1_exif_gps
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
      security:
      - ApiKeyAuth: []
components:
  responses:
    BadRequest:
      description: Bad request — missing or invalid parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  schemas:
    ErrorResponse:
      type: object
      required:
      - error
      - message
      properties:
        error:
          type: boolean
          example: true
        message:
          type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'API key authentication. Provide via X-API-Key header or Authorization: Bearer <key> header.'
    X402Payment:
      type: apiKey
      in: header
      name: X-PAYMENT
      description: x402 pay-per-call payment. Send base64url(JSON) of the x402 payment payload in X-PAYMENT (or PAYMENT-SIGNATURE). No account or API key needed. Call the endpoint once without credentials and the 402 response tells you the exact price, network, asset and payTo address to pay.
x-refined-from:
- laminarforge-dev-openapi.json
- laminarforge-dev-openapi.json