{"openapi":"3.1.0","info":{"title":"Paintify public API","version":"1.0.0","summary":"Read-only facts about Paintify: painting styles, plans and prices, and deep links into the generator.","description":"Paintify (https://paintify.gallery) turns a photo into a painting in a chosen style.\n\nThis API is public, read-only, needs no key and returns no user data. Responses are cacheable (Cache-Control) and rate limited per client (best effort, about 120 requests a minute).\n\nIt cannot create paintings: send people to the createUrl / create-link deep link, where they upload their photo.\n\nThe same data is available to AI assistants as an MCP server (Streamable HTTP) at https://paintify.gallery/mcp. Human-readable docs: https://paintify.gallery/developers.","contact":{"email":"support@paintify.gallery","url":"https://paintify.gallery/developers"},"termsOfService":"https://paintify.gallery/terms"},"servers":[{"url":"https://paintify.gallery"}],"security":[],"externalDocs":{"url":"https://paintify.gallery/developers","description":"Deep links, API and MCP server"},"paths":{"/api/v1/styles":{"get":{"operationId":"listStyles","summary":"List painting styles","description":"Every style, with an example before/after image pair, the plans that include it and a deep link that opens the generator with it.","parameters":[{"name":"free_only","in":"query","required":false,"schema":{"type":"boolean"},"description":"Only styles on the free plan."}],"responses":{"200":{"description":"The styles, in the generator's order.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"}},"content":{"application/json":{"schema":{"type":"object","required":["styles"],"properties":{"styles":{"type":"array","items":{"$ref":"#/components/schemas/Style"}}}}}}},"429":{"description":"Too many requests from this client. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/styles/{id}":{"get":{"operationId":"getStyle","summary":"Get one style","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Style id (e.g. \"van Gogh\") or slug (e.g. \"van-gogh\"), any case."}],"responses":{"200":{"description":"The style.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Style"}}}},"404":{"description":"No such style.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests from this client. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/pricing":{"get":{"operationId":"getPricing","summary":"Plans and prices","description":"The free plan and the monthly subscriptions, in USD, with their image limits and styles.","responses":{"200":{"description":"Plans.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pricing"}}}},"429":{"description":"Too many requests from this client. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/pet-portraits":{"get":{"operationId":"listPetPortraitPages","summary":"Pet portrait pages","responses":{"200":{"description":"Pages under /pet-portraits.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"}},"content":{"application/json":{"schema":{"type":"object","required":["pages"],"properties":{"pages":{"type":"array","items":{"$ref":"#/components/schemas/PetPortraitPage"}}}}}}},"429":{"description":"Too many requests from this client. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/create-link":{"get":{"operationId":"getCreateLink","summary":"Deep link into the generator","description":"Builds /create?style=&subject=. Unknown values are dropped from the link, never guessed. The link survives sign-up and sign-in.","parameters":[{"name":"style","in":"query","required":false,"schema":{"type":"string"},"description":"Style id or slug."},{"name":"subject","in":"query","required":false,"schema":{"type":"string","enum":["pet","person","group","landscape"]}}],"responses":{"200":{"description":"The link.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLink"}}}},"429":{"description":"Too many requests from this client. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/status":{"get":{"operationId":"getStatus","summary":"Service status","description":"Whether this API is serving. Not cached. Does not probe the image generation provider.","responses":{"200":{"description":"Status.","headers":{"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}}},"429":{"description":"Too many requests from this client. Retry after the Retry-After header's seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per window."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in this window."}},"schemas":{"Image":{"type":"object","required":["url","width","height","alt"],"properties":{"url":{"type":"string","format":"uri"},"width":{"type":"integer"},"height":{"type":"integer"},"alt":{"type":"string"}}},"Style":{"type":"object","required":["id","slug","label","kind","description","freePlan","plans","example","pages","createUrl"],"properties":{"id":{"type":"string","enum":["picasso","monet","da Vinci","van Gogh","dali","warhol","kahlo","renaissance portrait","royal portrait","starry night","watercolor"]},"slug":{"type":"string","examples":["van-gogh"]},"label":{"type":"string"},"kind":{"type":"string","enum":["painter","preset"]},"description":{"type":"string"},"freePlan":{"type":"boolean"},"plans":{"type":"array","items":{"type":"string","enum":["Spark","Creator","Visionary"]}},"example":{"type":"object","required":["original","painted"],"description":"A real, unretouched result of this style next to the photo it came from.","properties":{"original":{"$ref":"#/components/schemas/Image"},"painted":{"$ref":"#/components/schemas/Image"}}},"pages":{"type":"array","items":{"type":"object","required":["title","url"],"properties":{"title":{"type":"string"},"url":{"type":"string","format":"uri"}}}},"createUrl":{"type":"string","format":"uri"}}},"Plan":{"type":"object","required":["name","priceUsdPerMonth","free","imageLimit","limitPeriod","styleAccess","styles","features"],"properties":{"name":{"type":"string","enum":["Spark","Creator","Visionary"]},"priceUsdPerMonth":{"type":"number"},"free":{"type":"boolean"},"imageLimit":{"oneOf":[{"type":"integer"},{"type":"string","const":"unlimited"}]},"limitPeriod":{"type":"string","enum":["lifetime","month"]},"styleAccess":{"type":"string","enum":["free styles","all styles"]},"styles":{"type":"array","items":{"type":"string"}},"features":{"type":"array","items":{"type":"string"}}}},"Pricing":{"type":"object","required":["currency","plans","notes","pricingPageUrl","signUpUrl"],"properties":{"currency":{"type":"string","const":"USD"},"plans":{"type":"array","items":{"$ref":"#/components/schemas/Plan"}},"notes":{"type":"array","items":{"type":"string"}},"pricingPageUrl":{"type":"string","format":"uri"},"signUpUrl":{"type":"string","format":"uri"}}},"PetPortraitPage":{"type":"object","required":["slug","title","description","url","styles","createUrl"],"properties":{"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"url":{"type":"string","format":"uri"},"styles":{"type":"array","items":{"type":"string"}},"createUrl":{"type":"string","format":"uri"}}},"CreateLink":{"type":"object","required":["url","style","subject","freePlan","instructions"],"properties":{"url":{"type":"string","format":"uri"},"style":{"oneOf":[{"type":"null"},{"type":"object","required":["id","label"],"properties":{"id":{"type":"string"},"label":{"type":"string"}}}]},"subject":{"oneOf":[{"type":"null"},{"type":"string","enum":["pet","person","group","landscape"]}]},"freePlan":{"oneOf":[{"type":"boolean"},{"type":"null"}]},"instructions":{"type":"string"}}},"Status":{"type":"object","required":["status","service","apiVersion","time","agentGeneration","note"],"properties":{"status":{"type":"string","const":"ok"},"service":{"type":"string"},"apiVersion":{"type":"string"},"time":{"type":"string","format":"date-time"},"agentGeneration":{"type":"string","enum":["disabled","enabled"]},"note":{"type":"string"}}},"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}