[GH-ISSUE #4200] http://localhost:11434/api endpoint giving 404 error #2614

Closed
opened 2026-04-12 12:58:05 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @ritesh7911 on GitHub (May 6, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/4200

Originally assigned to: @dhiltgen on GitHub.

What is the issue?

I am using latest version of windows . As per readme file when I am hitting http://localhost:11434 i am getting "ollama is running" but "http://localhost:11434/api" is giving error 404

OS

Windows

GPU

AMD

CPU

Intel

Ollama version

0.1.33

Originally created by @ritesh7911 on GitHub (May 6, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/4200 Originally assigned to: @dhiltgen on GitHub. ### What is the issue? I am using latest version of windows . As per readme file when I am hitting http://localhost:11434 i am getting "ollama is running" but "http://localhost:11434/api" is giving error 404 ### OS Windows ### GPU AMD ### CPU Intel ### Ollama version 0.1.33
GiteaMirror added the bug label 2026-04-12 12:58:05 -05:00
Author
Owner

@swapnil34 commented on GitHub (May 7, 2024):

I am experiencing issues with API endpoint as well. Here is the server log:

[GIN] 2024/05/07 - 07:41:01 | 200 | 4.894709434s | 127.0.0.1 | POST "/api/chat"
[GIN] 2024/05/07 - 07:41:07 | 404 | 9.017µs | 127.0.0.1 | GET "/api/generate/"
[GIN] 2024/05/07 - 07:41:13 | 200 | 10.527µs | 127.0.0.1 | GET "/"

See 404 error for api endpoint above

Ollama version: 0.1.33
OS: Mac

<!-- gh-comment-id:2098585515 --> @swapnil34 commented on GitHub (May 7, 2024): I am experiencing issues with API endpoint as well. Here is the server log: [GIN] 2024/05/07 - 07:41:01 | 200 | 4.894709434s | 127.0.0.1 | POST "/api/chat" [GIN] 2024/05/07 - 07:41:07 | **404** | 9.017µs | 127.0.0.1 | GET "/api/generate/" [GIN] 2024/05/07 - 07:41:13 | 200 | 10.527µs | 127.0.0.1 | GET "/" See 404 error for api endpoint above Ollama version: 0.1.33 OS: Mac
Author
Owner

@swapnil34 commented on GitHub (May 8, 2024):

Solution: The API endpoint doesn't respond to GET requests, POST requests seem to be working.

<!-- gh-comment-id:2099776882 --> @swapnil34 commented on GitHub (May 8, 2024): Solution: The API endpoint doesn't respond to GET requests, POST requests seem to be working.
Author
Owner

@dhiltgen commented on GitHub (May 8, 2024):

@ritesh7911 are you trying to use GET to this API? See https://github.com/ollama/ollama/blob/main/docs/api.md#generate-a-completion for usage information.

If it isn't working as described in the API docs, please share more information about how you're calling it and I'll re-open the issue.

<!-- gh-comment-id:2101368402 --> @dhiltgen commented on GitHub (May 8, 2024): @ritesh7911 are you trying to use GET to this API? See https://github.com/ollama/ollama/blob/main/docs/api.md#generate-a-completion for usage information. If it isn't working as described in the API docs, please share more information about how you're calling it and I'll re-open the issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#2614