---
title: KI
project: Total API
version: 2026
section: reference
language: de
license: 
url: https://totaljs.es/docs/de/total-api/2026/reference/ai/
updated: 2026-11-20T06:51:47.968Z
---

# KI

> Frag ChatGPT.

Jeder Dienst ist eine `POST`-Anfrage mit deinem Token. Mehr dazu unter [Total API aus Total.js aufrufen](../../guides/call-from-totaljs/) und [Total API über HTTP aufrufen](../../guides/call-over-http/).

## API

### POST https://api.totaljs.com/chatgpt/

Type: `rest`

Stellt ChatGPT eine Frage.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `value` | `String` | yes |  | Die Frage. |
| `output` | `String` | no | `text` | `text` oder `image`. |
| `size` | `String` | no |  | Die Größe eines Bildes: `small`, `medium` oder `large`. Nur mit `output: image`. |

Returns: `Object` Ein Objekt mit der Antwort in `text`.

Example: Total.js
```js
var answer = await API('TAPI', 'chatgpt', 'What is Total.js Platform?').promise();
console.log(answer.text);
```

Example: REST
```bash
curl -X POST https://api.totaljs.com/chatgpt/ \
	-H "Content-Type: application/json" \
	-H "X-Token: YOUR_TOKEN" \
	-d '{ "value": "What is Total.js Platform?" }'
```

Example: Antwort
```json
{ "text": "Total.js Platform is a web development platform for Node.js..." }
```
