Stability AI text-to-image generation (Core model) via pay-per-call MPP on Tempo L2.
What it does
This endpoint provides access to Stability AI's Generate Core image model through the Locus MPP (Micropayment Protocol) gateway. It accepts a text prompt and returns a generated image, with optional controls for negative prompt, aspect ratio (21:9, 16:9, 3:2, 5:4, 1:1, 4:5, 2:3, 9:16), output format (jpeg, png, webp), style preset, and random seed. Payment is settled per-call via the Tempo L2 method at $0.034 per generation.
The endpoint is one of over 20 Stability AI capabilities exposed through the same Locus MPP gateway, which also includes Generate Ultra, SD3 variants, image editing (erase, inpaint, outpaint, search-and-replace, search-and-recolor), background removal and replacement, upscaling (fast, conservative, creative), sketch-to-image, structure control, style guide, style transfer, 3D model generation (Stable Fast 3D, Stable Point Aware 3D), and audio generation/editing. Each endpoint has its own per-call price.
Generate Core is the mid-tier text-to-image option — cheaper than Generate Ultra ($0.092) but without image-to-image support. The request body requires only a "prompt" field; all other parameters are optional. The endpoint uses POST and expects application/json. The currency token uses 6 decimals (pathUSD on Tempo L2), and the listed amount of 34000 base units equals $0.034 per call.
Capabilities
Use cases
- —Generating images from text prompts in automated pipelines
- —Creating marketing or social media visuals programmatically
- —Producing concept art or mood boards from textual descriptions
- —Agent-driven content creation workflows needing pay-per-call image generation
- —Batch image generation with style and aspect ratio control
Fit
Best for
- —AI agents needing on-demand text-to-image without API key management
- —Developers wanting per-call crypto-settled image generation
- —Mid-tier quality image generation at low per-call cost ($0.034)
- —Workflows requiring multiple aspect ratios and output formats
Not for
- —Image-to-image transformations (use Generate Ultra or SD3 instead)
- —High-fidelity upscaling (separate upscale endpoints exist)
- —Audio generation (separate text-to-audio endpoint available)
Quick start
curl -X POST https://stability-ai.mpp.paywithlocus.com/stability-ai/generate-core \
-H "Content-Type: application/json" \
-d '{"prompt": "A serene mountain lake at sunset, photographic style", "aspect_ratio": "16:9", "output_format": "png"}'Example
Request
{
"seed": 42,
"prompt": "A serene mountain lake at sunset, photographic style",
"aspect_ratio": "16:9",
"style_preset": "photographic",
"output_format": "png",
"negative_prompt": "blurry, low quality"
}Endpoint
Quality
Full OpenAPI schema with detailed request parameters and pricing is available. However, the specific endpoint did not return a 402 challenge on HEAD/GET (it requires POST), no response schema or example response is documented, and crawled pages returned only 404 JSON errors. Pricing is clear from the OpenAPI x-payment-info.
Warnings
- —Endpoint returned 404 on HEAD and GET probes; it only accepts POST requests, so liveness could not be confirmed via the probe
- —No response schema documented — the format and structure of the generated image response is unknown
- —Currency token address 0x20c000000000000000000000b9537d11c60e8b50 is assumed to be pathUSD with 6 decimals based on the Tempo L2 convention; this is not explicitly confirmed in the probe data
- —No example response available from docs or crawl
Citations
- —Generate Core costs 34000 base units per call via Tempo methodhttps://stability-ai.mpp.paywithlocus.com
- —Supported aspect ratios: 21:9, 16:9, 3:2, 5:4, 1:1, 4:5, 2:3, 9:16https://stability-ai.mpp.paywithlocus.com
- —API reference available at platform.stability.aihttps://platform.stability.ai/docs/api-reference
- —LLM-readable docs at beta.paywithlocus.com/mpp/stability-ai.mdhttps://beta.paywithlocus.com/mpp/stability-ai.md