curl --request POST \ --url https://api.siliconflow.cn/v1/messages \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "Pro/moonshotai/Kimi-K2-Instruct", "messages": [ { "role": "user", "content": "What opportunities and challenges will the Chinese large model industry face in 2025?" } ], "max_tokens": 8192}'
Creates a model response for the given chat conversation.
POST
/
messages
Chat Completions
Copy
curl --request POST \ --url https://api.siliconflow.cn/v1/messages \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "Pro/moonshotai/Kimi-K2-Instruct", "messages": [ { "role": "user", "content": "What opportunities and challenges will the Chinese large model industry face in 2025?" } ], "max_tokens": 8192}'