API Hop 문서
Brave API 참조
Brave: AI Mode 답변.
동시 실행 한도
AI와 Data는 각각 계정 전체의 동시 실행 슬롯을 공유합니다. 기본값은 AI 5 / Data 2이며 구독에 따라 달라집니다. 엔드포인트별 한도도 카테고리 전체 한도를 초과할 수 없습니다. 어느 한도든 도달하면 HTTP 429를 반환합니다. 비동기 작업은 실행이 끝날 때까지 슬롯을 차지합니다.
GET /v1/brave/ai-mode Brave: AI Mode 답변.
인증 및 요금
기본 요금은 성공한 요청당 $0.0003(300 credits)입니다. API Hop API 키를 사용합니다. 접근은 활성 게이트웨이와 권한에 따라 결정됩니다. 성공한 요청 요금은 카탈로그와 계정을 확인하세요. 계정별 요금이 우선하며 성공한 빈 결과도 과금됩니다. 실패하면 예약 금액을 해제합니다. 제한 시간은 60초이며 자동 재시도와 페이지 처리가 없습니다. 정산 오류도 공급자 요청을 반복하지 않습니다.
Authorization: Bearer YOUR_API_KEY쿼리만 허용하며 본문은 사용하지 않습니다. 알 수 없거나 중복된 값, 빈 값, 잘못된 값은 거부합니다. JSON만 지원하며 자동 페이지 조회나 재시도는 없습니다. ID와 토큰은 최신 응답에서 복사하세요. 예시는 설명용입니다. 확인된 빈 결과나 사용 불가 결과를 포함하여 완료된 조회마다 별도 과금됩니다. XOR = 하나만, NOT = 제외, => = 필요.
Brave: AI Mode 답변
GET https://api.apihop.ai/v1/brave/ai-mode
매개변수
| 필드 | 유형 | 제약 | 예시 |
|---|---|---|---|
query | string | 검색어; query: REQUIRED; minLength: 1; UTF-8 bytes: 8192 | What is coffee? |
device | string | 기기; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | 응답 보관 안 함; zero_trace: optional | true |
country | string | 국가 필터 (country); country: optional; ar, au, at, be, br, ca, cl, cn, dk, fi, ... 38; ^[A-Za-z]{2}$ | ar |
language | string | 언어; language: optional; az, bg, br, ca, cs, cy, da, de, el, en, ... 43 | az |
coordinates | string | JSON 좌표 (latitude, longitude) (coordinates); coordinates: optional | {"latitude":30.2672,"longitude":-97.7431} |
safe | string | 결과 필터 (safe); safe: optional; off, moderate, strict | off |
units_of_measurement | string | 측정 단위 (units_of_measurement); units_of_measurement: optional; metric, us | metric |
next_page_token | string | 최신 응답의 토큰 (next_page_token); next_page_token: optional; minLength: 1; maxLength: 24576 | - |
location | string | 검색 위치; location: optional; maxLength: 512 | - |
검증
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejectedcoordinates: JSON object {"latitude":number,"longitude":number}; latitude -90..90; longitude -180..180; NOT (location AND coordinates); NOT (uule AND location); NOT (uule AND coordinates)next_page_token: copy from a fresh response; keep original query, localization and filters; do not fabricate tokens
예시
curl --get "https://api.apihop.ai/v1/brave/ai-mode" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=What is coffee?"응답 및 오류
원본 JSON과 숫자 정밀도를 유지합니다. 예시는 성공한 빈 결과입니다. HTTP 400: 입력; 401: 인증; 402: 잔액; 403: 접근; 405: 메서드; 429: 제한; 5xx: 서비스. X-Request-Id를 보관하세요.
{
"success": true,
"request_id": "example-request",
"data": {
"format": "json",
"content": {
"results": []
}
}
}