Inne
Inne SEARCH

search

Model ID: search
Rodzina
Inne
Kontekst
Nie określono
Za request
0.00144 zł
Liczba użyć
33
Sukces
100.0%
Tokeny
1.6K
Uptime
24 godz. temuTeraz
7 dni temuTeraz

Cennik

Za request
0.00144 zł
Historia cen

Poziomy cen stosowane wcześniej. Wiersz oznaczony jako „bieżący” to cena obowiązująca.

Bieżąca Od 09/08/2026 - 20:26:59
Za request0.00144 zł
Obsługiwane endpointy
https://api.xah.io/v1/search
Metoda POST · application/json
Autoryzacja Bearer token (klucz API)
Rodzaje API SEARCH

Udostępnij

curl 'https://api.xah.io/v1/search' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "search",
    "query": "What is the latest news about AI?",
    "search_type": "web",
    "max_results": 5,
    "country": "Vietnam",
    "language": "Vietnam"
}'
// Node.js / Browser
const res = await fetch('https://api.xah.io/v1/search', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "model": "search",
    "query": "What is the latest news about AI?",
    "search_type": "web",
    "max_results": 5,
    "country": "Vietnam",
    "language": "Vietnam"
})
});
const data = await res.json();
console.log(data);
import requests

url = 'https://api.xah.io/v1/search'
headers = {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json',
}
payload = {
    "model": "search",
    "query": "What is the latest news about AI?",
    "search_type": "web",
    "max_results": 5,
    "country": "Vietnam",
    "language": "Vietnam"
}

res = requests.post(url, headers=headers, json=payload, timeout=120)
print(res.status_code, res.json())
{
    "model": "search",
    "query": "What is the latest news about AI?",
    "search_type": "web",
    "max_results": 5,
    "country": "Vietnam",
    "language": "Vietnam"
}
Wypróbuj

Ten model nie obsługuje czatu tekstowego, więc nie można go tutaj wypróbować.

Oceny i komentarze
0.0 / 0 ocen
Ładowanie ocen...
Skontaktuj się z pomocą
Zawsze jesteśmy gotowi, aby Ci pomóc