{"uid":"cap_KmKXBu8sFtCNmNh_U_w8o","slug":"stability-ai-structure-control-via-locus-x402-8ebf0ee7","name":"Stability AI Structure Control (via Locus x402)","description":"Generative AI platform for images, 3D models, and audio — text-to-image, editing, upscaling, and more.","url":"https://stability-ai.x402.paywithlocus.com/stability-ai/structure","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"seed":{"type":"number"},"image":{"type":"string"},"prompt":{"type":"string"},"output_format":{"type":"string"},"negative_prompt":{"type":"string"},"control_strength":{"type":"number"}}},"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.057","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.057/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.057","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.057","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_aewGX1S9y_eN_y-FOPeMo","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.057","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a new image that follows the structure/composition of a reference image while applying a new text-prompted style or content.","exampleAgentPrompt":"Take this reference image and generate a new version of it as a watercolor painting of a forest at dawn — keep the same structural composition, set control strength to 0.8, and exclude any buildings or urban elements. Output as PNG.","exampleUseCases":[{"title":"Architectural concept restyling","prompt":"I have a sketch of a building layout — can you generate a photorealistic rendering of it as a modern glass skyscraper using Stability AI's structure control? Keep the composition tight (control strength 0.9) and exclude cartoon or sketch elements. Output as JPEG."},{"title":"Product photo style transfer","prompt":"I have a product shot of a sneaker. Generate a new image with the same structure and shape but styled as if it's floating in a futuristic neon space environment — control strength 0.7, no people or hands, output as PNG."},{"title":"Portrait artistic transformation","prompt":"Use this portrait photo as a structure reference and generate a renaissance oil painting version of it with the same pose and framing. Set control strength to 0.75, exclude modern clothing references, and output as WebP."}],"resultDescription":"Returns a JSON object containing a 'data' field with the generated image result, a 'payment' object confirming the settled USDC amount, a 'request' object with a unique request ID and a status URL for polling, and a 'success' boolean flag.","failureModes":["Invalid or unreadable reference image URL — returns error indicating image cannot be processed","control_strength outside 0–1 range — validation error","Unsupported output_format value (must be jpeg, png, or webp) — schema validation failure","Insufficient USDC payment or payment failure via x402 protocol — 402 Payment Required response","Prompt or negative_prompt too long — content or length validation error","Rate limiting or upstream Stability AI API unavailability — 503 or timeout error"],"whenToPreferThis":"Choose this endpoint when you need to preserve the structural composition or layout of an existing image while generating entirely new visual content driven by a text prompt. It is ideal for style transfer with structural fidelity, architecture or product restyling, and pose-preserving portrait transformations. Prefer this over unconditioned text-to-image endpoints when the output layout must mirror a reference, and over inpainting endpoints when the entire image appearance — not just a region — should change.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:47:26.413Z","isFirstParty":false}