Image
Generate an image
Generates an image via AI. Requires payment: x402 (USDC on Base mainnet or Base Sepolia, or, while Run402's Lightning Hub is issuing, sats on Bitcoin Lightning via the exact scheme on lnbtc:000000000019d6689c085ae165831e93, where the paid retry carries the invoice preimage) or MPP. Not included in any tier — per-call cost.
post/generate-image/v1
Request
- Base URL: https://api.run402.com
- URL: https://api.run402.com/generate-image/v1
- Auth: API key in header X-PAYMENT
Headers
Idempotency-Keystring
Retry-safe key. A replay within 24h answers without a second payment, and only to the same caller (the request's verified SIGN-IN-WITH-X wallet, or its exact Authorization: Bearer credential) sending the same query and JSON body; the same key with a different request answers 422 IDEMPOTENCY_KEY_REUSED.
Request body
Response
Image generated
object required
Changes
No recorded changes to this operation across all 1 revision of this API.