DeutschlandGPT

App · 11 actions

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

Actions

ActionWhat it does
Create chat completionSend a prompt to a text model and get its reply.
Create model responseGenerate a text response from an input prompt.
Create text embeddingTurn text into a numeric vector for similarity search.
Generate imageGenerate an image from a text description.
Generate speechTurn text into speech and return the audio as base64.
Get modelRead details of a text model.
Get usage summaryRead API usage totals for your workspace.
List all model typesList the platform models across text, embeddings and media.
List custom GPTsList the custom assistants your API key can use.
List document foldersList the document folders available to this API key.
List text modelsList the text models available to the API key.

Create chat completion

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

Inputs

ModelmodeltextRequired
Choose a text model available to this key.
PromptprompttextRequired
Text to send to the model.
Instructionsinstructionstext
Instructions for the model.
Max tokensmax_tokensnumber
Maximum number of tokens to generate.At least 1.
Temperaturetemperaturenumber
Sampling temperature from 0 to 2.From 0 to 2.

Outputs

dataobject
The response from DeutschlandGPT.
Example output
{
  "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

ModelmodeltextRequired
Choose a text model available to this key.
PromptprompttextRequired
Text to send to the model.
Instructionsinstructionstext
Instructions for the model.
Max tokensmax_tokensnumber
Maximum number of output tokens.At least 1.

Outputs

dataobject
The response from DeutschlandGPT.
Example output
{
  "data": {
    "id": "example",
    "model": "example",
    "output": [
      {}
    ],
    "usage": {}
  }
}

Create text embedding

Turn text into a numeric vector for similarity search.

Inputs

ModelmodeltextRequired
Choose an embedding model.
PromptprompttextRequired
Text to convert to a vector.

Outputs

dataobject
The response from DeutschlandGPT.
Example output
{
  "data": {
    "data": [
      {
        "embedding": [
          1
        ],
        "index": 1
      }
    ],
    "model": "example",
    "usage": {}
  }
}

Generate image

Generate an image from a text description.

Inputs

ModelmodeltextRequired
Choose an image model.
PromptprompttextRequired
Describe the image you want to generate.

Outputs

dataobject
The response from DeutschlandGPT.
Example output
{
  "data": {
    "created": 1,
    "data": [
      {}
    ]
  }
}

Generate speech

Turn text into speech and return the audio as base64.

Inputs

ModelmodeltextRequired
Choose a text-to-speech model.
Voicevoicetext
Choose a voice available for the model.
PromptprompttextRequired
Text to read aloud.

Outputs

dataobject
The response from DeutschlandGPT.
Example output
{
  "data": {
    "content_base64": "example",
    "content_type": "example"
  }
}

Get model

Read details of a text model.

Inputs

ModelmodeltextRequired
Choose a text model.

Outputs

dataobject
The response from DeutschlandGPT.
Example output
{
  "data": {
    "id": "example",
    "object": "example"
  }
}

Get usage summary

Read API usage totals for your workspace.

Inputs

Start datestart_datedate
First day of the usage period.
End dateend_datedate
Last day of the usage period.

Outputs

dataobject
The response from DeutschlandGPT.
Example output
{
  "data": {}
}

List all model types

List the platform models across text, embeddings and media.

Inputs

None.

Outputs

dataobject
The response from DeutschlandGPT.
Example output
{
  "data": {
    "data": [
      {
        "id": "example",
        "kind": "example"
      }
    ],
    "object": "example"
  }
}

List custom GPTs

List the custom assistants your API key can use.

Inputs

None.

Outputs

dataobject
The response from DeutschlandGPT.
Example output
{
  "data": {
    "data": [
      {}
    ]
  }
}

List document folders

List the document folders available to this API key.

Inputs

None.

Outputs

dataobject
The response from DeutschlandGPT.
Example output
{
  "data": {
    "data": [
      {}
    ]
  }
}

List text models

List the text models available to the API key.

Inputs

None.

Outputs

dataobject
The response from DeutschlandGPT.
Example output
{
  "data": {
    "data": [
      {
        "id": "example",
        "object": "example"
      }
    ],
    "object": "example"
  }
}

On this page