{"uid":"cap_hzZdFGNjSJvrytBtuAGd2","slug":"haven-image-generate-b567124c","name":"Haven Image Generate","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/generate","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"width":{"type":"number","default":1024,"maximum":1536,"minimum":256},"height":{"type":"number","default":1024,"maximum":1536,"minimum":256},"prompt":{"type":"string","maxLength":2000,"minLength":1}}},"responseSchema":{"type":"json","example":{"kind":"image_generate","jobId":"00000000-0000-0000-0000-000000000000","status":"queued","resultUrl":"https://api.havenagent.ai/x402/api/v1/image/generate/jobs/00000000-0000-0000-0000-000000000000/result","statusUrl":"https://api.havenagent.ai/x402/api/v1/image/generate/jobs/00000000-0000-0000-0000-000000000000","etaSeconds":120,"pollBudgetSeconds":900}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_26FFCINpvBl30jV-yq4Ja","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates an AI image from a text prompt at a specified resolution, returning a job ID and polling URL for async result retrieval","exampleAgentPrompt":"Generate a cozy living room with warm lighting and a fireplace, make it 1280 wide and 768 tall.","exampleUseCases":[{"title":"Home interior visualization","prompt":"Create an AI image of a modern Scandinavian kitchen with white cabinets and oak countertops, 1024 by 1024 pixels."},{"title":"Custom wallpaper for smart display","prompt":"Generate a peaceful forest scene at dawn with mist rolling through the trees, 1536 pixels wide and 1024 pixels tall, for my home display."},{"title":"Personalized room mood board","prompt":"Make me an image of a cozy reading nook with bookshelves, a plush armchair, and soft lamp lighting — 1024 by 1024."}],"resultDescription":"Returns a JSON object with a job ID (UUID), initial status ('queued'), a result URL to fetch the finished image, a status URL for polling job progress, an estimated completion time in seconds (etaSeconds), and a maximum polling budget in seconds (pollBudgetSeconds). The agent must poll the statusUrl until the job completes, then fetch the image from resultUrl.","failureModes":["Prompt too long (exceeds 2000 characters) — validation error","Width or height out of range (below 256 or above 1536) — validation error","Payment failure (insufficient USDC balance or x402 protocol error) — payment rejected","Job stuck in queued status beyond pollBudgetSeconds — timeout","Result URL unavailable after job completion — resource not found error","Empty or missing prompt field — validation error"],"whenToPreferThis":"Choose this endpoint when you need to generate a custom image from a text prompt with control over output dimensions (256–1536px), and you're operating in an x402 micropayment environment (paying $0.05 USDC per call). It is an async batch endpoint best suited for workflows that can tolerate ~2-minute generation times and poll for results. Prefer it over synchronous image APIs when you need the async job-polling pattern or are already integrated with the Haven ecosystem.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:38:20.994Z","isFirstParty":false}