# DeutschlandGPT

> Generate text, images, speech and embeddings with the hosted DeutschlandGPT Platform API.

App · 11 actions. Web page: https://docs.lodol.com/docs/integrations/deutschlandgpt

## Actions

### Create chat completion

Send a prompt to a text model and get its reply.

**Inputs**

- Model (`model`, text, required): Choose a text model available to this key.
- Prompt (`prompt`, text, required): Text to send to the model.
- Instructions (`instructions`, text): Instructions for the model.
- Max tokens (`max_tokens`, number): Maximum number of tokens to generate. At least 1.
- Temperature (`temperature`, number): Sampling temperature from 0 to 2. From 0 to 2.

**Outputs**

- `data` (object): The response from DeutschlandGPT.

**Example output**

```json
{
  "data": {
    "choices": [
      {
        "index": 1,
        "message": {
          "content": "example",
          "role": "example"
        }
      }
    ],
    "id": "example",
    "model": "example",
    "usage": {}
  }
}
```

### Create model response

Generate a text response from an input prompt.

**Inputs**

- Model (`model`, text, required): Choose a text model available to this key.
- Prompt (`prompt`, text, required): Text to send to the model.
- Instructions (`instructions`, text): Instructions for the model.
- Max tokens (`max_tokens`, number): Maximum number of output tokens. At least 1.

**Outputs**

- `data` (object): The response from DeutschlandGPT.

**Example output**

```json
{
  "data": {
    "id": "example",
    "model": "example",
    "output": [
      {}
    ],
    "usage": {}
  }
}
```

### Create text embedding

Turn text into a numeric vector for similarity search.

**Inputs**

- Model (`model`, text, required): Choose an embedding model.
- Prompt (`prompt`, text, required): Text to convert to a vector.

**Outputs**

- `data` (object): The response from DeutschlandGPT.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "embedding": [
          1
        ],
        "index": 1
      }
    ],
    "model": "example",
    "usage": {}
  }
}
```

### Generate image

Generate an image from a text description.

**Inputs**

- Model (`model`, text, required): Choose an image model.
- Prompt (`prompt`, text, required): Describe the image you want to generate.

**Outputs**

- `data` (object): The response from DeutschlandGPT.

**Example output**

```json
{
  "data": {
    "created": 1,
    "data": [
      {}
    ]
  }
}
```

### Generate speech

Turn text into speech and return the audio as base64.

**Inputs**

- Model (`model`, text, required): Choose a text-to-speech model.
- Voice (`voice`, text): Choose a voice available for the model.
- Prompt (`prompt`, text, required): Text to read aloud.

**Outputs**

- `data` (object): The response from DeutschlandGPT.

**Example output**

```json
{
  "data": {
    "content_base64": "example",
    "content_type": "example"
  }
}
```

### Get model

Read details of a text model.

**Inputs**

- Model (`model`, text, required): Choose a text model.

**Outputs**

- `data` (object): The response from DeutschlandGPT.

**Example output**

```json
{
  "data": {
    "id": "example",
    "object": "example"
  }
}
```

### Get usage summary

Read API usage totals for your workspace.

**Inputs**

- Start date (`start_date`, date): First day of the usage period.
- End date (`end_date`, date): Last day of the usage period.

**Outputs**

- `data` (object): The response from DeutschlandGPT.

**Example output**

```json
{
  "data": {}
}
```

### List all model types

List the platform models across text, embeddings and media.

**Inputs**: None.

**Outputs**

- `data` (object): The response from DeutschlandGPT.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "id": "example",
        "kind": "example"
      }
    ],
    "object": "example"
  }
}
```

### List custom GPTs

List the custom assistants your API key can use.

**Inputs**: None.

**Outputs**

- `data` (object): The response from DeutschlandGPT.

**Example output**

```json
{
  "data": {
    "data": [
      {}
    ]
  }
}
```

### List document folders

List the document folders available to this API key.

**Inputs**: None.

**Outputs**

- `data` (object): The response from DeutschlandGPT.

**Example output**

```json
{
  "data": {
    "data": [
      {}
    ]
  }
}
```

### List text models

List the text models available to the API key.

**Inputs**: None.

**Outputs**

- `data` (object): The response from DeutschlandGPT.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "id": "example",
        "object": "example"
      }
    ],
    "object": "example"
  }
}
```
