# लाइव ChatGPT LLM Responses

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/ai_optimization/chat_gpt/llm_responses/live`

**Tags:** DataForSEO

ChatGPT मॉडल को `user_prompt` भेजता है और सिंक्रोनस रूप से उसका उत्तर लौटाता है। `model_name` मॉडल चुनता है — देखें `get_dataforseo_ai_chat_gpt_llm_responses_models`, और सूची में न होने वाला नाम सीधे अस्वीकार हो जाता है। `max_output_tokens`, `temperature` और `top_p` वैसे ही व्यवहार करते हैं जैसे विक्रेता के अपने API पर, और `web_search` या `force_web_search` इसे ब्राउज़ करने देते हैं। `model_name`, `input_tokens`, `output_tokens`, `reasoning_tokens`, `web_search`, `money_spent`, `datetime`, `items` और `fan_out_queries` लौटाता है। किसी प्रॉम्प्ट की वास्तविक लागत देखने के लिए response पर `money_spent` पढ़ें। DataForSEO के envelope में लिपटा: डेटा `tasks[0].result` में, परिणाम `tasks[0].status_code` में — अस्वीकृत request फिर भी HTTP 200 लौटाता है। ⚠️ यह डेटा प्रोवाइडर के ज़रिए भेजा गया सामान्य LLM कॉल है, SEO माप नहीं। यदि आप जानना चाहते हैं कि ChatGPT किसी ब्रांड के बारे में उपयोगकर्ताओं को क्या बताता है, तो इसके बजाय `post_dataforseo_ai_chat_gpt_llm_scraper_live` उपभोक्ता अनुभव को दोहराता है।

### मूल्य संदर्भ

- मीटरिंग: रिपोर्ट किया गया response लागत
- संदर्भ request अनुमान: USD 0.0695
- संदर्भ ग्राहक गुणक: 1.0। निपटाई गई ग्राहक राशि पर इसे दोबारा लागू न करें।

यह केवल संदर्भ मेटाडेटा है — खाते का कोटेशन, गारंटीशुदा मूल्य या खर्च सीमा नहीं। रिसोर्स क्रेडिट Felo क्रेडिट नहीं हैं। अंतिम शुल्क Felo बिलिंग रिकॉर्ड के अनुसार लगते हैं।

## Related links

- [Models endpoint](<https://docs.dataforseo.com/v3/ai_optimization/chat_gpt/llm_responses/models/>)
- [Pricing](<https://platform.openai.com/docs/pricing>)

## Base URL

- `https://openapi.felo.ai`

## Authentication

- `FeloBearerAuth` (http bearer, bearer format Felo API Key)
- `FeloApiKey` (apiKey in header `X-API-Key`)

## Request body

Required: **no**

### application/json

Schema:

```json
{
  "type": "array",
  "items": {
    "type": [
      "object",
      "null"
    ],
    "oneOf": [
      {
        "type": "object",
        "properties": {
          "user_prompt": {
            "type": "string",
            "description": "<em>AI मॉडल के लिए प्रॉम्प्ट</em><br><strong>आवश्यक फ़ील्ड</strong><br>वह प्रश्न या कार्य जो आप AI मॉडल को भेजना चाहते हैं;<br>आप <code>user_prompt</code> फ़ील्ड में <strong>अधिकतम 500 अक्षर</strong> निर्दिष्ट कर सकते हैं"
          },
          "model_name": {
            "type": "string",
            "description": "<em>AI मॉडल का नाम</em><br><strong>आवश्यक फ़ील्ड</strong><br><code>model_name</code > में वास्तविक मॉडल नाम और संस्करण नाम होता है;<br>यदि बेस मॉडल नाम दिया गया है, तो डिफ़ॉल्ट रूप से उसका नवीनतम संस्करण सेट होगा;<br>उदाहरण के लिए, यदि <code>gpt-4.1</code> निर्दिष्ट है, तो <code>gpt-4.1-2025-04-14</code> अपने आप <code>model_name</code> के रूप में सेट होगा;<br>आप <code>https://api.dataforseo.com/v3/ai_optimization/chat_gpt/llm_responses/models</code> पर अलग request भेजकर उपलब्ध LLM मॉडल की सूची प्राप्त कर सकते हैं"
          },
          "max_output_tokens": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>AI response में अधिकतम टोकन संख्या</em><br>वैकल्पिक फ़ील्ड<br>रीज़निंग मॉडल के लिए न्यूनतम मान (उदा., Models endpoint में <code>reasoning</code> <code>true</code> है): <code>1024</code>;<br>गैर-रीज़निंग मॉडल के लिए न्यूनतम मान: <code>16</code>;<br>अधिकतम मान: <code>4096</code>;<br>डिफ़ॉल्ट मान: <code>2048</code><br><strong>नोट:</strong> यदि <code>web_search</code> को <code>true</code> सेट किया गया है या request में रीज़निंग मॉडल निर्दिष्ट है, तो आउटपुट टोकन संख्या निर्दिष्ट <code>max_output_tokens</code> सीमा से अधिक हो सकती है"
          },
          "temperature": {
            "type": [
              "number",
              "null"
            ],
            "description": "<em>AI response की रैंडमनेस</em><br>वैकल्पिक फ़ील्ड<br>अधिक मान आउटपुट को अधिक विविध बनाते हैं; <br>कम मान आउटपुट को अधिक केंद्रित बनाते हैं;<br>न्यूनतम मान: <code>0</code><br>अधिकतम मान: <code>2</code><br>डिफ़ॉल्ट मान: <code>0.94</code><br><strong>नोट:</strong> रीज़निंग मॉडल में समर्थित नहीं है"
          },
          "top_p": {
            "type": [
              "number",
              "null"
            ],
            "description": "<em>AI response की विविधता</em><br>वैकल्पिक फ़ील्ड <br>टोकन चयन सीमित करके response की विविधता नियंत्रित करता है;<br>न्यूनतम मान: <code>0</code><br>अधिकतम मान: <code>1</code> <br>डिफ़ॉल्ट मान: <code>0.92</code><p><strong>नोट:</strong>  <code>top_p</code> को एक ही request में <code>temperature</code> के साथ उपयोग नहीं किया जा सकता"
          },
          "web_search": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>वेब सर्च सक्षम करें</em><br>वैकल्पिक फ़ील्ड<br>सक्षम होने पर AI मॉडल वर्तमान वेब जानकारी तक पहुँच सकता है और उसे उद्धृत कर सकता है;<br>डिफ़ॉल्ट मान: <code>false</code>;<br><strong>नोट:</strong> <code>web_search</code> समर्थित करने वाले मॉडल की सूची के लिए Models endpoint देखें;"
          },
          "force_web_search": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>AI एजेंट को वेब सर्च के लिए बाध्य करें</em><br>वैकल्पिक फ़ील्ड<br>इस पैरामीटर को सक्षम करने के लिए <code>web_search</code> भी सक्षम होना चाहिए;<br>सक्षम होने पर AI मॉडल वर्तमान वेब जानकारी तक पहुँचने और उसे उद्धृत करने के लिए बाध्य होता है;<br>डिफ़ॉल्ट मान: <code>false</code>;<br><strong>नोट:</strong> पैरामीटर <code>true</code> पर सेट होने पर भी response में वेब स्रोतों के उद्धृत होने की गारंटी नहीं है <br><strong>नोट 2:</strong> रीज़निंग मॉडल में समर्थित नहीं है"
          },
          "web_search_country_iso_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>स्थान का ISO देश कोड</em><br>वैकल्पिक फ़ील्ड<br>इस पैरामीटर को सक्षम करने के लिए <code>web_search</code> भी सक्षम होना चाहिए;<br>सक्षम होने पर AI मॉडल आपके निर्दिष्ट देश से वेब सर्च करेगा;<br><strong>नोट:</strong> <code>o3-mini</code>, <code>o1-pro</code>, <code>o1</code> मॉडल में समर्थित नहीं है"
          },
          "web_search_city": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>स्थान का शहर नाम</em><br>वैकल्पिक फ़ील्ड<br><strong>नोट:</strong> <code>o3-mini</code>, <code>o1-pro</code>, <code>o1</code> मॉडल में समर्थित नहीं है"
          },
          "system_message": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>AI व्यवहार के लिए निर्देश</em><br>वैकल्पिक फ़ील्ड<br>AI की भूमिका, टोन या विशिष्ट व्यवहार परिभाषित करता है <br>आप <code>system_message</code> फ़ील्ड में <strong>अधिकतम 500 अक्षर</strong> निर्दिष्ट कर सकते हैं"
          },
          "message_chain": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": [
                "object",
                "null"
              ],
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "role": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "उस उपयोगकर्ता की भूमिका जिससे message आता है"
                    },
                    "message": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "message टेक्स्ट"
                    }
                  }
                }
              ]
            },
            "description": "बातचीत का इतिहास\nवैकल्पिक फ़ील्ड\nपिछले बातचीत टर्न को दर्शाने वाले message ऑब्जेक्ट का ऐरे;\nहर ऑब्जेक्ट में होना चाहिए:\nrole — user या ai भूमिका वाला स्ट्रिंग;\nmessage — message सामग्री वाला स्ट्रिंग (अधिकतम 500 अक्षर);\nऐरे में अधिकतम 10 message ऑब्जेक्ट निर्दिष्ट कर सकते हैं;\nनोट: Perplexity मॉडल के लिए message को user और AI भूमिकाओं के बीच सख़्ती से बदलते रहना चाहिए (user → ai);\nउदाहरण:\n\"message_chain\": [{\"role\":\"user\",\"message\":\"Hello, what’s up?\"},{\"role\":\"ai\",\"message\":\"Hello! I’m doing well, thank you. How can I assist you today?\"}]"
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>उपयोगकर्ता-परिभाषित टास्क आइडेंटिफ़ायर</em><br>वैकल्पिक फ़ील्ड<br><em>अक्षर सीमा 255 है</em><br>आप इस पैरामीटर से टास्क पहचान सकते हैं और उसे परिणाम से मिला सकते हैं<br>निर्दिष्ट <code>tag</code> मान response के <code>data</code> ऑब्जेक्ट में मिलेगा"
          }
        },
        "example": [
          {
            "system_message": "communicate as if we are in a business meeting",
            "message_chain": [
              {
                "role": "user",
                "message": "Hello, what’s up?"
              },
              {
                "role": "ai",
                "message": "Hello! I’m doing well, thank you. How can I assist you today? Are there any specific topics or projects you’d like to discuss in our meeting?"
              }
            ],
            "max_output_tokens": 200,
            "temperature": 0.3,
            "top_p": 0.5,
            "model_name": "gpt-4.1-mini",
            "web_search": true,
            "web_search_country_iso_code": "FR",
            "web_search_city": "Paris",
            "user_prompt": "provide information on how relevant the amusement park business is in France now"
          }
        ]
      }
    ]
  },
  "example": [
    {
      "system_message": "communicate as if we are in a business meeting",
      "message_chain": [
        {
          "role": "user",
          "message": "Hello, what’s up?"
        },
        {
          "role": "ai",
          "message": "Hello! I’m doing well, thank you. How can I assist you today? Are there any specific topics or projects you’d like to discuss in our meeting?"
        }
      ],
      "max_output_tokens": 200,
      "temperature": 0.3,
      "top_p": 0.5,
      "model_name": "gpt-4.1-mini",
      "web_search": true,
      "web_search_country_iso_code": "FR",
      "web_search_city": "Paris",
      "user_prompt": "provide information on how relevant the amusement park business is in France now"
    }
  ]
}
```

## Responses

### 200 — सफल ऑपरेशन

Headers:
- `X-Request-Id` (string) — Felo सहायता से संपर्क करते समय शामिल करने के लिए request पहचानकर्ता।

**application/json**

Schema: object | null

```json
{
  "type": [
    "object",
    "null"
  ],
  "oneOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_AiOptimizationChatGptLlmResponsesLiveResponseInfo"
    }
  ]
}
```

### 400 — request संसाधित नहीं किया जा सका। request पैरामीटर जाँचें।

### 401 — एक वैध Felo API key आवश्यक है।

### 402 — request आगे नहीं बढ़ सकता क्योंकि बिलिंग आवश्यकता पूरी नहीं हुई है।

### 403 — खाते को यह ऑपरेशन करने की अनुमति नहीं है।

### 429 — request या खर्च की सीमा तक पहुँच गए हैं।

### 502 — सेवा request पूरा नहीं कर सकी।

### 503 — API या बिलिंग सेवा अस्थायी रूप से उपलब्ध नहीं है।

### 504 — request संसाधित करते समय सेवा का समय समाप्त हो गया।

### default — त्रुटि response; upstream passthrough response प्रोवाइडर फ़ॉर्मेट का उपयोग कर सकते हैं।

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_AiOptimizationChatGptLlmResponsesLiveResponseInfo

`#/components/schemas/Response36Afe1097B20_AiOptimizationChatGptLlmResponsesLiveResponseInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseInfo"
    },
    {
      "type": "object",
      "properties": {
        "tasks": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": [
              "object",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/Response36Afe1097B20_AiOptimizationChatGptLlmResponsesLiveTaskInfo"
              }
            ]
          },
          "description": "<em>टास्क का ऐरे</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_AiOptimizationChatGptLlmResponsesLiveResultInfo

`#/components/schemas/Response36Afe1097B20_AiOptimizationChatGptLlmResponsesLiveResultInfo`

```json
{
  "type": "object",
  "properties": {
    "model_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>उपयोग किए गए AI मॉडल का नाम</em>"
    },
    "input_tokens": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>input में टोकन की संख्या</em><br>प्रोसेस किए गए टोकन की कुल संख्या"
    },
    "output_tokens": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>output में टोकन की संख्या</em><br>AI response में जनरेट किए गए टोकन की कुल संख्या"
    },
    "reasoning_tokens": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>रीजनिंग टोकन की संख्या</em><br>रीजनिंग सामग्री बनाने में उपयोग किए गए टोकन की कुल संख्या"
    },
    "web_search": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<em>बताता है कि वेब सर्च का उपयोग हुआ या नहीं</em>"
    },
    "money_spent": {
      "type": [
        "number",
        "null"
      ],
      "description": "<em>AI टोकन की लागत, USD</em><br>तृतीय-पक्ष AI मॉडल प्रदाता द्वारा अपनी Pricing के अनुसार ली जाने वाली कीमत"
    },
    "datetime": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>वह तारीख और समय जब परिणाम प्राप्त हुआ</em><br>UTC प्रारूप में: “yyyy-mm-dd hh-mm-ss +00:00”<br>उदाहरण:<br><code class=\"long-string\">2019-11-15 12:57:46 +00:00</code>"
    },
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_BaseAiOptimizationLlmResponseElementItem"
          }
        ]
      },
      "description": "<em>response आइटम का ऐरे</em><br>संरचित AI response डेटा शामिल है"
    },
    "fan_out_queries": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "<em>fan-out क्वेरी का ऐरे</em><br>अधिक व्यापक उत्तर देने के लिए मुख्य क्वेरी से निकाली गई संबंधित सर्च क्वेरी शामिल हैं"
    }
  }
}
```

### Response36Afe1097B20_AiOptimizationChatGptLlmResponsesLiveTaskInfo

`#/components/schemas/Response36Afe1097B20_AiOptimizationChatGptLlmResponsesLiveTaskInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo"
    },
    {
      "type": "object",
      "properties": {
        "result": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": [
              "object",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/Response36Afe1097B20_AiOptimizationChatGptLlmResponsesLiveResultInfo"
              }
            ]
          },
          "description": "<em>परिणामों का ऐरे</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_BaseAiOptimizationLlmResponseElementItem

`#/components/schemas/Response36Afe1097B20_BaseAiOptimizationLlmResponseElementItem`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "एलिमेंट का प्रकार"
    }
  },
  "additionalProperties": false,
  "discriminator": {
    "propertyName": "type",
    "mapping": {
      "reasoning": "#/components/schemas/Response36Afe1097B20_ReasoningAiOptimizationLlmResponseElementItem",
      "message": "#/components/schemas/Response36Afe1097B20_MessageAiOptimizationLlmResponseElementItem"
    }
  }
}
```

### Response36Afe1097B20_BaseResponseInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseInfo`

```json
{
  "properties": {
    "version": {
      "type": [
        "string",
        "null"
      ],
      "description": "API का वर्तमान संस्करण"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "सामान्य स्टेटस कोड\nresponse कोड की पूरी सूची यहाँ देखी जा सकती है"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "सामान्य सूचनात्मक संदेश\nसामान्य सूचनात्मक संदेशों की पूरी सूची यहाँ देखी जा सकती है"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "कुल निष्पादन समय, सेकंड"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "टास्क की कुल लागत, USD",
      "format": "double"
    },
    "tasks_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "tasks ऐरे में टास्क की संख्या",
      "format": "int64"
    },
    "tasks_error": {
      "type": [
        "integer",
        "null"
      ],
      "description": "त्रुटि के साथ लौटाए गए tasks ऐरे में टास्क की संख्या",
      "format": "int64"
    }
  }
}
```

### Response36Afe1097B20_BaseResponseTaskInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo`

```json
{
  "properties": {
    "id": {
      "type": [
        "string",
        "null"
      ],
      "description": "टास्क आइडेंटिफ़ायर\nहमारे सिस्टम में अद्वितीय टास्क आइडेंटिफ़ायर, UUID प्रारूप में"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "टास्क का स्टेटस कोड\nDataForSEO द्वारा जनरेट किया गया, यह निम्न श्रेणी में हो सकता है: 10000-60000\nresponse कोड की पूरी सूची यहाँ देखी जा सकती है"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "टास्क का सूचनात्मक संदेश\nसामान्य सूचनात्मक संदेशों की पूरी सूची यहाँ देखी जा सकती है"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "निष्पादन समय, सेकंड"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "टास्क की कुल लागत, USD",
      "format": "double"
    },
    "result_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "result ऐरे में एलिमेंट की संख्या",
      "format": "int64"
    },
    "path": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "URL पथ"
    },
    "data": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "object",
          "null"
        ]
      },
      "description": "इसमें वही पैरामीटर हैं जो आपने POST request में निर्दिष्ट किए थे"
    }
  }
}
```
