Harness 설정
Chat API
query 분석, Web 리소스, citation을 포함한 AI 대화형 검색을 통합하세요.
POST
/v2/chat인증
Bearer API key
Content type
application/json
속도 제한
Per API key and per user windows. Read X-RateLimit headers.
Chat API 은 AI-powered conversational search 를アプリ에統合する API 입니다。natural language query 를送り、real-time web search results 에基づく answer 를受け取ります。
Overview
- query 를分析・最適化
- relevant information 를 web search
- search results 를 ranking/filtering
- sources 에基づき AI answer 를生成
- answer と source citations 를반환
인증
Authorization: Bearer YOUR_API_KEYEndpoint
POST https://openapi.felo.ai/v2/chat요청
| 파라미터 | 타입 | 필수 | 설명 |
|---|---|---|---|
query | string | 예 | user question また은 search query。1-2000 characters |
응답
{
"status": "ok",
"message": null,
"data": {
"answer": "...",
"query_analysis": { "queries": ["..."] },
"resources": [{ "link": "https://example.com", "title": "Source", "snippet": "..." }]
}
}오류 코드
| Code | HTTP Status | 설명 |
|---|---|---|
INVALID_API_KEY | 401 | API Key invalid また은 revoked |
MISSING_AUTHORIZATION | 401 | Authorization header がありません |
MISSING_PARAMETER | 400 | required parameter がありません |
QUERY_TOO_LONG | 400 | query が長すぎます |
RATE_LIMITED | 429 | requests が너무 많습니다 |
Example
curl -X POST https://openapi.felo.ai/v2/chat -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"query":"What are the benefits of renewable energy?"}'