{"openapi":"3.1.1","info":{"title":"Symelo placeholder image API","version":"1.0","description":"Generate public image URLs for website img tags and demos. No account or API key is required. Defaults produce an 800 × 450 SVG."},"servers":[{"url":"https://symelo.com"}],"externalDocs":{"url":"https://symelo.com/docs/placeholder-images-api.md"},"paths":{"/api/placeholder":{"get":{"operationId":"generatePlaceholderImage","summary":"Generate a placeholder image","security":[],"description":"Use this URL directly as an img src. Omit default parameters. Choose either image or category. Width times height must not exceed 4,000,000 pixels. Labels and image URLs are public. The format parameter selects the output; Accept does not override it. Unknown or duplicate parameters are rejected.","parameters":[{"name":"width","in":"query","description":"Image width in pixels.","required":false,"schema":{"type":"integer","minimum":1,"maximum":4096,"default":800}},{"name":"height","in":"query","description":"Image height in pixels.","required":false,"schema":{"type":"integer","minimum":1,"maximum":4096,"default":450}},{"name":"format","in":"query","schema":{"type":"string","enum":["svg","png","jpg","jpeg"],"default":"svg"}},{"name":"text","in":"query","description":"Up to 200 Unicode characters and 12 lines. Defaults to dimensions for solid backgrounds and empty for photos. An explicit empty value hides the label. Control characters are rejected.","schema":{"type":"string","maxLength":200}},{"name":"bg","in":"query","description":"Solid background hex color. URL-encode # if present.","schema":{"type":"string","pattern":"^#?(?:[a-fA-F0-9]{3}|[a-fA-F0-9]{6})$","default":"#eaf0f5"}},{"name":"color","in":"query","description":"Text hex color. Defaults to white for photos. URL-encode # if present.","schema":{"type":"string","pattern":"^#?(?:[a-fA-F0-9]{3}|[a-fA-F0-9]{6})$"}},{"name":"fontSize","in":"query","description":"Label font size; text shrinks to fit.","required":false,"schema":{"type":"integer","minimum":8,"maximum":256,"default":48}},{"name":"image","in":"query","description":"Specific background ID. Mutually exclusive with category.","schema":{"type":"string","enum":["nature-1","nature-2","architecture-1","architecture-2","abstract-1","abstract-2","food-1","food-2","workspace-1","workspace-2","travel-1","travel-2","nature-3","nature-4","nature-5","nature-6","nature-7","nature-8","nature-9","nature-10","nature-11","nature-12","architecture-3","architecture-4","architecture-5","architecture-6","architecture-7","architecture-8","architecture-9","architecture-10","architecture-11","architecture-12","abstract-3","abstract-4","abstract-5","abstract-6","abstract-7","abstract-8","abstract-9","abstract-10","abstract-11","abstract-12","food-3","food-4","food-5","food-6","food-7","food-8","food-9","food-10","food-11","food-12","workspace-3","workspace-4","workspace-5","workspace-6","workspace-7","workspace-8","workspace-9","workspace-10","workspace-11","workspace-12","travel-3","travel-4","travel-5","travel-6","travel-7","travel-8","travel-9","travel-10","travel-11","travel-12","animals-1","animals-2","animals-3","animals-4","animals-5","animals-6","animals-7","animals-8","animals-9","animals-10","animals-11","animals-12","interiors-1","interiors-2","interiors-3","interiors-4","interiors-5","interiors-6","interiors-7","interiors-8","interiors-9","interiors-10","interiors-11","interiors-12","technology-1","technology-2","technology-3","technology-4","technology-5","technology-6","technology-7","technology-8","technology-9","technology-10","technology-11","technology-12"]}},{"name":"category","in":"query","description":"Background category. Mutually exclusive with image.","schema":{"type":"string","enum":["nature","architecture","abstract","food","workspace","travel","animals","interiors","technology"]}},{"name":"seed","in":"query","description":"Stable category selection; cycles through the 12 category images. Not with random.","required":false,"schema":{"type":"integer","minimum":0,"maximum":2147483647,"default":0}},{"name":"random","in":"query","description":"A flag with no value (random=1 and random=true also work): a different photo on every request, from the category if given, otherwise from the whole library. Not with image or seed. Responses are not cached; X-Placeholder-Image names the photo used.","allowEmptyValue":true,"schema":{"type":"string","enum":["","1","true"]}},{"name":"overlay","in":"query","description":"Black photo overlay percentage. Ignored for solid backgrounds.","required":false,"schema":{"type":"integer","minimum":0,"maximum":80,"default":0}},{"name":"quality","in":"query","description":"JPG quality. Ignored for SVG and PNG.","required":false,"schema":{"type":"integer","minimum":40,"maximum":95,"default":85}},{"name":"If-None-Match","in":"header","description":"ETag from a previous response.","schema":{"type":"string"}}],"responses":{"200":{"description":"Generated image. SVG photos embed the image data.","headers":{"ETag":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string"}},"X-Placeholder-Cache":{"schema":{"type":"string","enum":["HIT","MISS"]}},"X-Placeholder-Image":{"description":"The ID of the photo used, when there is one.","schema":{"type":"string"}}},"content":{"image/svg+xml":{"schema":{"type":"string"}},"image/png":{},"image/jpeg":{}}},"304":{"description":"The supplied ETag matches; no response body."},"400":{"description":"Invalid parameters.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}},"405":{"description":"Method not allowed. Use GET, HEAD, or OPTIONS.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}},"500":{"description":"Image rendering failed.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}},"503":{"description":"Render queue is full. Retry after the indicated delay.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":1}}}}}},"head":{"operationId":"headPlaceholderImage","summary":"Get image headers without a body","parameters":[{"name":"width","in":"query","description":"Image width in pixels.","required":false,"schema":{"type":"integer","minimum":1,"maximum":4096,"default":800}},{"name":"height","in":"query","description":"Image height in pixels.","required":false,"schema":{"type":"integer","minimum":1,"maximum":4096,"default":450}},{"name":"format","in":"query","schema":{"type":"string","enum":["svg","png","jpg","jpeg"],"default":"svg"}},{"name":"text","in":"query","description":"Up to 200 Unicode characters and 12 lines. Defaults to dimensions for solid backgrounds and empty for photos. An explicit empty value hides the label. Control characters are rejected.","schema":{"type":"string","maxLength":200}},{"name":"bg","in":"query","description":"Solid background hex color. URL-encode # if present.","schema":{"type":"string","pattern":"^#?(?:[a-fA-F0-9]{3}|[a-fA-F0-9]{6})$","default":"#eaf0f5"}},{"name":"color","in":"query","description":"Text hex color. Defaults to white for photos. URL-encode # if present.","schema":{"type":"string","pattern":"^#?(?:[a-fA-F0-9]{3}|[a-fA-F0-9]{6})$"}},{"name":"fontSize","in":"query","description":"Label font size; text shrinks to fit.","required":false,"schema":{"type":"integer","minimum":8,"maximum":256,"default":48}},{"name":"image","in":"query","description":"Specific background ID. Mutually exclusive with category.","schema":{"type":"string","enum":["nature-1","nature-2","architecture-1","architecture-2","abstract-1","abstract-2","food-1","food-2","workspace-1","workspace-2","travel-1","travel-2","nature-3","nature-4","nature-5","nature-6","nature-7","nature-8","nature-9","nature-10","nature-11","nature-12","architecture-3","architecture-4","architecture-5","architecture-6","architecture-7","architecture-8","architecture-9","architecture-10","architecture-11","architecture-12","abstract-3","abstract-4","abstract-5","abstract-6","abstract-7","abstract-8","abstract-9","abstract-10","abstract-11","abstract-12","food-3","food-4","food-5","food-6","food-7","food-8","food-9","food-10","food-11","food-12","workspace-3","workspace-4","workspace-5","workspace-6","workspace-7","workspace-8","workspace-9","workspace-10","workspace-11","workspace-12","travel-3","travel-4","travel-5","travel-6","travel-7","travel-8","travel-9","travel-10","travel-11","travel-12","animals-1","animals-2","animals-3","animals-4","animals-5","animals-6","animals-7","animals-8","animals-9","animals-10","animals-11","animals-12","interiors-1","interiors-2","interiors-3","interiors-4","interiors-5","interiors-6","interiors-7","interiors-8","interiors-9","interiors-10","interiors-11","interiors-12","technology-1","technology-2","technology-3","technology-4","technology-5","technology-6","technology-7","technology-8","technology-9","technology-10","technology-11","technology-12"]}},{"name":"category","in":"query","description":"Background category. Mutually exclusive with image.","schema":{"type":"string","enum":["nature","architecture","abstract","food","workspace","travel","animals","interiors","technology"]}},{"name":"seed","in":"query","description":"Stable category selection; cycles through the 12 category images. Not with random.","required":false,"schema":{"type":"integer","minimum":0,"maximum":2147483647,"default":0}},{"name":"random","in":"query","description":"A flag with no value (random=1 and random=true also work): a different photo on every request, from the category if given, otherwise from the whole library. Not with image or seed. Responses are not cached; X-Placeholder-Image names the photo used.","allowEmptyValue":true,"schema":{"type":"string","enum":["","1","true"]}},{"name":"overlay","in":"query","description":"Black photo overlay percentage. Ignored for solid backgrounds.","required":false,"schema":{"type":"integer","minimum":0,"maximum":80,"default":0}},{"name":"quality","in":"query","description":"JPG quality. Ignored for SVG and PNG.","required":false,"schema":{"type":"integer","minimum":40,"maximum":95,"default":85}},{"name":"If-None-Match","in":"header","description":"ETag from a previous response.","schema":{"type":"string"}}],"description":"Accepts the same query parameters as GET.","security":[],"responses":{"200":{"description":"Image metadata with Content-Type, Content-Length, and ETag headers; no body."},"304":{"description":"ETag matches."},"400":{"description":"Invalid parameters."},"503":{"description":"Render queue is full."}}}},"/api/placeholder/image.{extension}":{"get":{"operationId":"generateCacheablePlaceholderImage","summary":"Generate a placeholder image","security":[],"description":"Preferred URL for embedded images. The filename selects the format and permits default CDN caching. If supplied, the format query parameter must match the extension. Browser TTL is one hour and shared-cache TTL is one day. All other parameters and limits match /api/placeholder.","parameters":[{"name":"width","in":"query","description":"Image width in pixels.","required":false,"schema":{"type":"integer","minimum":1,"maximum":4096,"default":800}},{"name":"height","in":"query","description":"Image height in pixels.","required":false,"schema":{"type":"integer","minimum":1,"maximum":4096,"default":450}},{"name":"text","in":"query","description":"Up to 200 Unicode characters and 12 lines. Defaults to dimensions for solid backgrounds and empty for photos. An explicit empty value hides the label. Control characters are rejected.","schema":{"type":"string","maxLength":200}},{"name":"bg","in":"query","description":"Solid background hex color. URL-encode # if present.","schema":{"type":"string","pattern":"^#?(?:[a-fA-F0-9]{3}|[a-fA-F0-9]{6})$","default":"#eaf0f5"}},{"name":"color","in":"query","description":"Text hex color. Defaults to white for photos. URL-encode # if present.","schema":{"type":"string","pattern":"^#?(?:[a-fA-F0-9]{3}|[a-fA-F0-9]{6})$"}},{"name":"fontSize","in":"query","description":"Label font size; text shrinks to fit.","required":false,"schema":{"type":"integer","minimum":8,"maximum":256,"default":48}},{"name":"image","in":"query","description":"Specific background ID. Mutually exclusive with category.","schema":{"type":"string","enum":["nature-1","nature-2","architecture-1","architecture-2","abstract-1","abstract-2","food-1","food-2","workspace-1","workspace-2","travel-1","travel-2","nature-3","nature-4","nature-5","nature-6","nature-7","nature-8","nature-9","nature-10","nature-11","nature-12","architecture-3","architecture-4","architecture-5","architecture-6","architecture-7","architecture-8","architecture-9","architecture-10","architecture-11","architecture-12","abstract-3","abstract-4","abstract-5","abstract-6","abstract-7","abstract-8","abstract-9","abstract-10","abstract-11","abstract-12","food-3","food-4","food-5","food-6","food-7","food-8","food-9","food-10","food-11","food-12","workspace-3","workspace-4","workspace-5","workspace-6","workspace-7","workspace-8","workspace-9","workspace-10","workspace-11","workspace-12","travel-3","travel-4","travel-5","travel-6","travel-7","travel-8","travel-9","travel-10","travel-11","travel-12","animals-1","animals-2","animals-3","animals-4","animals-5","animals-6","animals-7","animals-8","animals-9","animals-10","animals-11","animals-12","interiors-1","interiors-2","interiors-3","interiors-4","interiors-5","interiors-6","interiors-7","interiors-8","interiors-9","interiors-10","interiors-11","interiors-12","technology-1","technology-2","technology-3","technology-4","technology-5","technology-6","technology-7","technology-8","technology-9","technology-10","technology-11","technology-12"]}},{"name":"category","in":"query","description":"Background category. Mutually exclusive with image.","schema":{"type":"string","enum":["nature","architecture","abstract","food","workspace","travel","animals","interiors","technology"]}},{"name":"seed","in":"query","description":"Stable category selection; cycles through the 12 category images. Not with random.","required":false,"schema":{"type":"integer","minimum":0,"maximum":2147483647,"default":0}},{"name":"random","in":"query","description":"A flag with no value (random=1 and random=true also work): a different photo on every request, from the category if given, otherwise from the whole library. Not with image or seed. Responses are not cached; X-Placeholder-Image names the photo used.","allowEmptyValue":true,"schema":{"type":"string","enum":["","1","true"]}},{"name":"overlay","in":"query","description":"Black photo overlay percentage. Ignored for solid backgrounds.","required":false,"schema":{"type":"integer","minimum":0,"maximum":80,"default":0}},{"name":"quality","in":"query","description":"JPG quality. Ignored for SVG and PNG.","required":false,"schema":{"type":"integer","minimum":40,"maximum":95,"default":85}},{"name":"If-None-Match","in":"header","description":"ETag from a previous response.","schema":{"type":"string"}},{"name":"extension","in":"path","required":true,"description":"Output image format.","schema":{"type":"string","enum":["svg","png","jpg"]}}],"responses":{"200":{"description":"Generated image. SVG photos embed the image data.","headers":{"ETag":{"schema":{"type":"string"}},"Cache-Control":{"schema":{"type":"string"}},"X-Placeholder-Cache":{"schema":{"type":"string","enum":["HIT","MISS"]}},"X-Placeholder-Image":{"description":"The ID of the photo used, when there is one.","schema":{"type":"string"}}},"content":{"image/svg+xml":{"schema":{"type":"string"}},"image/png":{},"image/jpeg":{}}},"304":{"description":"The supplied ETag matches; no response body."},"400":{"description":"Invalid parameters.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}},"405":{"description":"Method not allowed. Use GET, HEAD, or OPTIONS.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}},"500":{"description":"Image rendering failed.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}}},"503":{"description":"Render queue is full. Retry after the indicated delay.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}}},"headers":{"Retry-After":{"schema":{"type":"integer","minimum":1}}}}}},"head":{"operationId":"headCacheablePlaceholderImage","summary":"Get image headers without a body","parameters":[{"name":"width","in":"query","description":"Image width in pixels.","required":false,"schema":{"type":"integer","minimum":1,"maximum":4096,"default":800}},{"name":"height","in":"query","description":"Image height in pixels.","required":false,"schema":{"type":"integer","minimum":1,"maximum":4096,"default":450}},{"name":"text","in":"query","description":"Up to 200 Unicode characters and 12 lines. Defaults to dimensions for solid backgrounds and empty for photos. An explicit empty value hides the label. Control characters are rejected.","schema":{"type":"string","maxLength":200}},{"name":"bg","in":"query","description":"Solid background hex color. URL-encode # if present.","schema":{"type":"string","pattern":"^#?(?:[a-fA-F0-9]{3}|[a-fA-F0-9]{6})$","default":"#eaf0f5"}},{"name":"color","in":"query","description":"Text hex color. Defaults to white for photos. URL-encode # if present.","schema":{"type":"string","pattern":"^#?(?:[a-fA-F0-9]{3}|[a-fA-F0-9]{6})$"}},{"name":"fontSize","in":"query","description":"Label font size; text shrinks to fit.","required":false,"schema":{"type":"integer","minimum":8,"maximum":256,"default":48}},{"name":"image","in":"query","description":"Specific background ID. Mutually exclusive with category.","schema":{"type":"string","enum":["nature-1","nature-2","architecture-1","architecture-2","abstract-1","abstract-2","food-1","food-2","workspace-1","workspace-2","travel-1","travel-2","nature-3","nature-4","nature-5","nature-6","nature-7","nature-8","nature-9","nature-10","nature-11","nature-12","architecture-3","architecture-4","architecture-5","architecture-6","architecture-7","architecture-8","architecture-9","architecture-10","architecture-11","architecture-12","abstract-3","abstract-4","abstract-5","abstract-6","abstract-7","abstract-8","abstract-9","abstract-10","abstract-11","abstract-12","food-3","food-4","food-5","food-6","food-7","food-8","food-9","food-10","food-11","food-12","workspace-3","workspace-4","workspace-5","workspace-6","workspace-7","workspace-8","workspace-9","workspace-10","workspace-11","workspace-12","travel-3","travel-4","travel-5","travel-6","travel-7","travel-8","travel-9","travel-10","travel-11","travel-12","animals-1","animals-2","animals-3","animals-4","animals-5","animals-6","animals-7","animals-8","animals-9","animals-10","animals-11","animals-12","interiors-1","interiors-2","interiors-3","interiors-4","interiors-5","interiors-6","interiors-7","interiors-8","interiors-9","interiors-10","interiors-11","interiors-12","technology-1","technology-2","technology-3","technology-4","technology-5","technology-6","technology-7","technology-8","technology-9","technology-10","technology-11","technology-12"]}},{"name":"category","in":"query","description":"Background category. Mutually exclusive with image.","schema":{"type":"string","enum":["nature","architecture","abstract","food","workspace","travel","animals","interiors","technology"]}},{"name":"seed","in":"query","description":"Stable category selection; cycles through the 12 category images. Not with random.","required":false,"schema":{"type":"integer","minimum":0,"maximum":2147483647,"default":0}},{"name":"random","in":"query","description":"A flag with no value (random=1 and random=true also work): a different photo on every request, from the category if given, otherwise from the whole library. Not with image or seed. Responses are not cached; X-Placeholder-Image names the photo used.","allowEmptyValue":true,"schema":{"type":"string","enum":["","1","true"]}},{"name":"overlay","in":"query","description":"Black photo overlay percentage. Ignored for solid backgrounds.","required":false,"schema":{"type":"integer","minimum":0,"maximum":80,"default":0}},{"name":"quality","in":"query","description":"JPG quality. Ignored for SVG and PNG.","required":false,"schema":{"type":"integer","minimum":40,"maximum":95,"default":85}},{"name":"If-None-Match","in":"header","description":"ETag from a previous response.","schema":{"type":"string"}},{"name":"extension","in":"path","required":true,"description":"Output image format.","schema":{"type":"string","enum":["svg","png","jpg"]}}],"description":"Accepts the same query parameters as GET.","security":[],"responses":{"200":{"description":"Image metadata with Content-Type, Content-Length, and ETag headers; no body."},"304":{"description":"ETag matches."},"400":{"description":"Invalid parameters."},"503":{"description":"Render queue is full."}}}},"/api/placeholder/catalog.json":{"get":{"operationId":"listPlaceholderImages","summary":"List the photo categories and IDs","security":[],"description":"Every category with a random-photo URL, and every photo with its ID, title, image URL, original and thumbnail.","responses":{"200":{"description":"The catalog.","content":{"application/json":{"schema":{"type":"object","required":["image","random","categories"],"properties":{"image":{"type":"string","format":"uri"},"random":{"type":"string","format":"uri"},"categories":{"type":"array","items":{"type":"object","required":["id","title","random","images"],"properties":{"id":{"type":"string","enum":["nature","architecture","abstract","food","workspace","travel","animals","interiors","technology"]},"title":{"type":"string"},"random":{"type":"string","format":"uri"},"images":{"type":"array","items":{"type":"object","required":["id","title","url","original","thumbnail"],"properties":{"id":{"type":"string"},"title":{"type":"string"},"url":{"type":"string","format":"uri"},"original":{"type":"string","format":"uri"},"thumbnail":{"type":"string","format":"uri"}}}}}}}}}}}}}}}}}