Generate an image or video (paid, x402)
generate_imageRender an image or video with a catalog model (t2i, i2i, t2v, i2v) — including the private model line flagged private=true in list_models. This is a PAID call, two rails: (1) x402 — the endpoint answers HTTP 402 with payment requirements (USDC on Base mainnet — priced per call, video billed per second per model rate); retry with a PAYMENT-SIGNATURE header settling one requirement (use an x402-capable client like @x402/fetch). (2) API key — sign up at https://livepairai.com/auth/sign-up, create a key at /dashboard/settings, send x-api-key: lp_…; the call bills your prepaid credit balance and skips the 402 entirely. On success returns {status:'done',url}; slow jobs return a jobId to poll for free.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | No | Source image for i2i/i2v models — public http(s) URL or data:image URI. Use AI-generated or owned images only — never real-person photos without consent | |
| payer | No | Your 0x… wallet — applies your volume-tier discount; must equal the wallet signing the payment | |
| prompt | Yes | The prompt to render — call enhance_prompt first for best results | |
| modelId | No | Model id from list_models (default: fastest t2i) | |
| duration | No | Video length in seconds (video models) | |
| resolution | No | Video resolution tier (video models) |