Hosted model APIs
How to use
Replicate.
Testing public generative models, integrating versioned predictions, running asynchronous media jobs, and deploying custom model versions.
Replicate is a hosted API platform for running and deploying machine-learning models. Testing public generative models, integrating versioned predictions, running asynchronous media jobs, and deploying custom model versions. This guide covers the whole path in one place: official access, a first session that produces something reviewable, the checks that make output trustworthy, and the permissions worth limiting before you connect real work.
AI should make the work easier to inspect. If the workflow removes the source, the owner, or the review step, redesign the workflow.
Access & setup
Find, install, and sign in to Replicate
Get into the official Replicate experience with the right account and a setup you understand.
- 01
Start at https://replicate.com/ and confirm the domain before entering account or payment information.
- 02
Availability: Replicate is accessed through its website, HTTP API, and official client libraries rather than a required desktop application.
- 03
A Replicate account and API token, network access, and a secure server-side or development environment for API integration.
- 04
Sign in with the account you intend to keep using, then review plan, data, notification, and permission settings.
- 05
Run one low-risk test task before connecting sensitive files, repositories, or workspace data.
- Use official download pages.
- Review permissions during setup.
- Keep installers and applications updated.
First session
Your first useful Replicate session
Learn the interaction loop using a small task with a clear outcome.
- 01
Choose a model after reviewing its owner, README, license, schema, examples, and exact version.
- 02
Run representative low-risk inputs in the web interface and record settings, quality, time, and cost.
- 03
Create a server-side API token and reproduce the selected prediction with an explicit version when supported.
- 04
Persist the prediction ID and copy any required output files to durable storage before their API retention expires.
- State the outcome before the background.
- Provide the real source material.
- Review the result before expanding the task.
Quality control
Check the quality of Replicate output
Establish that a change is safe to run in production and reversible if it is not.
- 01
Restate the intended end state and the blast radius before applying anything.
- 02
Review the generated configuration line by line against the provider's current documentation.
- 03
Apply to a non-production environment first and confirm the observed result matches the intended one.
- 04
Confirm the rollback path works by actually exercising it, not by assuming it exists.
- 05
Check cost, scaling limits, and network exposure before the change reaches production traffic.
- Test the rollback, do not assume it.
- Check what a configuration exposes to the public internet.
- Watch cost and rate limits as closely as correctness.
Privacy & permissions
Use Replicate safely
Keep credentials, network exposure, and cost under deliberate control.
- 01
Use scoped, short-lived credentials, and never paste production secrets into a prompt or config file.
- 02
Confirm what each change exposes publicly before applying it, especially storage, databases, and admin endpoints.
- 03
Separate environments so a mistake in development cannot reach production data.
- 04
Set billing alerts and hard quotas before enabling autoscaling or usage-based services.
- 05
Review audit logs and revoke access for integrations that are no longer in use.
- Community models vary in quality, licensing, and safety. Protect API tokens, pin versions, validate inputs and outputs, make webhook processing idempotent, and do not assume generated files remain available permanently.
- Follow your organisation's approved-use policy.
- Never treat fluent output as authorization to act.
Core workflows
Step-by-step ways to use Replicate for the work it does best.
Each workflow is a separate guide with its own steps and review checkpoints.
Test a public or official model against a repeatable benchmark and preserve the exact version used.
↗ 02 WorkflowBuild a reliable asynchronous Replicate prediction flowHandle long-running predictions, callbacks, temporary files, duplicate events, and failures deliberately.
↗Official references
Check the current product documentation.
Features, plan limits, availability, and data controls change. These official pages are the starting points used for this guide.