TEXT

thuonghongthai97/gemini-pro-3.1

: thuonghongthai97/gemini-pro-3.1
0.000786 €
2
100.0%
68K
100.00%

0.0786 €
0.118 €
0.000393 €
0.000786 €

14/08/2026 - 20:36:21
0.0786 € 0.118 € 0.000393 € 0.000786 €
0 €
0 €

https://api.xah.io/v1/chat/completions
https://api.xah.io/v1/messages
https://api.xah.io/v1/responses
https://api.xah.io/v1beta/models/thuonghongthai97/gemini-pro-3.1:generateContent
https://api.xah.io/api/chat
https://api.xah.io/api/generate
POST · application/json
TEXT

curl 'https://api.xah.io/v1/chat/completions' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "thuonghongthai97/gemini-pro-3.1",
    "messages": [
        {
            "role": "user",
            "content": "Xin chào, bạn là ai?"
        }
    ]
}'
// Node.js / Browser
const res = await fetch('https://api.xah.io/v1/chat/completions', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "model": "thuonghongthai97/gemini-pro-3.1",
    "messages": [
        {
            "role": "user",
            "content": "Xin chào, bạn là ai?"
        }
    ]
})
});
const data = await res.json();
console.log(data);
import requests

url = 'https://api.xah.io/v1/chat/completions'
headers = {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json',
}
payload = {
    "model": "thuonghongthai97/gemini-pro-3.1",
    "messages": [
        {
            "role": "user",
            "content": "Xin chào, bạn là ai?"
        }
    ]
}

res = requests.post(url, headers=headers, json=payload, timeout=120)
print(res.status_code, res.json())
{
    "model": "thuonghongthai97/gemini-pro-3.1",
    "messages": [
        {
            "role": "user",
            "content": "Xin chào, bạn là ai?"
        }
    ]
}

0.0 / 0
Contacter le support
Nous sommes toujours prêts à vous aider