{"uid":"cap_8UZ71W83aMXnlj5XefqHP","slug":"haven-image-restore-api-639a4705","name":"Haven Image Restore API","description":"Haven is a private AI agent for your home. Join the waitlist for h1 speaker updates and early app access.","url":"https://api.havenagent.ai/x402/api/v1/image/restore","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mediaType":{"enum":["image/png","image/jpeg"],"type":"string"},"imageBase64":{"type":"string","description":"base64 image bytes, no data-URI prefix"},"restorationMode":{"enum":["auto","denoise","deblur","dehaze"],"type":"string","default":"auto"}}},"responseSchema":{"type":"json","example":{"kind":"image_restore","jobId":"00000000-0000-0000-0000-000000000000","status":"queued","resultUrl":"https://api.havenagent.ai/x402/api/v1/image/restore/jobs/00000000-0000-0000-0000-000000000000/result","statusUrl":"https://api.havenagent.ai/x402/api/v1/image/restore/jobs/00000000-0000-0000-0000-000000000000","etaSeconds":300,"pollBudgetSeconds":1200}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_di-6xWs7ZpZfbWFb-szEq","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Restores degraded images by applying AI-powered denoising, deblurring, or dehazing to a base64-encoded image, returning a job ID and result URL for polling.","exampleAgentPrompt":"Can you restore this old blurry family photo for me? I'll send it as a JPEG — use deblur mode to fix the blur and give me the restored version when it's done.","exampleUseCases":[{"title":"Restoring hazy outdoor landscape photo","prompt":"I have a hazy outdoor JPEG photo from a foggy day — can you run dehaze restoration on it and give me the cleaned-up version?"},{"title":"Denoising a dark low-light image","prompt":"This photo I took at night is really grainy and noisy. Can you denoise this PNG image so it looks cleaner?"},{"title":"Auto-enhancing a degraded scanned document image","prompt":"I have a scanned JPEG image that looks degraded and unclear — just run it through auto restoration mode and get me the best result you can."}],"resultDescription":"A JSON object containing a job ID (UUID), initial status ('queued'), a result URL to retrieve the restored image once complete, a status URL for polling job progress, an estimated completion time in seconds (etaSeconds), and a maximum poll budget in seconds (pollBudgetSeconds). The restored image is retrieved separately via the result URL once the job completes.","failureModes":["Unsupported media type — only image/png and image/jpeg accepted; other formats will be rejected","Malformed base64 string — image bytes must be raw base64 without a data-URI prefix","Image too large — oversized payloads may be rejected or timeout","Payment failure — x402 payment of 0.1 USDC must succeed before processing begins","Job timeout — if processing exceeds pollBudgetSeconds (1200s), the job may expire","Network timeout on polling — long ETA requires client-side retry logic"],"whenToPreferThis":"Choose this endpoint when you need asynchronous AI-powered restoration of a degraded image (noisy, blurry, or hazy) and can handle a polling workflow. It is particularly well-suited for batch or background use cases where a result in ~5 minutes is acceptable. Prefer this over synchronous alternatives when the image quality problem is well-defined (deblur, denoise, or dehaze) or when you want the model to auto-select the best restoration approach.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:37:37.184Z","isFirstParty":false}