FunctionGemma API

google/functiongemma-270m-it — Function calling inference API

Endpoints

GET/ — This page

POST/generate — Run inference

Example cURL

curl --location 'https://jerinaj-functiongemm.hf.space/generate' \
--header 'Content-Type: application/json' \
--data '{
    "messages": [
        {
            "role": "user",
            "content": "What is the weather in London?"
        }
    ],
    "tools": [
        {
            "name": "get_weather",
            "description": "Get current weather for a city",
            "parameters": {
                "type": "object",
                "properties": {
                    "city": {
                        "type": "string",
                        "description": "City name"
                    }
                },
                "required": ["city"]
            }
        }
    ]
}'

Try it