Felo API PlatformFelo API Platform
v0.1.0-beta
OpenAPI 3.1.0

Get a direct, cited answer to a question.

伺服器:https://openapi.felo.ai
用戶端程式庫

Exa

​

Semantic search, page content, cited answers and asynchronous research.

Get a direct, cited answer to a question.

​

Ask a question and get a written answer with citations. query is required; text includes the source text and outputSchema shapes a structured reply. Returns requestId, answer as prose, citations[] with id, title and url, and costDollars.

請求本文
必填
application/json
  • query
    類型: string
    必填

    The question to answer.

  • outputSchema
    類型: object

    JSON Schema for a structured answer output.

  • text
    類型: boolean

    Include the full page text of each citation.

  • type
    類型: string 列舉

    Retrieval mode used to gather sources before answering.

    值
    • auto
    • fast
    • instant
    • deep-lite
    • deep
    • deep-reasoning
回應
  • 200
    類型: object

    Answer generated successfully.

    • answer
      可為 null

      The generated answer. A string, or a structured object when outputSchema was supplied.

    • citations
      類型: array object[]

      Sources supporting the answer.

      • author
        類型: string
      • id
        類型: string
      • publishedDate
        類型: string
      • text
        類型: string
      • title
        類型: string
      • url
        類型: string
    • costDollars
      可為 null

      Upstream Exa cost breakdown. Informational only; customer billing is the flat $0.08.

    • requestId
      類型: string
    application/json
  • 400

    The request could not be processed. Check the request parameters.

  • 401

    A valid Felo API key is required.

  • 402

    The request cannot proceed because a billing requirement is not met.

  • 403

    The account is not permitted to perform this operation.

  • 429

    A request or spending limit has been reached.

  • 502

    The service could not complete the request.

  • 503

    The API or billing service is temporarily unavailable.

  • 504

    The service timed out while processing the request.

  • default

    The operation failed. Keep the response request ID when contacting Felo support.

Request Example for post/v1/beta/exa/answer
curl https://openapi.felo.ai/v1/beta/exa/answer \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "query": "Which manufacturers had the top three global EV sales in 2025?",
  "text": true,
  "type": "auto",
  "outputSchema": {}
}'
{
  "requestId": "string",
  "answer": null,
  "citations": [
    {
      "id": "string",
      "url": "string",
      "title": "string",
      "author": "string",
      "publishedDate": "string",
      "text": "string"
    }
  ],
  "costDollars": null
}
Get a direct, cited answer to a question.