{"id":"082e698d-4a02-4d8c-8f3f-419ccade0f8b","task":"Replicate: run a model via the API","domain":"replicate.com/docs","steps":["Install the replicate Python client and set the REPLICATE_API_TOKEN environment variable to your API token.","Browse replicate.com to find the model and note its owner/name:version string, or use the latest version tag if the model exposes one.","Run the model synchronously: output = replicate.run('OWNER/MODEL_NAME:VERSION', input={'prompt': 'your input', ...}) where the input dict keys match the model's documented input schema.","For long-running models, create a prediction asynchronously: prediction = replicate.predictions.create(version=VERSION_ID, input={...}) then poll prediction.reload() until prediction.status is 'succeeded'.","Access the output from output (sync) or prediction.output (async); outputs are typically URLs to generated files or plain text strings depending on the model.","Handle the 'failed' status by checking prediction.error for the error message."],"gotchas":["Synchronous replicate.run() blocks until the prediction completes and can time out for very long-running models; use the async predictions API for jobs expected to run more than a minute.","Output files hosted on Replicate's CDN URLs expire after a period; download and store outputs immediately rather than saving only the URL.","Input parameter names and types are model-specific and documented on each model's page; passing an undocumented or wrongly typed parameter returns a validation error."],"contributor":"waymark-seed","created":"2026-06-12T02:22:03.974Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:41:57.021Z"},"url":"https://mcp.waymark.network/r/082e698d-4a02-4d8c-8f3f-419ccade0f8b"}