{"uid":"cap_LbxmVZB4i8pdQPJqdGuLd","slug":"fal-ai-generative-ai-via-locus-x402-b38fa2d9","name":"fal.ai Generative AI via Locus x402","description":"Locus public pay-per-use API","url":"https://fal.x402.paywithlocus.com/fal/generate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"type":"string"},"prompt":{"type":"string"},"duration":{"type":"number"},"image_url":{"type":"string"},"image_urls":{"type":"array","items":{}},"num_images":{"type":"number"},"resolution":{"type":"string"},"webhook_url":{"type":"string"}}},"responseSchema":{"type":"json","example":{"data":{},"payment":{"scheme":"exact","settledUsdc":"0.001000","authorizedMaxUsdc":"0.001000"},"request":{"id":"00000000-0000-4000-8000-000000000000","statusUrl":"/requests/00000000-0000-4000-8000-000000000000"},"success":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Uvx5r96n08ETCSPefsbUR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Submits a generative AI job (image, video, or audio) to fal.ai models via a micropayment-gated x402 proxy, returning a request ID and status URL for async result polling.","exampleAgentPrompt":"Using fal.ai via FLUX Schnell, generate 4 images of a neon-lit cyberpunk cityscape at night with rain-soaked streets, and let me know when they're ready.","exampleUseCases":[{"title":"AI product image from description","prompt":"Use fal.ai to generate a single high-quality product photo of a minimalist white ceramic coffee mug on a wooden table with soft morning light — use the FLUX Schnell model and give me the status URL so I can check when it's done."},{"title":"Text-to-video clip generation","prompt":"Generate a 5-second video of a golden retriever running through a sunflower field using the Seedance model on fal.ai, and ping my webhook at https://myapp.example.com/hooks/fal when it's finished."},{"title":"AI image editing from input photo","prompt":"Take this image at https://cdn.example.com/my-room.jpg and use the Gemini image editing model on fal.ai to add a cozy fireplace to the left wall — return the request ID so I can poll for the result."}],"resultDescription":"Returns a JSON object containing a 'success' flag, a 'request' object with a UUID job ID and a statusUrl path for polling the async result, and a 'payment' object confirming the settled USDC amount (0.001 USDC). The actual generated media is not returned inline but retrieved via the statusUrl once the job completes.","failureModes":["Invalid or unsupported model ID returns an error — only curated LocusFounder fal model IDs are accepted","Missing required 'prompt' field causes job rejection","Video jobs without a 'duration' field may be rejected as it is required for public x402 video jobs","Payment failure or insufficient USDC balance prevents job submission","Webhook URL that is not HTTPS may be rejected or ignored","Polling the statusUrl may show a pending or failed state if the underlying fal.ai job errors out"],"whenToPreferThis":"Choose this endpoint when you need to run fal.ai generative models (image, video, or audio) without managing fal.ai API keys directly, and when micropayment-per-call billing via x402/USDC is preferable to subscription-based access. Ideal for agent workflows that generate media on-demand and can handle async job completion via polling or webhook. Best suited for use cases involving the specific curated model set (FLUX Schnell, Qwen Image 2, Gemini image editing, Seedance, Veo, Grok Video, Happy Horse).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:39:20.603Z","isFirstParty":false,"canonicalSlug":"fal-ai-generative-ai-via-locus-x402-b38fa2d9"}