[GH-ISSUE #11901] /api/create - "neither 'from' or 'files' was specified" error #33662

Closed
opened 2026-04-22 16:34:03 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @AlexPetrusca on GitHub (Aug 14, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/11901

What is the issue?

I was following the api documentation for https://ollama.readthedocs.io/en/api/#create-a-new-model. This section has an example showing how to create a new model from a Modelfile. But this example fails on the latest version of Ollama.

Running the command in the docs:

curl http://localhost:11434/api/create -d '{
  "model": "mario",
  "modelfile": "FROM llama3\nSYSTEM You are mario from Super Mario Bros."
}'

gives me:

{"error":"neither 'from' or 'files' was specified","status":400}

regardless of what model I choose.

Relevant log output

ollama ls 
NAME                       ID              SIZE      MODIFIED           
llama3:latest              365c0bd3c000    4.7 GB    About a minute ago    
gpt-oss:latest             aa4295ac10c3    13 GB     16 minutes ago 
...

OS

macOS

GPU

Apple

CPU

Apple

Ollama version

0.11.4

Originally created by @AlexPetrusca on GitHub (Aug 14, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/11901 ### What is the issue? I was following the api documentation for https://ollama.readthedocs.io/en/api/#create-a-new-model. This section has an example showing how to **create a new model from a Modelfile**. But this example fails on the latest version of Ollama. Running the command in the docs: ```bash curl http://localhost:11434/api/create -d '{ "model": "mario", "modelfile": "FROM llama3\nSYSTEM You are mario from Super Mario Bros." }' ``` gives me: ```json {"error":"neither 'from' or 'files' was specified","status":400} ``` regardless of what model I choose. ### Relevant log output ```shell ollama ls NAME ID SIZE MODIFIED llama3:latest 365c0bd3c000 4.7 GB About a minute ago gpt-oss:latest aa4295ac10c3 13 GB 16 minutes ago ... ``` ### OS macOS ### GPU Apple ### CPU Apple ### Ollama version 0.11.4
GiteaMirror added the bug label 2026-04-22 16:34:03 -05:00
Author
Owner

@rick-github commented on GitHub (Aug 14, 2025):

https://github.com/ollama/ollama/blob/main/docs/api.md#create-a-model

<!-- gh-comment-id:3189350407 --> @rick-github commented on GitHub (Aug 14, 2025): https://github.com/ollama/ollama/blob/main/docs/api.md#create-a-model
Author
Owner

@pdevine commented on GitHub (Aug 14, 2025):

Going to close this as answered. For some reason google doesn't index our docs anymore so there are these other unaffiliated sites creating their own docs (or using outdated docs) which get picked up in searches.

<!-- gh-comment-id:3189799351 --> @pdevine commented on GitHub (Aug 14, 2025): Going to close this as answered. For some reason google doesn't index our docs anymore so there are these other unaffiliated sites creating their own docs (or using outdated docs) which get picked up in searches.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#33662