Skip to main content
POST
https://api.evergreens.ai
/
tedi
/
networks
/
browser
/
ai
/
grok
{
  "prompt": "What are the latest trends in AI?",
  "fields": {
    "citations": ["url", "title", "description", "icon", "domain"],
    "sources": ["url", "title", "snippet", "rank", "datePublished"],
    "paragraphs": {
      "text": true,
      "citations": ["url", "title", "description", "icon", "domain"]
    }
  },
  "cache": {
    "enabled": true,
    "ttl": 7200
  }
}
{
  "status": true,
  "data": {
    "text": "The latest trends in AI include advancements in large language models, multimodal AI systems, and AI agents...",
    "markdown": "The latest trends in AI include advancements in **large language models**, **multimodal AI systems**, and **AI agents**...",
    "model": "grok-2",
    "sources": [
      {
        "url": "https://example.com/ai-trends",
        "title": "AI Trends 2026",
        "snippet": "A comprehensive overview of the latest AI trends and developments in 2026.",
        "rank": 1,
        "datePublished": "2026-02-01T00:00:00.000Z"
      }
      // ... rest
    ],
    "citations": [
      {
        "url": "https://example.com/ai-trends",
        "title": "AI Trends 2026",
        "description": "A comprehensive overview of the latest AI trends and developments.",
        "icon": "https://www.google.com/s2/favicons?domain=example.com&sz=32",
        "domain": "example.com",
        "cited": true
      }
      // ... rest
    ],
    "paragraphs": [
      {
        "text": "The latest trends in AI include advancements in **large language models**, **multimodal AI systems**, and **AI agents**...",
        "citations": [
          {
            "url": "https://example.com/ai-trends",
            "title": "AI Trends 2026",
            "description": "A comprehensive overview...",
            "icon": "https://www.google.com/s2/favicons?domain=example.com&sz=32",
            "domain": "example.com"
          }
        ]
      }
      // ... rest
    ]
  },
  "cached": false,
  "cacheExpiresIn": null
}
Entity Reference:
AiSearchEntity
Grok is an AI assistant developed by xAI, designed to provide real-time information and insights. This endpoint allows you to query Grok and receive structured responses with citations and sources.
The Grok AI Search endpoint returns structured responses following the unified AiSearchEntity format, including text, markdown, citations, sources, and paragraphs.

Request

prompt
string
required
The search query or prompt to be sent to the AI search provider.
  • Minimum length: 1 character
  • Maximum length: 500 characters
fields
object
Specify which response fields to include. This allows you to optimize the response size by requesting only the data you need.
cache
object
An optional object to configure caching behavior for the request. By default, caching is enabled with a TTL of 120 seconds. You can customize these settings by providing the cache object.

Response

cached
boolean
default:true
Indicates whether the response was served from cache.
cacheExpiresIn
number
default:7200
The time in seconds until the cached response expires. Default is 7200 seconds (2 hours).
data
object
required
{
  "prompt": "What are the latest trends in AI?",
  "fields": {
    "citations": ["url", "title", "description", "icon", "domain"],
    "sources": ["url", "title", "snippet", "rank", "datePublished"],
    "paragraphs": {
      "text": true,
      "citations": ["url", "title", "description", "icon", "domain"]
    }
  },
  "cache": {
    "enabled": true,
    "ttl": 7200
  }
}
{
  "status": true,
  "data": {
    "text": "The latest trends in AI include advancements in large language models, multimodal AI systems, and AI agents...",
    "markdown": "The latest trends in AI include advancements in **large language models**, **multimodal AI systems**, and **AI agents**...",
    "model": "grok-2",
    "sources": [
      {
        "url": "https://example.com/ai-trends",
        "title": "AI Trends 2026",
        "snippet": "A comprehensive overview of the latest AI trends and developments in 2026.",
        "rank": 1,
        "datePublished": "2026-02-01T00:00:00.000Z"
      }
      // ... rest
    ],
    "citations": [
      {
        "url": "https://example.com/ai-trends",
        "title": "AI Trends 2026",
        "description": "A comprehensive overview of the latest AI trends and developments.",
        "icon": "https://www.google.com/s2/favicons?domain=example.com&sz=32",
        "domain": "example.com",
        "cited": true
      }
      // ... rest
    ],
    "paragraphs": [
      {
        "text": "The latest trends in AI include advancements in **large language models**, **multimodal AI systems**, and **AI agents**...",
        "citations": [
          {
            "url": "https://example.com/ai-trends",
            "title": "AI Trends 2026",
            "description": "A comprehensive overview...",
            "icon": "https://www.google.com/s2/favicons?domain=example.com&sz=32",
            "domain": "example.com"
          }
        ]
      }
      // ... rest
    ]
  },
  "cached": false,
  "cacheExpiresIn": null
}