DeutschlandGPT
App · 11 actions
Generate text, images, speech and embeddings with the hosted DeutschlandGPT Platform API.
Actions
| Action | What it does |
|---|---|
| Create chat completion | Send a prompt to a text model and get its reply. |
| Create model response | Generate a text response from an input prompt. |
| Create text embedding | Turn text into a numeric vector for similarity search. |
| Generate image | Generate an image from a text description. |
| Generate speech | Turn text into speech and return the audio as base64. |
| Get model | Read details of a text model. |
| Get usage summary | Read API usage totals for your workspace. |
| List all model types | List the platform models across text, embeddings and media. |
| List custom GPTs | List the custom assistants your API key can use. |
| List document folders | List the document folders available to this API key. |
| List text models | List the text models available to the API key. |
Create chat completion
Send a prompt to a text model and get its reply.
Inputs
- Model
modeltextRequired - Choose a text model available to this key.
- Prompt
prompttextRequired - Text to send to the model.
- Instructions
instructionstext - Instructions for the model.
- Max tokens
max_tokensnumber - Maximum number of tokens to generate.At least 1.
- Temperature
temperaturenumber - 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
- Model
modeltextRequired - Choose a text model available to this key.
- Prompt
prompttextRequired - Text to send to the model.
- Instructions
instructionstext - Instructions for the model.
- Max tokens
max_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
- Model
modeltextRequired - Choose an embedding model.
- Prompt
prompttextRequired - 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
- Model
modeltextRequired - Choose an image model.
- Prompt
prompttextRequired - 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
- Model
modeltextRequired - Choose a text-to-speech model.
- Voice
voicetext - Choose a voice available for the model.
- Prompt
prompttextRequired - 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
- Model
modeltextRequired - 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 date
start_datedate - First day of the usage period.
- End date
end_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"
}
}