# LLM-Responses-Gemini-Ergebnisse nach ID abrufen

**API:** Data API

**Endpoint:** `GET /v1/beta/dataforseo/ai_optimization/gemini/llm_responses/task_get/{id}`

**Tags:** DataForSEO

Ruft eine in die Warteschlange gestellte Gemini-Antwort anhand von `id` ab. Gleiche Struktur wie der Live-Endpunkt. Eingebettet in die DataForSEO-Hülle: Daten in `tasks[0].result`, Ergebnis in `tasks[0].status_code` – eine abgelehnte Anfrage gibt dennoch HTTP 200 zurück.

### Preisreferenz

- Abrechnung: Gemeldete Antwortkosten.
- Referenzschätzung pro Anfrage: USD 0.012.
- Referenz-Kundenmultiplikator: 1.0. Nicht erneut auf einen bereits abgerechneten Kundenbetrag anwenden.

Nur Referenzmetadaten, kein Kontenangebot, kein garantierter Preis und keine Ausgabenobergrenze. Ressourcen-Credits sind keine Felo-Credits. Endgültige Abrechnungen richten sich nach den Felo-Abrechnungsbelegen.

## Related links

- [UUID](<https://en.wikipedia.org/wiki/Universally_unique_identifier>)
- [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`)

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `id` | path | yes | string | <em>Aufgaben-ID</em><br><strong>eindeutige Aufgaben-ID in unserem System im UUID-Format</strong><br>Sie können sie <strong>30 Tage</strong> lang verwenden, um die Ergebnisse der Aufgabe jederzeit abzurufen |

## Responses

### 200 — Erfolgreicher Vorgang

Headers:
- `X-Request-Id` (string) — Anfragekennung, die Sie beim Kontakt mit dem Felo-Support angeben sollten.

**application/json**

Schema: object | null

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

### 400 — Die Anfrage konnte nicht verarbeitet werden. Prüfen Sie die Anfrageparameter.

### 401 — Ein gültiger Felo-API-Schlüssel ist erforderlich.

### 402 — Die Anfrage kann nicht fortgesetzt werden, da eine Abrechnungsvoraussetzung nicht erfüllt ist.

### 403 — Das Konto ist für diesen Vorgang nicht berechtigt.

### 429 — Ein Anfrage- oder Ausgabenlimit wurde erreicht.

### 502 — Der Dienst konnte die Anfrage nicht abschließen.

### 503 — Die API oder der Abrechnungsdienst ist vorübergehend nicht verfügbar.

### 504 — Beim Verarbeiten der Anfrage ist eine Zeitüberschreitung aufgetreten.

### default — Fehlerantwort; Upstream-Passthrough-Antworten können Anbieterformate verwenden

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_AiOptimizationGeminiLlmResponsesTaskGetResponseInfo

`#/components/schemas/Response36Afe1097B20_AiOptimizationGeminiLlmResponsesTaskGetResponseInfo`

```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_AiOptimizationGeminiLlmResponsesTaskGetTaskInfo"
              }
            ]
          },
          "description": "<em>Array von Aufgaben</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_AiOptimizationGeminiLlmResponsesTaskGetResultInfo

`#/components/schemas/Response36Afe1097B20_AiOptimizationGeminiLlmResponsesTaskGetResultInfo`

```json
{
  "type": "object",
  "properties": {
    "model_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>Name des verwendeten KI-Modells</em>"
    },
    "input_tokens": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>Anzahl der Tokens in der Eingabe</em><br>Gesamtzahl der verarbeiteten Tokens"
    },
    "output_tokens": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>Anzahl der Tokens in der Ausgabe</em><br>Gesamtzahl der in der KI-Antwort generierten Tokens"
    },
    "reasoning_tokens": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>Anzahl der Reasoning-Tokens</em><br>Gesamtzahl der Tokens, die zur Erzeugung des Reasoning-Inhalts verwendet wurden"
    },
    "web_search": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<em>gibt an, ob die Websuche verwendet wurde</em>"
    },
    "money_spent": {
      "type": [
        "number",
        "null"
      ],
      "description": "<em>Kosten der KI-Tokens, USD</em><br>der Preis, den der Drittanbieter des KI-Modells gemäß seiner Pricing berechnet"
    },
    "datetime": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>Datum und Uhrzeit des Eingangs des Ergebnisses</em><br>im UTC-Format: „yyyy-mm-dd hh-mm-ss +00:00“<br>Beispiel:<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>Array von Antwortelementen</em><br>enthält strukturierte KI-Antwortdaten"
    },
    "fan_out_queries": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "<em>Array von Fan-out-Abfragen</em><br>enthält verwandte Suchanfragen, die aus der Hauptabfrage abgeleitet werden, um eine umfassendere Antwort zu liefern"
    }
  }
}
```

### Response36Afe1097B20_AiOptimizationGeminiLlmResponsesTaskGetTaskInfo

`#/components/schemas/Response36Afe1097B20_AiOptimizationGeminiLlmResponsesTaskGetTaskInfo`

```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_AiOptimizationGeminiLlmResponsesTaskGetResultInfo"
              }
            ]
          },
          "description": "<em>Array von Ergebnissen</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_BaseAiOptimizationLlmResponseElementItem

`#/components/schemas/Response36Afe1097B20_BaseAiOptimizationLlmResponseElementItem`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "Elementtyp"
    }
  },
  "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": "Die aktuelle Version der API"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "allgemeiner Statuscode\ndie vollständige Liste der Antwortcodes finden Sie hier"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "allgemeine Informationsmeldung\ndie vollständige Liste der allgemeinen Informationsmeldungen finden Sie hier"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "Gesamtausführungszeit, Sekunden"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "Gesamtkosten der Aufgaben in USD",
      "format": "double"
    },
    "tasks_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Die Anzahl der Aufgaben im tasks-Array",
      "format": "int64"
    },
    "tasks_error": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Die Anzahl der Aufgaben im tasks-Array, die mit einem Fehler zurückgegeben wurden",
      "format": "int64"
    }
  }
}
```

### Response36Afe1097B20_BaseResponseTaskInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo`

```json
{
  "properties": {
    "id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Aufgaben-ID\neindeutige Aufgaben-ID in unserem System im UUID-Format"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Statuscode der Aufgabe\nvon DataForSEO erzeugt, kann im folgenden Bereich liegen: 10000-60000\ndie vollständige Liste der Antwortcodes finden Sie hier"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "Informationsmeldung der Aufgabe\ndie vollständige Liste der allgemeinen Informationsmeldungen finden Sie hier"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "Ausführungszeit in Sekunden"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "Gesamtkosten der Aufgaben in USD",
      "format": "double"
    },
    "result_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Anzahl der Elemente im Ergebnis-Array",
      "format": "int64"
    },
    "path": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "URL-Pfad"
    },
    "data": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "object",
          "null"
        ]
      },
      "description": "Enthält dieselben Parameter, die Sie in der POST-Anfrage angegeben haben"
    }
  }
}
```
