404 error when accessing google/gemma-2-27b-it chat completion endpoint

Hi Hugging Face team,

I’m currently trying to use the model google/gemma-2-27b-it via the chat completions API, but I’m getting a 404 error when sending a request to the following endpoint:

bash

SalinEdit

https://router.huggingface.co/google/gemma-2-27b-it/v1/chat/completions

Here is the full error message:

bash

SalinEdit

404 Client Error: Not Found for url: https://router.huggingface.co/google/gemma-2-27b-it/v1/chat/completions
(Request ID: Root=1-683d55ae-4365e822229e0a423f164d56;0912aa19-4d00-4575-b250-5e23c4163bcb)

I’m not sure if this endpoint is no longer supported or if I’m using the wrong URL for the chat interface. I’ve checked the model card but couldn’t find specific instructions for chat completion usage via the Hugging Face inference endpoint.

  • Could you confirm whether google/gemma-2-27b-it supports chat completions via this endpoint?
  • If not, is there a different way to interact with the model in a conversational format?

Any help would be appreciated. Thank you!

1 Like

google/gemma-2-27b-it

is not deployed. Try other models.