{"uid":"cap_dzeaZRV0GbJhcB7SKPsgf","slug":"replicate-run-7a0ee2fd","name":"Replicate Run Model","description":"Run any public Replicate model synchronously. The request blocks until the prediction completes (up to 60 seconds). Returns output directly in the response. If the model takes longer than 60s the response will include a prediction ID you can check with get-prediction.","url":"https://replicate.mpp.paywithlocus.com/replicate/run?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["model_owner","model_name"],"properties":{"input":{"type":"object","description":"Model input parameters as an object (e.g. { prompt: 'a cat' }). Schema varies per model — see model page on replicate.com.","additionalProperties":true},"model_name":{"type":"string","description":"Model name (e.g. 'flux-schnell')"},"model_owner":{"type":"string","description":"Model owner / namespace (e.g. 'black-forest-labs')"}},"additionalProperties":true},"responseSchema":null,"example":{"request":{"input":{"prompt":"a cat"},"model_name":"flux-schnell","model_owner":"black-forest-labs"},"response":{"data":{"id":"1190m42vynrmw0cye7d90jsgf8","logs":"running quantized prediction\nUsing seed: 816344074\n  0%|          | 0/4 [00:00<?, ?it/s]\n 75%|███████▌  | 3/4 [00:00<00:00, 18.57it/s]\n100%|██████████| 4/4 [00:00<00:00, 16.48it/s]\nTotal safe images: 1 out of 1\n","urls":{"get":"https://api.replicate.com/v1/predictions/1190m42vynrmw0cye7d90jsgf8","web":"https://replicate.com/p/1190m42vynrmw0cye7d90jsgf8","cancel":"https://api.replicate.com/v1/predictions/1190m42vynrmw0cye7d90jsgf8/cancel","stream":"https://stream.replicate.com/v1/files/jbxs-qp7m2ma7gejykjgrene6udvaevz4wdrzfie4zs6cgkx7gniajimq"},"error":null,"input":{"prompt":"a cat"},"model":"black-forest-labs/flux-schnell","output":["https://replicate.delivery/xezq/17n9VhQHJkq9OBpVvFhMDfcXEEQnvgVltygi7D9zcJHy91ULA/out-0.webp"],"source":"api","status":"succeeded","metrics":{"total_time":0.594201872,"image_count":1,"predict_time":0.528926362},"version":"hidden","created_at":"2026-05-29T03:49:56.341Z","started_at":"2026-05-29T03:49:56.406275509Z","completed_at":"2026-05-29T03:49:56.935201872Z","data_removed":false},"success":true}},"exampleRequest":{"input":{"prompt":"a cat"},"model_name":"flux-schnell","model_owner":"black-forest-labs"},"tags":["ai-models","open-source","image-generation","inference","ai","media"],"displayCostAmount":"0.053001","displayCostAsset":"USDC","priceDynamic":true,"priceHint":"Model-dependent ($0.005–$0.05)","priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":2,"rating":{"score":"0.50","successRate":"0.77","reviews":2,"stars":"3.0","state":"rated"},"availabilityStatus":"healthy","priceObserved":{"p10Cents":"5.3000","medianCents":"5.3000","p90Cents":"5.3000","minCents":"5.3000","maxCents":"5.3000","p95Cents":"5.3000","sampleCount":7,"varies":false,"failureChargeRate":1},"sessionDeposit":null,"pricing":{"kind":"dynamic","summary":"Model-dependent ($0.005–$0.05) (dynamic, up to ~$0.05/call)","primary":{"kind":"dynamic","protocol":"mpp","network":"tempo","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"dynamic","protocol":"mpp","network":"tempo","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wBnxFMxPsNa_DYvFXthlo","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x20c000000000000000000000b9537d11c60e8b50","unit":"request","depositMicros":null,"planRef":null}],"brandName":"Replicate","brandSlug":"replicate","brandBaseUrl":"https://replicate.com","brandDocsUrl":"https://replicate.com/docs/reference/http","whatItDoes":"Run any open-source AI model on Replicate by specifying the model owner, name, and input parameters","exampleAgentPrompt":"Use Replicate to run the black-forest-labs flux-schnell model and generate an image of a futuristic city skyline at sunset with vibrant neon lights.","exampleUseCases":null,"resultDescription":"The model's output, which varies by model type — for image generation models this is typically a URL or base64-encoded image; for language models it's generated text; for audio models it's an audio file URL. The schema of the response depends entirely on the specific model being run.","failureModes":["Invalid model_owner or model_name returns a 404 not found error","Malformed input parameters cause a 422 validation error","Model is unavailable or deprecated returns an error","Input schema mismatch (wrong parameter types for the given model) causes inference failure","Timeout if the model takes too long to run","Insufficient credits or payment failure returns a 402 error"],"whenToPreferThis":"Use this endpoint when you need to run any of thousands of open-source AI models — especially for image generation (Flux, Stable Diffusion, SDXL), language inference, speech recognition, or video generation — and want a single unified API call that handles model execution. Prefer this over building your own model infrastructure when you want pay-per-use access without managing GPUs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":40,"lastUsedAt":"2026-09-14T21:01:53.072Z","lastSuccessfullyRanAt":"2026-09-14T21:01:53.072Z","lastHealthCheckAt":"2026-10-13T00:32:20.755Z","isFirstParty":false,"canonicalSlug":"replicate-run-7a0ee2fd"}