{"uid":"cap_XRjnc9mn-ipcChjIpu99J","slug":"hubvibe-image-generation-imagen-4-0409c140","name":"HubVibe Image Generation (Imagen 4)","description":"AI image generation / text to image: one image from a text prompt with Google Imagen 4, returned as base64 image bytes with its MIME type. Use it for illustrations, thumbnails, product mockups and social images. Input: prompt; optional aspect_ratio.","url":"https://hubvibe-io.com/work/image/generate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"prompt":{"type":"string"},"language":{"type":"string","pattern":"^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$","maxLength":35},"aspect_ratio":{"type":"string"}}},"responseSchema":{"type":"json","example":{"result":{"model":"imagen-4.0-generate-001","prompt":"A beehive built from circuit boards, isometric illustration","mime_type":"image/png","aspect_ratio":"1:1","image_base64":"iVBORw0KGgo..."},"status":"ok","worker":"image.generate","price_usd":0.5,"provenance":{"steps":[{"ms":640,"ok":true,"step":"generate","provider":"imagen"}],"attempts":1,"elapsed_ms":660,"providers_used":["imagen"]},"receipt_id":"rcpt_9f1c2b3a4d5e6f70","receipt_url":"/work/receipts/rcpt_9f1c2b3a4d5e6f70"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.5","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.5/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qkbEpuLvIlR5EXkSN8YOt","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.5","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a single image from a text prompt using Google Imagen 4, returning base64-encoded image bytes.","exampleAgentPrompt":"Generate an image of a serene mountain lake at sunset with pine trees in the foreground, in 16:9 landscape format.","exampleUseCases":[{"title":"Marketing banner image creation","prompt":"Create an image of a modern coffee shop interior with warm lighting and a cozy atmosphere, in 16:9 widescreen format, for a promotional banner."},{"title":"Square social media post visual","prompt":"Generate a square 1:1 image of a vibrant tropical fruit smoothie bowl with colorful toppings, styled like a food photography shot."},{"title":"Portrait-oriented product concept art","prompt":"Make an image of a sleek futuristic smartwatch on a dark background with subtle blue glowing accents, in 3:4 portrait format."}],"resultDescription":"Returns base64-encoded bytes of a generated image. The agent receives the raw image data which can be decoded and rendered or saved as an image file (e.g., PNG or JPEG).","failureModes":["Empty or overly vague prompt may produce unexpected or low-quality images","Unsupported aspect ratio value returns a validation error","Content policy violations in the prompt may cause the request to be rejected","Network timeout or server error returns a 5xx response","Malformed input (missing prompt field) returns a 400 bad request"],"whenToPreferThis":"Choose this endpoint when you need to generate a single high-quality image from a text prompt using Google Imagen 4 specifically, with flexible aspect ratio control. Prefer it over general LLM image tools when you need Imagen 4's photorealistic output quality and you want a simple one-call API with base64 image return. Best suited for single-image generation tasks rather than batch workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T06:41:11.353Z","isFirstParty":false,"canonicalSlug":"hubvibe-image-generation-imagen-4-0409c140"}