Create a model
Create a model.
Example cURL request:
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"owner": "alice", "name": "hot-dog-detector", "description": "Detect hot dogs in images", "visibility": "public", "hardware": "cpu"}' \
https://api.replicate.com/v1/models
The response will be a model object in the following format:
{
"url": "https://replicate.com/alice/hot-dog-detector",
"owner": "alice",
"name": "hot-dog-detector",
"description": "Detect hot dogs in images",
"visibility": "public",
"github_url": null,
"paper_url": null,
"license_url": null,
"run_count": 0,
"cover_image_url": null,
"default_example": null,
"latest_version": null,
}
Note that there is a limit of 1,000 models per account. For most purposes, we recommend using a single model and pushing new versions of the model as you make changes to it.
post/models
Request body
Example request
{
"description": "Detect hot dogs in images",
"github_url": "https://github.com/alice/hot-dog-detector",
"hardware": "cpu",
"name": "hot-dog-detector",
"owner": "alice",
"paper_url": "https://arxiv.org/abs/2504.17639",
"visibility": "public"
}Response
Success