Chat completion
OpenAI compatible playground chat.
POST
/pg/chat/completionsBody Parametersapplication/json
max_tokens integer
Maximum number of tokens to generate
messages* array
List of conversation messages
items object object
model* string
Model name / model ID
temperature number
Sampling temperature; higher is more random
Responses
200 OK application/json
response-200 object
400 Bad request or validation failed application/json
response-400 object
properties error* object
401 Missing or invalid API Key application/json
response-401 object
1{
2"messages": [
3{
4"content": "string",
5"role": "string"
6}
7],
8"model": "string"
9}
1curl -X POST "https://api.digislash.com/pg/chat/completions" \
2-H "Authorization: Bearer <API Key>" \
3-H "Content-Type: application/json" \
4-d '{
5"messages": [
6{
7"content": "string",
8"role": "string"
9}
10],
11"model": "string"
12}'
1▼{
2"data": {},
3"success": true
4}
