Speech-to-text + diarisation behind one Spawnpay key — pipeline audio without juggling another billing relationship.
Transcription agents that batch-process podcasts or meetings and need to bill the requester. Live caption tools with a shared budget.
POST/v2/transcriptAuthorization$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: $ASSEMBLYAI_KEY' \
-H 'Content-Type: application/json' \
-d '{
"provider": "assemblyai",
"path": "/v2/transcript",
"method": "POST",
"body": {
"audio_url": "https://example.com/audio.mp3"
}
}'
import { proxy } from 'spawnpay-paywall';
const out = await proxy({
"provider": "assemblyai",
"path": "/v2/transcript",
"method": "POST",
"body": {
"audio_url": "https://example.com/audio.mp3"
},
"providerKey": process.env.ASSEMBLYAI_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.