Skip to main content
POST
/
api
/
copy
Copy a model to a new name
curl http://localhost:11434/api/copy -d '{
  "source": "gemma3",
  "destination": "gemma3-backup"
}'

Documentation Index

Fetch the complete documentation index at: https://docs.ollama.com/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
source
string
required

Existing model name to copy from

destination
string
required

New model name to create

Response

200

Model successfully copied