{"uid":"cap_A3Q5RbQa0iWSmy8bZPq3v","slug":"banner-image-expand-outpainting-4b0fdd1e","name":"Banner Image Expand (Outpainting)","description":"817 pay-per-call APIs for AI agents. Every endpoint is POST /<name> and is payable in USDC over x402 on Base and Solana — no signup, no API key, just pay-per-call. GET https://x402.agentutility.ai/ returns the same catalog as machine-readable JSON.","url":"https://x402.agentutility.ai/banner-image-expand?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["image_url","canvas_width","canvas_height"],"properties":{"seed":{"type":"number","description":"Random seed for reproducible output. Optional; random if omitted."},"prompt":{"type":"string","description":"Text hint describing what to generate in the expanded area. Optional."},"image_url":{"type":"string","description":"Source image URL to expand."},"original_x":{"type":"number","description":"X offset of the original image within the new canvas. Optional; must pair with original_y."},"original_y":{"type":"number","description":"Y offset of the original image within the new canvas. Optional; must pair with original_x."},"canvas_width":{"type":"number","description":"Target canvas width in pixels. 256-4096."},"canvas_height":{"type":"number","description":"Target canvas height in pixels. 256-4096."},"original_width":{"type":"number","description":"Width of the original image within the new canvas. Optional; must pair with original_height."},"original_height":{"type":"number","description":"Height of the original image within the new canvas. Optional; must pair with original_width."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"width":{"type":"integer"},"height":{"type":"integer"},"image_url":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"width":1920,"height":640,"image_url":"https://...png"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.15","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.15/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.15","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.15","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_rPrJwPhBs6GO1POl0J9PT","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.15","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Expands an existing image onto a larger canvas using AI outpainting, filling new areas based on an optional text prompt.","exampleAgentPrompt":"Take this product photo at https://example.com/product.jpg and expand it to a 1920x640 banner canvas — place the original image centered and fill in the surrounding area with a clean studio background.","exampleUseCases":[{"title":"Hero banner from product photo","prompt":"I have a product image at https://mystore.com/shoe.jpg and I need a 1920x640 hero banner for my website. Expand the canvas and fill the extra space with a neutral grey studio background."},{"title":"Social media landscape crop fix","prompt":"My portrait photo at https://cdn.example.com/portrait.png is 600x900 — can you expand it to 1200x630 so it fits a Facebook post? Put the original image centered and generate natural background around it."},{"title":"Cinematic widescreen art extension","prompt":"Extend this 1024x1024 illustration at https://art.example.com/fantasy.jpg to a 2560x1080 ultrawide format, placing the original in the center-left and generating a dramatic sky and landscape continuation on the right."}],"resultDescription":"A JSON object containing the URL of the newly generated expanded image (image_url) along with its final pixel dimensions (width and height). The image is hosted and ready to download or embed.","failureModes":["Invalid or inaccessible image_url returns an error or empty response","Canvas dimensions outside 256–4096 range may be rejected","Mismatched original_x/original_y or original_width/original_height pairings cause placement errors","Network timeout if the source image is very large or slow to fetch","AI generation artifacts if the expansion area is very large relative to the source image"],"whenToPreferThis":"Use this endpoint when you need to outpaint or extend an existing image onto a larger canvas — especially for creating banners, widescreen crops, or adding background content around a focal subject. Prefer this over a text-to-image generator when you have a source image you want to preserve and extend, not replace. It supports precise placement of the original within the new canvas and accepts a guiding prompt for the generated fill area.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-06T00:31:09.863Z","isFirstParty":false,"canonicalSlug":"banner-image-expand-outpainting-4b0fdd1e"}