curl --location 'https://gw.tokenproto.cn/v1/completions' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"model": "string",
"prompt": "string",
"max_tokens": 0,
"temperature": 0,
"top_p": 0,
"n": 0,
"stream": true,
"stop": "string",
"suffix": "string",
"echo": true
}'{
"id": "string",
"object": "text_completion",
"created": 0,
"model": "string",
"choices": [
{
"text": "string",
"index": 0,
"finish_reason": "string"
}
],
"usage": {
"input_tokens": 0,
"output_tokens": 0,
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 0,
"server_tool_use": {
"web_search_requests": 0,
"web_fetch_requests": 0
}
}
}