PhotoGen®
ProjectsBlogPresetsStudioWallpapersDevelopers

PhotoGen

Elevating visual storytelling through intelligent, AI-powered tools.

hello@photogen.studio
Explore
  • Home
  • Presets
  • Wallpapers
  • Gallery
Studio
  • Studio
  • About
  • Insights
  • Contact
  • Privacy
Platform
  • API Docs
  • llms.txt
  • Sitemap
  • Instagram
© 2026 Photogen StudioAll rights reserved
Built by _visualsbytalha
Lahore, Pakistan
PhotoGen Developer Platform • v2.4

PhotoGen Developer Documentation & APIs

Build on top of PhotoGen. Access our programmatic REST API, integrate via the Model Context Protocol (MCP), or utilize OpenAPI 3.1 specifications to incorporate AI photography assets into your applications and agent workflows.

OpenAPI Specification (JSON)/.well-known/mcp Handshake

Machine Discoverability & Protocols

PhotoGen natively implements modern agentic web standards. You can negotiate markdown formats using standard HTTP headers or inspect machine-readable manifests:

Accept-Markdown Negotiation

Send Accept: text/markdown with any request to receive clean, parseable Markdown.

LLMs Manifest

Inspect /llms.txt and /llms-full.txt for LLM system prompt context.

MCP Server

Handshake via /.well-known/mcp using JSON-RPC 2.0 or Streamable HTTP.

REST API Endpoints

All PhotoGen REST endpoints return standard JSON responses with cache-control headers, ETags, and CORS enabled for browser & server-side access.

GET/api/presetsList & Filter Presets

Retrieve paginated Lightroom and color grading preset packs with category filters, tags, and asset download URLs.

Parameters:page, limit, category, search
GET/api/galleryCurated Masterpieces Gallery

Query high-resolution photography captures, prompt parameters, lighting attributes, and Cloudinary CDN URLs.

Parameters:page, limit, category, featured
GET/api/wallpapersUltra-HD 4K Wallpapers

Search and download responsive desktop (16:9, 21:9) and mobile (9:16) wallpaper assets.

Parameters:page, limit, category, orientation
GET/api/blogCreative Journal & Insights

Access technical articles on color theory, prompt engineering architectures, and photographic techniques.

Parameters:page, limit, tag, slug
POST/api/ai-imageGenerative AI Image Synthesis

Submit descriptive prompts to generate photographic assets with custom aspect ratios, style presets, and lighting models.

Parameters:prompt, style, aspectRatio, negativePrompt
POST/api/mcpModel Context Protocol (MCP) Handshake

Execute MCP tools (tools/list, tools/call) via Streamable HTTP / JSON-RPC 2.0 for autonomous AI agents.

Parameters:jsonrpc, method, params, id

Model Context Protocol (MCP) Tools

PhotoGen exposes native Model Context Protocol tools. AI assistants (such as Claude Desktop, ChatGPT, or autonomous agents) can connect to https://photogen2.vercel.app/api/mcp to discover and invoke tools:

search_gallery

Search PhotoGen's curated photographic gallery by keyword, mood, or camera style.

list_presets

List available Lightroom presets, color profiles, and style attributes.

get_preset_details

Get detailed curve parameters and installation metadata for a specific preset ID.

search_wallpapers

Find 4K desktop and mobile wallpapers matching resolution and aesthetic themes.

list_blog_posts

Query insights, tutorials, and color science guides from the PhotoGen journal.

get_developer_docs

Retrieve machine-readable API and tool schemas for PhotoGen platform services.

API Versioning, Rate Limits & Error Model

API Versioning Strategy

PhotoGen supports URL path versioning (/api/v1/*) and header-based negotiation via X-API-Version: 1.0.

Deprecation Policy: Minimum 180 days advance notice before sunset with Sunset and Deprecation HTTP headers.

RFC Rate Limit Headers

All API responses return standardized RFC rate-limiting headers so autonomous agents can self-throttle in real time:

  • • RateLimit-Limit: 60
  • • RateLimit-Remaining: 59
  • • RateLimit-Reset: 60
  • • On 429: Retry-After: 60

RFC 9457 Typed Error Model

All error responses (4xx and 5xx) return machine-readable structured JSON (application/problem+json):

{"error": {"code": "NOT_FOUND", "status": 404, "hint": "..."}}