{
"model": "gpt-5",
"input": "用中文概括一下单体架构和微服务架构的主要取舍。"
}curl --location --request POST 'https://api.ccapi.ai//v1/responses' \
--header 'Authorization: Bearer sk-xxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "gpt-5",
"input": "用中文概括一下单体架构和微服务架构的主要取舍。"
}'{
"id": "resp_example",
"object": "response",
"model": "gpt-5",
"status": "completed",
"output": [
{
"type": "message",
"role": "assistant",
"content": [
{
"type": "output_text",
"text": "单体架构部署简单,但扩展和独立演进较弱;微服务更灵活,但治理成本更高。"
}
]
}
],
"usage": {
"input_tokens": 28,
"output_tokens": 31,
"total_tokens": 59
}
}