{"uid":"cap_U6MC5HzpMVYSh46Rgj9Tf","slug":"haven-image-upscale-2a2ed0bb","name":"Haven Image Upscale","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/upscale?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mode":{"enum":["auto","face"],"type":"string","default":"auto"},"factor":{"enum":[2,4],"type":"number","default":2},"mediaType":{"enum":["image/png","image/jpeg"],"type":"string"},"imageBase64":{"type":"string","description":"base64 image bytes, no data-URI prefix"}}},"responseSchema":{"type":"json","example":{"kind":"image_upscale","jobId":"00000000-0000-0000-0000-000000000000","status":"queued","resultUrl":"https://api.havenagent.ai/x402/api/v1/image/upscale/jobs/00000000-0000-0000-0000-000000000000/result","statusUrl":"https://api.havenagent.ai/x402/api/v1/image/upscale/jobs/00000000-0000-0000-0000-000000000000","etaSeconds":300,"pollBudgetSeconds":1200}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.06","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":1,"rating":{"score":"0.08","successRate":"0.00","reviews":1,"stars":"1.3","state":"rated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.06/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.06","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.06","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1GJOH1LXRZo3z9fSkKOeW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.06","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Upscales an image by 2x or 4x using AI, with an optional face-enhancement mode, returning a job ID and result URL for async polling.","exampleAgentPrompt":"Can you upscale this photo by 4x using face enhancement mode? It's a JPEG portrait and I want the highest quality result.","exampleUseCases":[{"title":"Portrait photo face enhancement","prompt":"I have this low-res JPEG headshot I need to enlarge — can you upscale it by 4x using face mode to make it look sharp and professional?"},{"title":"Thumbnail to print-ready image","prompt":"This product thumbnail PNG is way too small for the banner I need to print — please upscale it 4x in auto mode so it's usable at large size."},{"title":"Old photo restoration enlargement","prompt":"I've got a small scanned old family photo as a JPEG — can you upscale it 2x with face enhancement so the faces look cleaner and it's bigger overall?"}],"resultDescription":"Returns a JSON object with a job ID, initial status ('queued'), a result URL to fetch the upscaled image once complete, a status polling URL, an estimated completion time in seconds (etaSeconds), and a maximum polling budget in seconds. The agent must poll the statusUrl until complete, then retrieve the upscaled image from resultUrl.","failureModes":["Invalid or corrupt base64 image data — returns error on submission","Unsupported media type (not image/png or image/jpeg) — rejected at input validation","Upscale factor not 2 or 4 — enum validation failure","Job timeout if processing exceeds pollBudgetSeconds (1200s) — result may not be available","Payment failure via x402 protocol — request blocked without $0.06 USDC","Image too large or too small for upscaling — possible server-side rejection","Network timeout while polling statusUrl"],"whenToPreferThis":"Choose this endpoint when you need AI-powered image upscaling with either general (auto) or face-optimized enhancement, supporting 2x or 4x enlargement of PNG or JPEG images, and can tolerate async processing (up to ~5 minutes). Prefer face mode for portrait or headshot images. Best suited for agents that can handle polling workflows and x402 USDC micropayments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":2,"lastUsedAt":"2026-08-30T02:57:23.423Z","lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T12:42:41.875Z","isFirstParty":false,"canonicalSlug":"haven-image-upscale-2a2ed0bb"}