# 'LLM Responses Gemini' 작업 설정

**API:** Data API

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

**Tags:** DataForSEO

기다리지 않고 Gemini 프롬프트를 큐에 추가하고 작업 `id`를 반환합니다. DataForSEO의 봉투 구조로 감싸집니다. 데이터는 `tasks[0].result`, 결과 상태는 `tasks[0].status_code`에 있으며, 거부된 요청도 HTTP 200을 반환합니다. `get_dataforseo_ai_gemini_llm_responses_models`에서 `task_post_supported`를 확인하고, `get_dataforseo_ai_gemini_llm_responses_fetch`로 가져오세요.

### 요금 참고 정보

- 계량 방식: 보고된 응답 비용.
- 참고 요청 추정치: USD 0.701.
- 참고 고객 배수: 1.0. 정산된 고객 금액에 다시 적용하지 마세요.

참고용 메타데이터일 뿐이며, 계정 견적이나 보장된 가격 또는 지출 한도가 아닙니다. 리소스 크레딧은 Felo 크레딧이 아닙니다. 최종 청구는 Felo 청구 기록을 따릅니다.

## 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>사용 가능한 LLM 모델 목록은 <code>https://api.dataforseo.com/v3/ai_optimization/gemini/llm_responses/models</code>로 별도 요청해 받을 수 있습니다"
          },
          "max_output_tokens": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>AI 응답의 최대 토큰 수</em><br>선택 필드<br>최솟값: <code>1</code>;<br>최댓값: <code>4096</code>;<br>기본값: <code>2048</code>;<br><strong>참고:</strong> <code>web_search</code>가 <code>true</code>이거나 요청에 추론 모델이 지정되면 출력 토큰 수가 지정한 <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 응답의 무작위성</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 응답의 다양성</em><br>선택 필드 <br>토큰 선택을 제한하여 응답의 다양성을 제어합니다<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>를 지원하는 모델 목록은 <a href=\"https://docs.dataforseo.com/v3/ai_optimization/gemini/llm_responses/models/\">Models 엔드포인트</a>를 참고하세요; <br>기본값: <code>false</code>;<br>이 매개변수의 비용은 <a title=\"Gemini API Pricing\" href=\"https://ai.google.dev/gemini-api/docs/pricing\" target=\"_blank\" rel=\"noopener noreferrer\">가격</a> 페이지에서 계산할 수 있습니다"
          },
          "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": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "메시지 텍스트"
                    }
                  }
                }
              ]
            },
            "description": "대화 기록\n선택 필드\n이전 대화 턴을 나타내는 메시지 객체 배열입니다;\n각 객체에는 다음이 포함되어야 합니다:\nrole — user 또는 ai 역할을 담은 문자열;\nmessage — 메시지 내용을 담은 문자열(최대 500자);\n배열에는 메시지 객체를 최대 10개까지 지정할 수 있습니다;\n참고: Perplexity 모델의 경우 메시지는 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>활성화하면 모델이 응답을 생성하기 전에 추론을 수행합니다<br><code>reasoning</code>을 지원하는 모델 목록은 <a href=\"https://docs.dataforseo.com/v3/ai_optimization/gemini/llm_responses/models/\" target=\"_blank\">Models 엔드포인트</a>를 참고하세요<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>에 지정한 값은 응답의 <code>data</code> 객체에서 확인할 수 있습니다"
          },
          "postback_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>작업 결과를 보내는 URL</em><br>선택 필드<br>작업이 완료되면 결과를 <code>gzip</code> 형식으로 압축해 지정한 <code>postback_url</code>로 POST 요청을 보냅니다<br>‘$id’ 문자열을 <code>$id</code> 변수로, ‘$tag’를 urlencoded <code>$tag</code> 변수로 사용할 수 있습니다. 요청을 보내기 전에 필요한 값을 설정합니다.<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>의 특수 문자는 urlencoded됩니다;<br>즉, <code>#</code> 문자는 <code>%23</code>으로 인코딩됩니다<p>자세한 내용은 <a href=\"https://dataforseo.com/help-center/pingbacks-postbacks-with-dataforseo-api\" target=\"_blank\" rel=\"noopener noreferrer\">Help Center</a>를 참고하세요"
          },
          "pingback_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>완료된 작업의 알림 URL</em><br>선택 필드<br>작업이 완료되면 지정한 URL로 GET 요청을 보내 알립니다<br>‘$id’ 문자열을 <code>$id</code> 변수로, ‘$tag’를 urlencoded <code>$tag</code> 변수로 사용할 수 있습니다. 요청을 보내기 전에 필요한 값을 설정합니다<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>의 특수 문자는 urlencoded됩니다;<br>즉, <code>#</code> 문자는 <code>%23</code>으로 인코딩됩니다<p>자세한 내용은 <a href=\"https://dataforseo.com/help-center/pingbacks-postbacks-with-dataforseo-api\" target=\"_blank\" rel=\"noopener noreferrer\">Help Center</a>를 참고하세요"
          }
        },
        "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 지원팀에 문의할 때 포함할 요청 식별자입니다.

**application/json**

Schema: object | null

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

### 400 — 요청을 처리할 수 없습니다. 요청 매개변수를 확인하세요.

### 401 — 유효한 Felo API 키가 필요합니다.

### 402 — 청구 요건이 충족되지 않아 요청을 진행할 수 없습니다.

### 403 — 이 계정에는 이 작업을 수행할 권한이 없습니다.

### 429 — 요청 또는 지출 한도에 도달했습니다.

### 502 — 서비스가 요청을 완료할 수 없습니다.

### 503 — API 또는 청구 서비스를 일시적으로 사용할 수 없습니다.

### 504 — 요청을 처리하는 동안 서비스 시간이 초과되었습니다.

### default — 오류 응답. 업스트림 패스스루 응답은 공급자 형식을 사용할 수 있습니다.

**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": "일반 상태 코드입니다.\n응답 코드 전체 목록은 여기에서 확인할 수 있습니다."
    },
    "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 범위일 수 있습니다.\n응답 코드 전체 목록은 여기에서 확인할 수 있습니다."
    },
    "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 요청에 지정한 것과 동일한 매개변수를 포함합니다"
    }
  }
}
```
