{"uid":"cap_8Vj2cjUJY9CZtDvV5oe-i","slug":"mapleai-image-generation-api-d0355dba","name":"MapleAI Image Generation API","description":"Generate images, priced per image and size","url":"https://base.mapleai.shop/api/v1/images/generations?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"n":{"type":"integer","maximum":4,"minimum":1},"size":{"type":"string"},"model":{"enum":["gpt-image-2","gpt-image-2.5","gpt-image-2.5-flare","gpt-image-2.5-sunburst","grok-imagine-image","gpt-image-2-2k","gpt-image-2.5-sunburst-2k"],"type":"string"},"prompt":{"type":"string"}}},"responseSchema":{"type":"json","example":{"data":[{"url":"https://example.com/image.png"}],"created":1700000000}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0025","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.0025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TAXk1eZ89RozWuSAge5Go","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0025","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 selectable AI models, priced per image and size in USDC via x402","exampleAgentPrompt":"Generate 2 images of a cozy Japanese tea house surrounded by cherry blossoms at sunset using gpt-image-2.5, in 1024x1024 size.","exampleUseCases":[{"title":"AI product mockup image generation","prompt":"Create 1 image of a sleek black water bottle on a minimalist white studio background using gpt-image-2.5-flare — I need it for a product listing."},{"title":"Fantasy art for game concept","prompt":"Generate 4 images of a dragon perched on a mountain peak at night with a glowing moon using grok-imagine-image, standard size — I'm picking the best one for a game concept."},{"title":"High-resolution marketing visual","prompt":"Make a 2k resolution image of a vibrant farmer's market scene with colorful produce stalls on a sunny morning using gpt-image-2-2k — just 1 image please."}],"resultDescription":"A JSON object containing a 'data' array with one or more objects, each holding a 'url' pointing to the generated image hosted on a CDN, plus a 'created' Unix timestamp indicating when the images were produced.","failureModes":["Invalid or unsupported model name returns a validation error","Prompt too long or containing disallowed content triggers a content policy refusal","Requesting more than 4 images (n > 4) fails schema validation","Unsupported size string for the selected model returns an error","Insufficient USDC balance or x402 payment failure blocks the request","Network timeout if generation takes too long for complex prompts"],"whenToPreferThis":"Choose this endpoint when you need pay-per-use AI image generation without a subscription, want to select from multiple models (GPT-Image 2, 2.5, Grok Imagine, or 2K variants) in a single API, and need to pay in USDC on Base via x402. It is well-suited for agents that generate images on demand without pre-committing to a platform, or when you want access to both OpenAI-style and Grok image models under one unified endpoint.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T01:29:07.010Z","isFirstParty":false,"canonicalSlug":"mapleai-image-generation-api-d0355dba"}