{"uid":"cap_0LRiPnEIRiAbdOUYe_Yul","slug":"cortexcloud-ai-image-generation-flux-stability-e2deac1f","name":"CortexCloud AI Image Generation (Flux/Stability)","description":"OpenAI-compatible AI and data API for agents. Pay per call in USDC on Base via x402 — no API keys, no subscriptions, no lock-in.","url":"https://api.cortexcloud.org/x402/v1/images/generations","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"n":{"type":"integer"},"size":{"type":"string"},"model":{"type":"string"},"prompt":{"type":"string"},"response_format":{"type":"string"}}},"responseSchema":{"type":"object","format":"application/json","example":{}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CuRqBnpBOPMlFoKeVUqL4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","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 text prompts using Flux or Stability models via OpenRouter, billed at $0.02 USDC per image.","exampleAgentPrompt":"Generate a photorealistic image of a red fox sitting in a snowy forest at dusk — use the Flux model, 1024x1024 size, and give me 1 image as a URL.","exampleUseCases":[{"title":"Product mockup for e-commerce listing","prompt":"Create a clean product photo of a minimalist white ceramic coffee mug on a marble countertop — use Stability AI, 1024x1024, give me 1 image as a URL."},{"title":"Concept art for a game environment","prompt":"Generate a fantasy landscape of a floating island with waterfalls and glowing crystals at sunset, use the Flux model, 1024x1024, 1 image returned as a URL."},{"title":"Social media banner creation","prompt":"Make a vibrant, eye-catching banner image for a summer music festival featuring neon colors and a crowd silhouette — Flux model, 1792x1024 size, 1 image as a URL."}],"resultDescription":"Returns one or more AI-generated images corresponding to the prompt, either as URLs or base64-encoded image data, depending on the response_format parameter. Each call produces the specified number of images (n) at the requested size using the chosen model.","failureModes":["Invalid or unsupported model name returns an error","Prompt violates content policy and is rejected","Unsupported image size string causes a bad request error","Payment not received or USDC balance insufficient blocks the request","Network timeout if the model backend is slow to respond","n exceeds provider limits causing a quota error"],"whenToPreferThis":"Choose this endpoint when you need to generate images via a pay-per-call USDC micropayment model without a subscription, or when you want access to both Flux and Stability AI models through a single OpenAI-compatible interface. Prefer this over raw OpenAI DALL-E if you want Flux-based diffusion outputs or need crypto-native billing on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:43:22.638Z","isFirstParty":false}