curl -X POST 'https://api.exa.ai/contents' \
-H 'x-api-key: YOUR-EXA-API-KEY' \
-H 'Content-Type: application/json' \
-d '{
"urls": ["https://arxiv.org/abs/2307.06435"],
"text": true
}'{
"requestId": "e492118ccdedcba5088bfc4357a8a125",
"results": [
{
"title": "A Comprehensive Overview of Large Language Models",
"url": "https://arxiv.org/pdf/2307.06435.pdf",
"publishedDate": "2023-11-16T01:36:32.547Z",
"author": "Humza Naveed, University of Engineering and Technology (UET), Lahore, Pakistan",
"id": "https://arxiv.org/abs/2307.06435",
"image": "https://arxiv.org/pdf/2307.06435.pdf/page_1.png",
"favicon": "https://arxiv.org/favicon.ico",
"text": "Abstract Large Language Models (LLMs) have recently demonstrated remarkable capabilities...",
"highlights": [
"Such requirements have limited their adoption..."
],
"highlightScores": [
0.4600165784358978
],
"summary": "This overview paper on Large Language Models (LLMs) highlights key developments...",
"subpages": [
{
"id": "https://arxiv.org/abs/2303.17580",
"url": "https://arxiv.org/pdf/2303.17580.pdf",
"title": "HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Face",
"author": "Yongliang Shen, Microsoft Research Asia, Kaitao Song, Microsoft Research Asia, Xu Tan, Microsoft Research Asia, Dongsheng Li, Microsoft Research Asia, Weiming Lu, Microsoft Research Asia, Yueting Zhuang, Microsoft Research Asia, [email protected], Zhejiang University, Microsoft Research Asia, Microsoft Research, Microsoft Research Asia",
"publishedDate": "2023-11-16T01:36:20.486Z",
"text": "HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Face Date Published: 2023-05-25 Authors: Yongliang Shen, Microsoft Research Asia Kaitao Song, Microsoft Research Asia Xu Tan, Microsoft Research Asia Dongsheng Li, Microsoft Research Asia Weiming Lu, Microsoft Research Asia Yueting Zhuang, Microsoft Research Asia, [email protected] Zhejiang University, Microsoft Research Asia Microsoft Research, Microsoft Research Asia Abstract Solving complicated AI tasks with different domains and modalities is a key step toward artificial general intelligence. While there are abundant AI models available for different domains and modalities, they cannot handle complicated AI tasks. Considering large language models (LLMs) have exhibited exceptional ability in language understanding, generation, interaction, and reasoning, we advocate that LLMs could act as a controller to manage existing AI models to solve complicated AI tasks and language could be a generic interface to empower t",
"summary": "HuggingGPT is a framework using ChatGPT as a central controller to orchestrate various AI models from Hugging Face to solve complex tasks. ChatGPT plans the task, selects appropriate models based on their descriptions, executes subtasks, and summarizes the results. This approach addresses limitations of LLMs by allowing them to handle multimodal data (vision, speech) and coordinate multiple models for complex tasks, paving the way for more advanced AI systems.",
"highlights": [
"2) Recently, some researchers started to investigate the integration of using tools or models in LLMs ."
],
"highlightScores": [
0.32679107785224915
]
}
],
"extras": {
"links": []
}
}
],
"context": "<string>",
"statuses": [
{
"id": "https://example.com",
"status": "success",
"error": {
"tag": "CRAWL_NOT_FOUND",
"httpStatusCode": 404
}
}
],
"costDollars": {
"total": 0.005,
"breakDown": [
{
"search": 0.005,
"contents": 0,
"breakdown": {
"neuralSearch": 0.005,
"deepSearch": 0.015,
"contentText": 0,
"contentHighlight": 0,
"contentSummary": 0
}
}
],
"perRequestPrices": {
"neuralSearch_1_25_results": 0.005,
"neuralSearch_26_100_results": 0.025,
"neuralSearch_100_plus_results": 1,
"deepSearch_1_25_results": 0.015,
"deepSearch_26_100_results": 0.075
},
"perPagePrices": {
"contentText": 0.001,
"contentHighlight": 0.001,
"contentSummary": 0.001
}
}
}Get the full page contents, summaries, and metadata for a list of URLs.
Returns instant results from our cache, with automatic live crawling as fallback for uncached pages.
curl -X POST 'https://api.exa.ai/contents' \
-H 'x-api-key: YOUR-EXA-API-KEY' \
-H 'Content-Type: application/json' \
-d '{
"urls": ["https://arxiv.org/abs/2307.06435"],
"text": true
}'{
"requestId": "e492118ccdedcba5088bfc4357a8a125",
"results": [
{
"title": "A Comprehensive Overview of Large Language Models",
"url": "https://arxiv.org/pdf/2307.06435.pdf",
"publishedDate": "2023-11-16T01:36:32.547Z",
"author": "Humza Naveed, University of Engineering and Technology (UET), Lahore, Pakistan",
"id": "https://arxiv.org/abs/2307.06435",
"image": "https://arxiv.org/pdf/2307.06435.pdf/page_1.png",
"favicon": "https://arxiv.org/favicon.ico",
"text": "Abstract Large Language Models (LLMs) have recently demonstrated remarkable capabilities...",
"highlights": [
"Such requirements have limited their adoption..."
],
"highlightScores": [
0.4600165784358978
],
"summary": "This overview paper on Large Language Models (LLMs) highlights key developments...",
"subpages": [
{
"id": "https://arxiv.org/abs/2303.17580",
"url": "https://arxiv.org/pdf/2303.17580.pdf",
"title": "HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Face",
"author": "Yongliang Shen, Microsoft Research Asia, Kaitao Song, Microsoft Research Asia, Xu Tan, Microsoft Research Asia, Dongsheng Li, Microsoft Research Asia, Weiming Lu, Microsoft Research Asia, Yueting Zhuang, Microsoft Research Asia, [email protected], Zhejiang University, Microsoft Research Asia, Microsoft Research, Microsoft Research Asia",
"publishedDate": "2023-11-16T01:36:20.486Z",
"text": "HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Face Date Published: 2023-05-25 Authors: Yongliang Shen, Microsoft Research Asia Kaitao Song, Microsoft Research Asia Xu Tan, Microsoft Research Asia Dongsheng Li, Microsoft Research Asia Weiming Lu, Microsoft Research Asia Yueting Zhuang, Microsoft Research Asia, [email protected] Zhejiang University, Microsoft Research Asia Microsoft Research, Microsoft Research Asia Abstract Solving complicated AI tasks with different domains and modalities is a key step toward artificial general intelligence. While there are abundant AI models available for different domains and modalities, they cannot handle complicated AI tasks. Considering large language models (LLMs) have exhibited exceptional ability in language understanding, generation, interaction, and reasoning, we advocate that LLMs could act as a controller to manage existing AI models to solve complicated AI tasks and language could be a generic interface to empower t",
"summary": "HuggingGPT is a framework using ChatGPT as a central controller to orchestrate various AI models from Hugging Face to solve complex tasks. ChatGPT plans the task, selects appropriate models based on their descriptions, executes subtasks, and summarizes the results. This approach addresses limitations of LLMs by allowing them to handle multimodal data (vision, speech) and coordinate multiple models for complex tasks, paving the way for more advanced AI systems.",
"highlights": [
"2) Recently, some researchers started to investigate the integration of using tools or models in LLMs ."
],
"highlightScores": [
0.32679107785224915
]
}
],
"extras": {
"links": []
}
}
],
"context": "<string>",
"statuses": [
{
"id": "https://example.com",
"status": "success",
"error": {
"tag": "CRAWL_NOT_FOUND",
"httpStatusCode": 404
}
}
],
"costDollars": {
"total": 0.005,
"breakDown": [
{
"search": 0.005,
"contents": 0,
"breakdown": {
"neuralSearch": 0.005,
"deepSearch": 0.015,
"contentText": 0,
"contentHighlight": 0,
"contentSummary": 0
}
}
],
"perRequestPrices": {
"neuralSearch_1_25_results": 0.005,
"neuralSearch_26_100_results": 0.025,
"neuralSearch_100_plus_results": 1,
"deepSearch_1_25_results": 0.015,
"deepSearch_26_100_results": 0.075
},
"perPagePrices": {
"contentText": 0.001,
"contentHighlight": 0.001,
"contentSummary": 0.001
}
}
}API key can be provided either via x-api-key header or Authorization header with Bearer scheme
Array of URLs to crawl (backwards compatible with 'ids' parameter).
["https://arxiv.org/pdf/2307.06435"]Deprecated - use 'urls' instead. Array of document IDs obtained from searches.
["https://arxiv.org/pdf/2307.06435"]If true, returns full page text with default settings. If false, disables text return.
Text snippets the LLM identifies as most relevant from each page.
Show child attributes
The number of sentences to return for each snippet.
x >= 11
The number of snippets to return for each result.
x >= 11
Custom query to direct the LLM's selection of highlights.
"Key advancements"
Summary of the webpage
Show child attributes
Custom query for the LLM-generated summary.
"Main developments"
JSON schema for structured output from summary. See https://json-schema.org/overview/what-is-jsonschema for JSON Schema documentation.
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Title",
"type": "object",
"properties": {
"Property 1": {
"type": "string",
"description": "Description"
},
"Property 2": {
"type": "string",
"enum": ["option 1", "option 2", "option 3"],
"description": "Description"
}
},
"required": ["Property 1"]
}Options for livecrawling pages. 'never': Disable livecrawling (default for neural search). 'fallback': Livecrawl when cache is empty. 'always': Always livecrawl. 'preferred': Always try to livecrawl, but fall back to cache if crawling fails.
never, fallback, always, preferred "always"
The timeout for livecrawling in milliseconds.
1000
The number of subpages to crawl. The actual number crawled may be limited by system constraints.
1
Term to find specific subpages of search results. Can be a single string or an array of strings, comma delimited.
"sources"
Return page contents as a context string for LLM. When true, combines all result contents into one string. We recommend using 10000+ characters for best results, though no limit works best. Context strings often perform better than highlights for RAG applications.
true
OK
Unique identifier for the request
"e492118ccdedcba5088bfc4357a8a125"
Show child attributes
The title of the search result.
"A Comprehensive Overview of Large Language Models"
The URL of the search result.
"https://arxiv.org/pdf/2307.06435.pdf"
An estimate of the creation date, from parsing HTML content. Format is YYYY-MM-DD.
"2023-11-16T01:36:32.547Z"
If available, the author of the content.
"Humza Naveed, University of Engineering and Technology (UET), Lahore, Pakistan"
The temporary ID for the document. Useful for /contents endpoint.
"https://arxiv.org/abs/2307.06435"
The URL of an image associated with the search result, if available.
"https://arxiv.org/pdf/2307.06435.pdf/page_1.png"
The URL of the favicon for the search result's domain.
"https://arxiv.org/favicon.ico"
The full content text of the search result.
"Abstract Large Language Models (LLMs) have recently demonstrated remarkable capabilities..."
Array of highlights extracted from the search result content.
[
"Such requirements have limited their adoption..."
]Array of cosine similarity scores for each highlighted
[0.4600165784358978]Summary of the webpage
"This overview paper on Large Language Models (LLMs) highlights key developments..."
Array of subpages for the search result.
[
{
"id": "https://arxiv.org/abs/2303.17580",
"url": "https://arxiv.org/pdf/2303.17580.pdf",
"title": "HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Face",
"author": "Yongliang Shen, Microsoft Research Asia, Kaitao Song, Microsoft Research Asia, Xu Tan, Microsoft Research Asia, Dongsheng Li, Microsoft Research Asia, Weiming Lu, Microsoft Research Asia, Yueting Zhuang, Microsoft Research Asia, [email protected], Zhejiang University, Microsoft Research Asia, Microsoft Research, Microsoft Research Asia",
"publishedDate": "2023-11-16T01:36:20.486Z",
"text": "HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Face Date Published: 2023-05-25 Authors: Yongliang Shen, Microsoft Research Asia Kaitao Song, Microsoft Research Asia Xu Tan, Microsoft Research Asia Dongsheng Li, Microsoft Research Asia Weiming Lu, Microsoft Research Asia Yueting Zhuang, Microsoft Research Asia, [email protected] Zhejiang University, Microsoft Research Asia Microsoft Research, Microsoft Research Asia Abstract Solving complicated AI tasks with different domains and modalities is a key step toward artificial general intelligence. While there are abundant AI models available for different domains and modalities, they cannot handle complicated AI tasks. Considering large language models (LLMs) have exhibited exceptional ability in language understanding, generation, interaction, and reasoning, we advocate that LLMs could act as a controller to manage existing AI models to solve complicated AI tasks and language could be a generic interface to empower t",
"summary": "HuggingGPT is a framework using ChatGPT as a central controller to orchestrate various AI models from Hugging Face to solve complex tasks. ChatGPT plans the task, selects appropriate models based on their descriptions, executes subtasks, and summarizes the results. This approach addresses limitations of LLMs by allowing them to handle multimodal data (vision, speech) and coordinate multiple models for complex tasks, paving the way for more advanced AI systems.",
"highlights": [
"2) Recently, some researchers started to investigate the integration of using tools or models in LLMs ."
],
"highlightScores": [0.32679107785224915]
}
]Return page contents as a context string for LLM. When true, combines all result contents into one string. Context strings often perform better than highlights for LLMs.
Status information for each requested URL
Show child attributes
The URL that was requested
"https://example.com"
Status of the content fetch operation
success, error "success"
Error details, only present when status is "error"
Show child attributes
Show child attributes
Total dollar cost for your request
0.005
Breakdown of costs by operation type
Show child attributes
Cost of your search operations
0.005
Cost of your content operations
0
Show child attributes
Cost of your neural search operations
0.005
Cost of your deep search operations
0.015
Cost of your text content retrieval
0
Cost of your highlight generation
0
Cost of your summary generation
0
Standard price per request for different operations
Show child attributes
Standard price for neural search with 1-25 results
0.005
Standard price for neural search with 26-100 results
0.025
Standard price for neural search with 100+ results
1
Standard price for deep search with 1-25 results
0.015
Standard price for deep search with 26-100 results
0.075
Standard price per page for different content operations
Show child attributes
Standard price per page for text content
0.001
Standard price per page for highlights
0.001
Standard price per page for summaries
0.001