Completions
OpenAI-compatible API endpoints
Our API does not support all parameters offered by OpenAI. Requests are still accepted and processed, but not all parameters are considered.
Supported parameters:
model
messages
response_format
stream
temperature
Create a chat completion
Creates a model response for the given chat conversation. Compatible with OpenAI's chat completions API.
Authorization<token>
API key for authentication. Use 'Bearer ' format.
In: header
messagesarray<ChatMessage>
List of messages comprising the conversation so far
modelstring
ID of the model to use
response_format?object
stream?boolean
Whether to stream back partial progress
Default
false
temperature?number
Sampling temperature to use
Range
0 <= value <= 2
Response Body
curl -X POST "https://app.meingpt.com/api/openai/v1/chat/completions" \ -H "Content-Type: application/json" \ -d '{ "messages": [ { "role": "system", "content": "string" } ], "model": "string" }'
{
"id": "string",
"object": "chat.completion",
"created": 0,
"model": "string",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "string"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 0,
"completion_tokens": 0,
"total_tokens": 0
}
}
{
"status": "error",
"message": "string"
}
{
"status": "error",
"message": "string"
}
{
"status": "error",
"message": "string"
}
{
"status": "error",
"message": "string"
}