{"uid":"cap_jjT4M5JmqkzVbs7LXbG4z","slug":"onchain-router-ai-image-generation-gemini-flash-lite-57fc5638","name":"Onchain Router – AI Image Generation (Gemini Flash Lite)","description":"Image generation · seven-day hosted URL · 0% service fee launch promotion","url":"https://llm.agenticfi.wtf/v1/images/generations","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"n":{"type":"integer","const":1},"model":{"type":"string","const":"gemini-3.1-flash-lite-image"},"prompt":{"type":"string","maxLength":4000,"minLength":1},"image_size":{"enum":["1K"],"type":"string","default":"1K"},"aspect_ratio":{"enum":["1:1"],"type":"string","default":"1:1"},"response_format":{"enum":["url","b64_json"],"type":"string","default":"url"}}},"responseSchema":{"type":"json","example":{"data":[{"url":"https://llm.agenticfi.wtf/v1/media/images/00000000-0000-4000-8000-000000000000?access=capability","backed_up":true}],"model":"gemini-3.1-flash-lite-image","price":{"amount":"0.035","currency":"USD"},"created":0,"image_size":"1K","aspect_ratio":"1:1"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_rJ3RAPGQGzK9h4zrBqfeh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates images from a text prompt using Gemini 3.1 Flash Lite, paid per-request with USDC via the x402 protocol, returning a hosted URL or base64 JSON with a durable receipt.","exampleAgentPrompt":"Generate a square image of a futuristic neon-lit cityscape at night with flying cars, using the Gemini Flash Lite image model, and give me back a hosted URL.","exampleUseCases":[{"title":"AI-generated product mockup image","prompt":"Create an image of a sleek black coffee mug with a minimalist white logo on a marble countertop — square format, return a hosted URL I can embed in our product page."},{"title":"Onchain receipt for automated media pipeline","prompt":"Generate a 1:1 image of a serene Japanese zen garden at sunrise using Gemini Flash Lite image, and make sure I get a receipt with the price so I can log it in our billing system."},{"title":"Social media visual content creation","prompt":"Make me an image of a cute golden retriever puppy playing in autumn leaves for our Instagram post — square crop, URL format please."}],"resultDescription":"Returns a JSON object containing an array of image data (hosted URL or base64 JSON), the model used, the USD price paid, a creation timestamp, image size, and aspect ratio. The hosted URL is durable and access-controlled via a capability token.","failureModes":["Invalid or missing prompt returns a 400 validation error","Insufficient USDC balance or failed x402 payment returns a 402 Payment Required error","Unsupported model name (only 'gemini-3.1-flash-lite-image' accepted) returns a 422 error","Aspect ratio not '1:1' or image size not '1K' returns a validation error","Prompt exceeds 4000 characters returns a 400 error","Requesting n > 1 images returns a validation error","Service unavailability or upstream Gemini outage returns a 503 error"],"whenToPreferThis":"Choose this endpoint when you need AI image generation paid via USDC micropayments per request with no subscription, want a durable hosted image URL with a verifiable payment receipt, or are building an autonomous agent pipeline that requires onchain payment accountability. Prefer this over standard image APIs when USDC-based payment and x402 protocol compatibility are requirements, or when you want provider-neutral routing with a 0% service fee promotion active.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T15:26:00.121Z","isFirstParty":false}