# ‘LLM Responses Gemini’ टास्क सेट करें

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/ai_optimization/gemini/llm_responses/task_post`

**Tags:** DataForSEO

इंतज़ार करने के बजाय Gemini प्रॉम्प्ट को कतार में डालता है और टास्क `id` लौटाता है। DataForSEO के envelope में लिपटा: डेटा `tasks[0].result` में, परिणाम `tasks[0].status_code` में — अस्वीकृत request भी HTTP 200 ही लौटाता है। `get_dataforseo_ai_gemini_llm_responses_models` में `task_post_supported` जाँचें, और `get_dataforseo_ai_gemini_llm_responses_fetch` से प्राप्त करें।

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

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

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

## Related links

- [Models endpoint](<https://docs.dataforseo.com/v3/ai_optimization/gemini/llm_responses/models/>)
- [Pricing](<https://ai.google.dev/gemini-api/docs/pricing>)
- [Help Center](<https://dataforseo.com/help-center/pingbacks-postbacks-with-dataforseo-api>)

## 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>gemini-1.5-pro</code> निर्दिष्ट है, तो <code>gemini-1.5-pro-002</code> अपने आप <code>model_name</code> के रूप में सेट होगा;<br>आप <code>https://api.dataforseo.com/v3/ai_optimization/gemini/llm_responses/models</code> पर अलग request भेजकर उपलब्ध LLM मॉडल की सूची प्राप्त कर सकते हैं"
          },
          "max_output_tokens": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>AI response में अधिकतम टोकन संख्या</em><br>वैकल्पिक फ़ील्ड<br>न्यूनतम मान: <code>1</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> सीमा से अधिक हो सकती है<br><strong>नोट 2:</strong> यदि <code>use_reasoning</code> <code>true</code> पर सेट है, तो <code>max_output_tokens</code> का न्यूनतम मान <code>1024</code> है"
          },
          "temperature": {
            "type": [
              "number",
              "null"
            ],
            "description": "<em>AI response की रैंडमनेस</em><br>वैकल्पिक फ़ील्ड<br>अधिक मान आउटपुट को अधिक विविध बनाते हैं <br>कम मान आउटपुट को अधिक केंद्रित बनाते हैं<br>न्यूनतम मान: <code>0</code><br>अधिकतम मान: <code>2</code><br>डिफ़ॉल्ट मान: <code>1.3</code>"
          },
          "top_p": {
            "type": [
              "number",
              "null"
            ],
            "description": "<em>AI response की विविधता</em><br>वैकल्पिक फ़ील्ड <br>टोकन चयन सीमित करके response की विविधता नियंत्रित करता है<br>न्यूनतम मान: <code>0</code><br>अधिकतम मान: <code>1</code> <br>डिफ़ॉल्ट मान: <code>0.9</code>"
          },
          "web_search": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>वर्तमान जानकारी के लिए वेब सर्च सक्षम करें</em><br>वैकल्पिक फ़ील्ड<br>सक्षम होने पर AI मॉडल वर्तमान वेब जानकारी तक पहुँच सकता है और उसे उद्धृत कर सकता है;<br><strong>नोट:</strong> <code>web_search</code> समर्थित करने वाले मॉडल की सूची के लिए Models endpoint देखें; <br>डिफ़ॉल्ट मान: <code>false</code>;<br>इस पैरामीटर की लागत Pricing पेज पर गणना की जा सकती है"
          },
          "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?\"}]"
          },
          "use_reasoning": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>AI मॉडल के लिए रीज़निंग सक्षम करें</em><br>वैकल्पिक फ़ील्ड<br>सक्षम होने पर मॉडल response उत्पन्न करने से पहले रीज़निंग करेगा<br><code>reasoning</code> समर्थित करने वाले मॉडल की सूची के लिए Models endpoint देखें<br>डिफ़ॉल्ट मान: <code>false</code><br><strong>नोट:</strong> यदि <code>true</code> पर सेट है, तो <code>max_output_tokens</code> का न्यूनतम मान <code>1024</code> है<br><strong>नोट 2:</strong> Gemini Pro मॉडल के लिए <code>use_reasoning</code> अपने आप <code>true</code> पर सेट हो जाएगा"
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>उपयोगकर्ता-परिभाषित टास्क आइडेंटिफ़ायर</em><br>वैकल्पिक फ़ील्ड<br><em>अक्षर सीमा 255 है</em><br>आप इस पैरामीटर से टास्क पहचान सकते हैं और उसे परिणाम से मिला सकते हैं<br>निर्दिष्ट <code>tag</code> मान response के <code>data</code> ऑब्जेक्ट में मिलेगा"
          },
          "postback_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>टास्क परिणाम भेजने का URL</em><br>वैकल्पिक फ़ील्ड<br>टास्क पूरा होने पर हम उसके परिणामों को <code>gzip</code> प्रारूप में संपीड़ित करके आपके निर्दिष्ट <code>postback_url</code> पर POST request भेजेंगे<br>आप ‘$id’ स्ट्रिंग को <code>$id</code> वैरिएबल के रूप में और ‘$tag’ को URL-एन्कोडेड <code>$tag</code> वैरिएबल के रूप में उपयोग कर सकते हैं। request भेजने से पहले हम आवश्यक मान सेट करेंगे।<br>उदाहरण:<br><code>http://your-server.com/postbackscript?id=$id</code><br><code>http://your-server.com/postbackscript?id=$id&amp;tag=$tag</code><br><strong>नोट:</strong> <code>postback_url</code> में विशेष वर्ण URL-एन्कोड होंगे;<br>अर्थात्, <code>#</code> वर्ण <code>%23</code> में एन्कोड होगा<p>हमारे Help Center पर और जानें"
          },
          "pingback_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>पूर्ण टास्क का नोटिफ़िकेशन URL</em><br>वैकल्पिक फ़ील्ड<br>टास्क पूरा होने पर हम आपके निर्दिष्ट URL पर GET request भेजकर सूचित करेंगे<br>आप ‘$id’ स्ट्रिंग को <code>$id</code> वैरिएबल के रूप में और ‘$tag’ को URL-एन्कोडेड <code>$tag</code> वैरिएबल के रूप में उपयोग कर सकते हैं। request भेजने से पहले हम आवश्यक मान सेट करेंगे<br>उदाहरण:<br><code>http://your-server.com/pingscript?id=$id</code><br><code>http://your-server.com/pingscript?id=$id&amp;tag=$tag</code><br><strong>नोट:</strong> <code>pingback_url</code> में विशेष वर्ण URL-एन्कोड होंगे;<br>अर्थात्, <code>#</code> वर्ण <code>%23</code> में एन्कोड होगा<p>हमारे Help Center पर और जानें"
          }
        },
        "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?"
              }
            ],
            "model_name": "gemini-2.5-flash",
            "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?"
        }
      ],
      "model_name": "gemini-2.5-flash",
      "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_AiOptimizationGeminiLlmResponsesTaskPostResponseInfo"
    }
  ]
}
```

### 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_AiOptimizationGeminiLlmResponsesTaskPostResponseInfo

`#/components/schemas/Response36Afe1097B20_AiOptimizationGeminiLlmResponsesTaskPostResponseInfo`

```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_AiOptimizationGeminiLlmResponsesTaskPostTaskInfo"
              }
            ]
          },
          "description": "<em>टास्क का ऐरे</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_AiOptimizationGeminiLlmResponsesTaskPostTaskInfo

`#/components/schemas/Response36Afe1097B20_AiOptimizationGeminiLlmResponsesTaskPostTaskInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo"
    },
    {
      "type": "object",
      "properties": {
        "result": {
          "type": [
            "object",
            "null"
          ],
          "description": "<em>परिणामों का ऐरे</em><br>इस मामले में, मान <code>null</code> होगा"
        }
      }
    }
  ]
}
```

### 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 में निर्दिष्ट किए थे"
    }
  }
}
```
