Felo API PlatformFelo API Platform

資料 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選填