{"uid":"cap_7B0lLKlD9LAoslJq0V6j7","slug":"blockrun-image-generation-2aba427f","name":"BlockRun Image Generation","description":"Pay for the outcome. One endpoint for every model, tool and data source an agent needs — each call priced before it runs, at the best value per dollar. 103 models and 100 data and tool APIs.","url":"https://blockrun.ai/api/v1/images/generations","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"n":{"type":"integer","description":"Number of images to generate"},"size":{"type":"string","description":"Image dimensions (e.g., 1024x1024)"},"model":{"type":"string","description":"Image model ID (e.g., openai/gpt-image-1, openai/gpt-image-2)"},"prompt":{"type":"string","description":"Text description of the image to generate"}}},"responseSchema":null,"example":{"request":{"n":1,"size":"1024x1024","model":"openai/gpt-image-1","prompt":"A serene landscape with mountains and a clear blue sky"},"response":{"n":1,"id":"38afb1c0-7659-43c9-a402-07beb0fe5da3","size":"1024x1024","model":"openai/gpt-image-1","price":{"amount":"0.021000","currency":"USD"},"object":"image.generation.job","status":"queued","created":1781241059,"poll_url":"/api/v1/images/generations/38afb1c0-7659-43c9-a402-07beb0fe5da3","payment_status":"verified","poll_instructions":"Slow model — generation exceeded the 30s inline window. Send GET to poll_url with an x-payment header signed by the SAME wallet that submitted this POST. A fresh signature works — we enforce wallet binding, not signature byte-equality. The poll endpoint returns its own 402 challenge if no header is sent, so x402 clients can re-sign automatically. Expect status queued/in_progress, then completed; we settle and return the image URL on the first completed poll."}},"exampleRequest":{"n":1,"size":"1024x1024","model":"openai/gpt-image-1","prompt":"A serene landscape with mountains and a clear blue sky"},"tags":["x402"],"displayCostAmount":"0.04","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.041","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.041","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Wi5hZBDiQOBJKrvY4FWKe","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.041","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates AI images from a text prompt via a pay-per-call gateway, settled in USDC on Base or Solana, with no API key required.","exampleAgentPrompt":"Generate 2 images of a futuristic cyberpunk cityscape at night, 1024x1024, using the openai/gpt-image-1 model.","exampleUseCases":null,"resultDescription":"Returns one or more AI-generated images (as URLs or base64 data) based on the provided text prompt, using the specified model and dimensions. The call costs $0.04 USDC per invocation, settled on Base or Solana.","failureModes":["Insufficient USDC balance — payment not settled, 402 Payment Required returned","Invalid model ID — unrecognized model string causes a 400 Bad Request","Invalid size format — unsupported dimension string causes a 400 error","Prompt content policy violation — prompt rejected for unsafe or disallowed content","Network or gateway timeout — upstream model takes too long, 504 returned"],"whenToPreferThis":"Choose this endpoint when you need AI image generation without managing API keys, want crypto-native pay-per-call billing settled in USDC on Base or Solana, or are building an agent pipeline (OpenClaw, Claude Code, Franklin Agent) that requires a single unified gateway for multiple AI capabilities.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T13:06:46.798Z","isFirstParty":false}