AI answers API

What AI models answer, and which sources they cite.

Send a prompt to an AI model and get its answer with the sources it cited. Use it to sample answers at scale, or set up trackers that check whether answers mention and cite your brand.

Endpoints and prices

Paths are relative to /v1/. Mirrors: DataForSEO AI Optimization.
  • ChatGPT responsesper response, plus model tokens at the model's list price
    In build
    Our price
    Queued$0.00018Live$0.00054plus model tokens at list
    Published elsewhere
    DataForSEOLive $0.0006, queued from $0.0002, plus model costDataForSEO AI Optimization API pricing
  • Claude responsesper response, plus model tokens at the model's list price
    In build
    Our price
    Queued$0.00018Live$0.00054plus model tokens at list
    Published elsewhere
    DataForSEOLive $0.0006, queued from $0.0002, plus model costDataForSEO AI Optimization API pricing
  • Visibility tracker: Perplexityper successful answer
    Available
    Our price
    $0.01
    Published elsewhereOur own endpoint
  • Visibility tracker: ChatGPTper successful answer
    Available
    Our price
    $0.05
    Published elsewhereOur own endpoint
  • Visibility tracker: Claudeper successful answer
    Available
    Our price
    $0.10
    Published elsewhereOur own endpoint
SERP prices are per mode: standard queue, priority queue, live. Prices elsewhere are as published on 2026-12-03 for the same unit; they may have changed since. Our list prices are pending commercial approval.

What each endpoint returns

  • ChatGPT responses

    DataForSEO format

    The model's answer text, the URLs and domains it cited, and token usage.

    • POST /v1/ai/chat_gpt/llm_responses/live
    • POST /v1/ai/chat_gpt/llm_responses/task_post
    • POST /v1/ai/chat_gpt/llm_responses/task_get/{id}
  • Claude responses

    DataForSEO format

    The model's answer text, the URLs and domains it cited, and token usage.

    • POST /v1/ai/claude/llm_responses/live
    • POST /v1/ai/claude/llm_responses/task_post
    • POST /v1/ai/claude/llm_responses/task_get/{id}
  • Visibility tracker: Perplexity

    Our own format

    For each saved prompt: whether the answer mentions your brand, cites your domains, and which other sources it names.

    • POST /v1/visibility/trackers
  • Visibility tracker: ChatGPT

    Our own format

    The same tracker fields, answered by ChatGPT.

    • POST /v1/visibility/trackers
  • Visibility tracker: Claude

    Our own format

    The same tracker fields, answered by Claude.

    • POST /v1/visibility/trackers

How AI answers are billed

AI answers don't use fetch levels. A response is billed its base fee plus the model's tokens at that model's list price, and a failed response costs $0.

Queued tasks run in batches and return within hours, which is why their base fee is lower than live.

Freshness and caching

AI answers are never cached. Each response is a fresh sample, because tracking needs fresh draws.

Migrating an existing integration

Swap the base URL and key. Use Basic auth with any login and your dg_ API key as the password, or send it as a Bearer token. Request bodies and response parsing stay as they are.
Path changes for AI answers API
You call todayCall instead
https://api.dataforseo.com/v3/ai_optimization/chat_gpt/llm_responses/livehttps://api.dataforgaio.com/v1/ai/chat_gpt/llm_responses/live
POST /v1/ai/chat_gpt/llm_responses/liveRequest
curl -u "any-login:$DATAFORGAIO_API_KEY" \
  -H "Content-Type: application/json" \
  https://api.dataforgaio.com/v1/ai/chat_gpt/llm_responses/live \
  -d '[{
    "user_prompt": "What are good trail running shoes for wide feet?",
    "model_name": "gpt-4o-mini",
    "web_search": true
  }]'
200 OKResponse, abridged
{
  "status_code": 20000,
  "tasks": [{
    "status_code": 20000,
    "cost": 0.01254,
    "receipt_id": "rcpt_…",
    "result": [{
      "model_name": "gpt-4o-mini",
      "items": [{ "type": "message", "text": "…" }],
      "annotations": [{ "url": "https://…", "title": "…" }]
    }]
  }]
}

Run the AI answers API on your own inputs.

Start with no deposit. Each task reports its cost and comes with a receipt.