{"uid":"cap_Hp91bv5NxU9NWDjTYErI-","slug":"delx-commerce-image-generation-api-9dbdda22","name":"Delx Commerce Image Generation API","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/image?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"enum":["black-forest-labs/flux-schnell","flux-schnell","schnell","flux"],"type":"string","description":"Optional commercial Replicate model in the same SKU price band. Defaults to black-forest-labs/flux-schnell. Aliases: flux-schnell, schnell, flux. FLUX Dev is temporarily unavailable. Never mediagen/SuperGrok. Response includes upstream_cost and gross_margin markup fields."},"prompt":{"type":"string","maxLength":2000,"minLength":1,"description":"Text description of the image to generate."},"aspect_ratio":{"enum":["1:1","16:9","21:9","3:2","2:3","4:5","5:4","3:4","4:3","9:16","9:21"],"type":"string","default":"1:1"},"quality_profile":{"enum":["balanced","raw"],"type":"string","default":"balanced","description":"balanced applies versioned anti-artifact quality guidance; raw forwards the prompt unchanged."}}},"responseSchema":{"type":"json","example":{"bytes":21302,"model":"black-forest-labs/flux-schnell","width":1024,"height":1024,"sha256":"b1fee3065c234364feb056ee4ad06f135c0d30039eaff0e92e52e371e884cb29","provider":"replicate","image_url":"https://api.delx.ai/api/v1/generated-images/d61c158acd974528be6af43a3bfac50f.webp","media_type":"image/webp","aspect_ratio":"1:1","generation_id":"d61c158acd974528be6af43a3bfac50f","quality_profile":"balanced","sale_price_usdc":0.01,"prompt_policy_version":"balanced/v1"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_SzsjyB1NbVT-ZZR562q3O","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates images from text prompts using Flux models, paid per-call in USDC via x402 with no signup required.","exampleAgentPrompt":"Generate an image of a futuristic city skyline at sunset with neon lights, in 16:9 aspect ratio, using the balanced quality profile.","exampleUseCases":[{"title":"AI-generated social media visual","prompt":"Create an image of a cozy autumn coffee shop with warm lighting and a steaming latte on the counter, square format, using the balanced quality setting."},{"title":"Product concept illustration","prompt":"Generate a 16:9 image of a sleek electric car parked on a mountain road at golden hour — photorealistic style, balanced quality."},{"title":"Vertical portrait for mobile banner","prompt":"Make a 9:16 image of a serene forest path with morning mist and sunlight filtering through the trees, raw prompt mode so nothing is added to my description."}],"resultDescription":"Returns a JSON object containing the hosted image URL (WebP format), image dimensions (width/height), file size in bytes, SHA256 hash for verifiable delivery, generation ID, aspect ratio, model used, quality profile applied, sale price in USDC, and upstream cost/margin metadata.","failureModes":["Invalid or empty prompt returns validation error","Unsupported model enum value returns 400","Payment not completed via x402 results in 402 response requiring USDC payment","Prompt policy violation (e.g. disallowed content) may result in rejection","Aspect ratio enum mismatch causes 400 bad request","Upstream Replicate provider outage causes delayed or failed generation"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call image generation API with no API key or subscription, verifiable delivery via SHA256, exact USDC pricing, and Flux model quality. Ideal for autonomous AI agents that need to pay for individual image generations on-demand using x402 on Base or Solana without pre-registration.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:09.188Z","isFirstParty":false,"canonicalSlug":"delx-commerce-image-generation-api-9dbdda22"}