Generate video and text from your own code over the live Purple Squirrel gateways — OpenAI-compatible, provider-raced, and stored at the edge. The endpoints below are live right now; run them from this page.
Fetched from the gateways as this page loaded — not a screenshot.
Loading…
Loading…
A real request to the live gateway. GET /v1/models is keyless — safe to run from the browser.
Copy-paste against the live endpoints. Bring your own provider key; the gateway races, caches, and stores.
# every model across both gateways — no key needed
curl https://gen.purplesquirrel.media/v1/models
curl https://fast.purplesquirrel.media/v1/models# race Veo 3 + Wan for a cinema clip. BYOK pays the GPU; psm_ key pays the flat fee.
curl -X POST https://gen.purplesquirrel.media/v1/video/generations \
-H "authorization: Bearer psm_your_prepaid_key" \
-H "x-fal-key: <your fal key>" \
-H "content-type: application/json" \
-d '{"model":"psm-video-cinema","prompt":"a neon koi swimming through a city at night"}'
# -> 202 { "id": "...", "poll": "https://gen.purplesquirrel.media/v1/video/generations/<id>" }# poll drives the race; first provider to finish wins, clip stored on R2
curl https://gen.purplesquirrel.media/v1/video/generations/<id> \
-H "x-fal-key: <your fal key>"
# -> { "status": "succeeded", "provider": "fal", "video_url": "https://gen.../result/<key>" }# OpenAI-compatible — point any SDK at the base url
curl -X POST https://fast.purplesquirrel.media/v1/chat/completions \
-H "authorization: Bearer psm_your_prepaid_key" \
-H "content-type: application/json" \
-d '{"model":"psm-max","messages":[{"role":"user","content":"write a launch tagline"}]}'Two layers: your provider key pays the render; a prepaid psm_ key (or x402) pays the flat orchestration fee. One key works across both gateways.
Send x-fal-key / x-replicate-token per request. Never stored — resent on each poll.
A single psm_ key carries credit for the orchestration fee across video + text.
No key? Pay the fee on-chain (USDC on Solana) and retry with X-PAYMENT.
The endpoints are live today. The typed npm / pip SDK (one import, both gateways) is in early access — leave your email and we'll send it the moment it ships.