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:"o4-mini"
required
The model to use for the request
Array of message objects for the conversation
Maximum number of tokens to generate
Request Example
curl -X POST "https://gptproto.com/" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "o4-mini",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "who are you?"
}
]
}
],
"max_tokens": 5000
}'
Response
Error Responses
{
"error": {
"message": "Invalid signature",
"type": "401"
}
}