Overview
This endpoint provides text to text functionality.
Authentication
This endpoint requires authentication using a Bearer token.
Authorization
string
default:"sk-***********"
required
Your API key in the format: Bearer YOUR_API_KEY
Request Body
model
string
default:"gemini-2.5-pro-deepsearch"
required
The model to use for the request
Array of message objects for the conversation
Whether to stream the response
Request Example
curl -X POST "https://gptproto.com/v1/chat/completions" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-2.5-pro-deepsearch",
"messages": [
{
"role": "user",
"content": "Who are you?"
}
],
"stream": false
}'
Response
Error Responses
{
"error": {
"message": "Invalid signature",
"type": "401"
}
}