데이터 API / OpenAI Web Search / Search
Model-grounded web search (OpenAI).
Generate a cited answer with an OpenAI model and web search. Supply input as a string or message array. The model, tools and search limit are managed by the service. The response is a Responses object whose output includes web_search_call and message items with URL citations. usage reports resource consumption, not a Felo charge.
파라미터
경로, 쿼리, 헤더 파라미터가 없습니다.
요청 본문
inputstring필수Your question or instruction, same format as the OpenAI Responses API
input. A message array is also accepted.max_output_tokensinteger선택Optional cap on the number of tokens generated in the answer.
instructionsstring선택Optional high-level instructions to steer the answer's tone or format.
요청 예시
curl -X POST "https://openapi.felo.ai/v1/beta/openai-websearch/search" \
-H "Authorization: Bearer $FELO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": "<string>",
"max_output_tokens": 0,
"instructions": "<string>"
}'응답
응답 필드
idstring선택objectstring선택statusstring선택outputobject[]선택Ordered items: web_search_call (searches performed) and message (the cited answer).
usageobject선택input_tokensinteger선택output_tokensinteger선택input_tokens_detailsobject선택cached_tokensinteger선택