{"uid":"cap_1oemSONZJIui216ZAM8KU","slug":"blockrun-image-to-image-ai-gateway-0d9427ac","name":"BlockRun Image-to-Image AI Gateway","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/image2image","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":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.021","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":1,"rating":{"score":"0.00","successRate":"0.00","reviews":1,"stars":null,"state":"rated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.021/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.021","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.021","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_N2_VhM5tz4Zsj6kV0o824","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.021","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Transforms an input image guided by a text prompt using AI image models, billed per-call in USDC with no API keys required.","exampleAgentPrompt":"Using BlockRun's image-to-image endpoint, take my product photo and transform it into a watercolor painting style — generate 1 image at 1024x1024 using the openai/gpt-image-1 model.","exampleUseCases":null,"resultDescription":"Returns one or more AI-generated images that reflect the transformation described in the prompt, produced by the selected image model at the specified dimensions.","failureModes":["Invalid model ID returns 400 or model-not-found error","Unsupported image size string returns validation error","Payment failure or insufficient USDC balance returns 402","Prompt violates content policy returns content moderation error","n exceeds model maximum returns parameter error"],"whenToPreferThis":"Choose this endpoint when you need pay-per-call image transformation without managing API keys, especially in agent workflows that use crypto micropayments (USDC on Base or Solana) and need to call OpenAI image models like gpt-image-1 on demand.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":2,"lastUsedAt":"2026-06-16T18:15:46.786Z","lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T13:00:09.418Z","isFirstParty":false}