Skip to main content
curl -X POST 'https://gptproto.com/v1/messages/async' \
-H 'Authorization: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-H 'Accept: text/event-stream' \
--data '{
    "stream": false,
    "model": "claude-haiku-4-5-20251001",
    "messages": [
        {
            "role":"user",
            "content": [{"type":"text","text": "你好"}]
        }
    ]
}'
{
    "id": "f8b30625-e38d-4950-8e13-76b72cfcb965",
    "status": "pending",
    "type": "message_task"
}

Parameters

Core Parameters

ParameterTypeRequiredDefaultRangeDescription
streamboolfalse-
modelstring--Model ID used to generate the response
messagesarray[{'role': 'user', 'content': 'Who are you?'}]role list:
user
assistant
system
developer
Array of message objects for the conversation. Each message must have a role (user or assistant) and content.

Messages Array Structure

Each message object in the messages array should have the following structure:
FieldTypeRequiredDescription
rolestringThe role of the message. Can be: user, assistant, system, or developer
contentarrayThe content of the message

Content Array Structure

FieldTypeRequiredExampleDescription
typestringtextThe type of content
textstringHello, who are you!The text content when type is text