{"openapi":"3.1.0","info":{"title":"AI Watermark Remover API","version":"1.0.0","description":"Process only images you own or have permission to edit. One successful paid removal uses one account credit.","contact":{"email":"info@solosoft.az"},"license":{"name":"Terms of Use","url":"https://aiwatermarkremover.com/terms"}},"servers":[{"url":"https://aiwatermarkremover.com/v1"}],"security":[{"bearerAuth":[]}],"paths":{"/me":{"get":{"operationId":"getAccount","summary":"Get the authenticated account","responses":{"200":{"description":"Account details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"401":{"$ref":"#/components/responses/Unauthorized"}}}},"/remove-watermark":{"post":{"operationId":"removeWatermark","summary":"Remove an authorized watermark from one image","description":"The request remains open while processing. Configure a client timeout of at least 120 seconds.","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["image","rights_confirmed"],"properties":{"image":{"type":"string","format":"binary","description":"PNG, JPEG, WebP, or HEIC; maximum 5MB."},"rights_confirmed":{"type":"boolean","const":true,"description":"Confirms ownership or permission to edit."}}}}}},"responses":{"200":{"description":"Image processed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemovalResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"description":"Insufficient credits","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Image exceeds 5MB","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate or weekly limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"AIWM API key"}},"responses":{"BadRequest":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"Unauthorized":{"description":"Invalid or missing API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"schemas":{"Account":{"type":"object","required":["id","email","credits","subscriptionStatus"],"properties":{"id":{"type":"string","format":"uuid"},"email":{"type":"string","format":"email"},"name":{"type":["string","null"]},"credits":{"type":"integer","minimum":0},"subscriptionStatus":{"type":"string"}}},"RemovalResponse":{"type":"object","required":["data"],"properties":{"data":{"type":"object","required":["processedUrl","processedUrlExpiresIn","credits","creditsDeducted","weeklyUsageCount","remainingWeeklyUses","weeklyLimit"],"properties":{"processedUrl":{"type":"string","format":"uri"},"processedUrlExpiresIn":{"type":"integer","const":3600},"credits":{"type":"integer","minimum":0},"creditsDeducted":{"type":"boolean"},"weeklyUsageCount":{"type":"integer","minimum":0},"remainingWeeklyUses":{"type":"integer","minimum":0},"weeklyLimit":{"type":"integer","const":300}}}}},"ErrorResponse":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","additionalProperties":true}}}}}}}}