Run in Apifox
チャットモデルは一連のメッセージを入力として受け取り、モデルが生成したメッセージを出力として返します。チャット形式は複数回のやり取りを容易にするために設計されていますが、会話のない単一のタスクにも同様に有用です。 注意:可能な限り英語で質問してください。 devstral-2512 ministral-3b-2512 ministral-8b-2512 ministral-14b-2512 Mistral-large-2512 devstral-small-2505 Mixtral-8x7B Mistral-Large-2411 mistral-medium-latest Request Body Params application/json
{
"model" : "mistral-large-2411" ,
"messages" : [ { "role" : "user" , "content" : "Hello!" } ]
} Request Code Samples
curl --location --request POST 'https://api.302.ai/v1/chat/completions' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "mistral-large-2411",
"messages": [{"role": "user", "content": "Hello!"}]
}' 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 2026-01-21 06:51:43