Assistants API
Use our powerful assistants outside the meinGPT platform.
Authentication
Authentication is performed using your API key, which you send in the request
header as Authorization: Bearer <YOUR_API_KEY>
.
You can generate your API key in your meinGPT account.
For more information, click here.
Select assistants
GET https://app.meingpt.com/api/assistants/v1/
With this endpoint, you can retrieve a list of all assistants available in your organization.
{
"assistants": [
{
"id": "cme15d7kj0003rojnm041ry3l",
"name": "assistant-name"
},
{
"id": "cme15d7kj0003rojnm041ry3l",
"name": "assistant-name-2"
}
]
}
or
You can also go to the editing page of your desired assistant in the platform and read the ID from the browser URL:
https://app.meingpt.com/:organizationId/assistants/:assistantId
Run assistant
POST https://app.meingpt.com/api/assistants/v1/:assistantId/run
After selecting the assistant ID, you can run it via the run endpoint.
{
"text": "LLM response",
"model": "Generation model name",
"messages": [
...tool-calls,
...tool-results,
{
"role": "assistant",
"content": [
{
"type": "text",
"text": "LLM response"
}
]
}
],
"usage": {
"input_tokens": number,
"cache_creation_input_tokens": number,
"cache_read_input_tokens": number,
"output_tokens": number
}
}