SDXL, Stable Image Core, Stable Audio — Stability AI behind Spawnpay routing + USDC receipts.
Image-gen agents that want Stability alongside FLUX/DALL-E with one budget. Multi-model fallback where the cheaper Stability render is the default.
POST/v2beta/stable-image/generate/coreAuthorization$0.001 USDC per upstream 2xx (4xx is free)curl -X POST https://spawnpay.ai/api/proxy \
-H 'Authorization: Bearer spk_live_…' \
-H 'X-Provider-Key: $STABILITY_KEY' \
-H 'Content-Type: application/json' \
-d '{
"provider": "stability",
"path": "/v2beta/stable-image/generate/core",
"method": "POST",
"body": {
"prompt": "a watercolour robot"
}
}'
import { proxy } from 'spawnpay-paywall';
const out = await proxy({
"provider": "stability",
"path": "/v2beta/stable-image/generate/core",
"method": "POST",
"body": {
"prompt": "a watercolour robot"
},
"providerKey": process.env.STABILITY_KEY
});
console.log(out.status, out.body);
console.log('charged', out.charged); // txHash + $0.001 USDC receipt
The full upstream JSON body, the upstream status code, the upstream response headers, plus a charged field with the USDC receipt (tx hash) when the call succeeded.