Run in Apifox
ByteDance Doubaoの最新AIモデル 5つのモデルをサポート: Doubao-1.5-pro-32k Doubao-1.5-pro-256k Doubao-1.5-lite-32k Doubao-pro-32k Doubao-pro-128k doubao-1-5-thinking-pro-250415 doubao-1-5-thinking-pro-vision-250415 doubao-1-5-thinking-vision-pro-250428 doubao-seed-1-6-thinking-250615 doubao-seed-1-6-250615 doubao-seed-1-6-flash-250615 Request Body Params application/json
{
"model" : "doubao-pro-128k" ,
"messages" : [ { "role" : "user" , "content" : "あなたは誰ですか?" } ]
}
Request Code Samples
curl --location --request POST 'https://api.302.ai/v1/chat/completions' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer sk-mfYQzy0XTFfz4P16vRE4gFrKK1Nly4TozsMqbbb9PSiJUvFO' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "doubao-pro-128k",
"messages": [{"role": "user", "content": "あなたは誰ですか?"}]
}'
Responses application/json Generate Code
{
"id" : "chatcmpl-123" ,
"object" : "chat.completion" ,
"created" : 1677652288 ,
"choices" : [
{
"index" : 0 ,
"message" : {
"role" : "assistant" ,
"content" : "\n\nHello there, how may I assist you today?"
} ,
"finish_reason" : "stop"
}
] ,
"usage" : {
"prompt_tokens" : 9 ,
"completion_tokens" : 12 ,
"total_tokens" : 21
}
}
Modified at 2025-06-12 03:31:29