{"uid":"cap_K_asLFOLZd0Mzc04Mzjlj","slug":"stability-ai-core-image-generation-via-locus-x402-4ca3f550","name":"Stability AI Core Image Generation via Locus x402","description":"Locus public pay-per-use API","url":"https://stability-ai.x402.paywithlocus.com/stability-ai/generate-core","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"seed":{"type":"number"},"prompt":{"type":"string"},"aspect_ratio":{"type":"string"},"style_preset":{"type":"string"},"output_format":{"type":"string"},"negative_prompt":{"type":"string"}}},"responseSchema":{"type":"json","example":{"data":{},"payment":{"scheme":"exact","settledUsdc":"0.001000","authorizedMaxUsdc":"0.001000"},"request":{"id":"00000000-0000-4000-8000-000000000000","statusUrl":"/requests/00000000-0000-4000-8000-000000000000"},"success":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.034","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.034/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.034","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.034","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_H15JIV0K8ppo2BEF2o46-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.034","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 Stability AI's core model, with control over aspect ratio, style preset, output format, and negative prompts, paid per-call via x402 micropayment.","exampleAgentPrompt":"Generate a photorealistic image of a misty mountain lake at sunrise in 16:9 aspect ratio, PNG format, using the photographic style preset — exclude any people or buildings.","exampleUseCases":[{"title":"AI concept art for game design","prompt":"Create a digital-art style image of a futuristic cyberpunk cityscape at night, in 16:9 aspect ratio, PNG format, and make sure to exclude any daylight or natural scenery."},{"title":"Square product lifestyle photography","prompt":"Generate a photorealistic 1:1 square image of a minimalist wooden desk with a coffee cup and open notebook, photographic style preset, JPEG output — no clutter or people in the background."},{"title":"Portrait illustration for social media","prompt":"Generate a digital-art portrait of a confident woman with flowing hair and vibrant colors in 9:16 portrait format as a PNG, excluding any text overlays or watermarks."}],"resultDescription":"Returns a JSON object with a success flag, a request ID and status URL for async retrieval, and payment settlement details showing USDC charged and authorized. The generated image data is nested under the 'data' field.","failureModes":["Invalid or missing prompt returns a 400 error","Unsupported aspect_ratio or output_format enum value causes a validation error","Insufficient USDC balance or payment failure returns a 402 Payment Required error","Seed value out of acceptable range may be rejected","Request timeout if generation takes longer than expected; use the statusUrl to poll for completion","If the prompt violates content policy, generation may be refused"],"whenToPreferThis":"Choose this endpoint when you need fast, affordable text-to-image generation via Stability AI's core model with micropayment billing (no API key setup required — pay per call in USDC via x402). Prefer it over direct Stability AI API calls when you need frictionless pay-per-use access without subscription management, and when style presets and aspect ratio control are sufficient for your use case.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:48:00.237Z","isFirstParty":false}