curl --request POST \
--url https://api.example.com/v1/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"max_tokens": 512,
"messages": [
{
"content": "You are a helpful assistant.",
"role": "system"
},
{
"content": "안녕하세요, 오늘 날씨 어때요?",
"role": "user"
}
],
"model": "Qwen/Qwen3-30B-A3B",
"stream": true,
"temperature": 0.7
}
'"{\"choices\":[{\"delta\":{\"content\":\"\"},\"finish_reason\":null,\"index\":0,\"logprobs\":null}],\"created\":1749464396,\"id\":\"chatcmpl-92a2882f186c496980c546b778416af6\",\"model\":\"microsoft/Phi-4\",\"object\":\"chat.completion.chunk\"}\n{\"choices\":[{\"delta\":{\"content\":\"안녕\"},\"finish_reason\":null,\"index\":0,\"logprobs\":null}],\"created\":1749464396,\"id\":\"chatcmpl-92a2882f186c496980c546b778416af6\",\"model\":\"microsoft/Phi-4\",\"object\":\"chat.completion.chunk\"}\n{\"choices\":[{\"delta\":{\"content\":\"하세요\"},\"finish_reason\":null,\"index\":0,\"logprobs\":null}],\"created\":1749464396,\"id\":\"chatcmpl-92a2882f186c496980c546b778416af6\",\"model\":\"microsoft/Phi-4\",\"object\":\"chat.completion.chunk\"}"Get chat response for a given prompt
curl --request POST \
--url https://api.example.com/v1/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"max_tokens": 512,
"messages": [
{
"content": "You are a helpful assistant.",
"role": "system"
},
{
"content": "안녕하세요, 오늘 날씨 어때요?",
"role": "user"
}
],
"model": "Qwen/Qwen3-30B-A3B",
"stream": true,
"temperature": 0.7
}
'"{\"choices\":[{\"delta\":{\"content\":\"\"},\"finish_reason\":null,\"index\":0,\"logprobs\":null}],\"created\":1749464396,\"id\":\"chatcmpl-92a2882f186c496980c546b778416af6\",\"model\":\"microsoft/Phi-4\",\"object\":\"chat.completion.chunk\"}\n{\"choices\":[{\"delta\":{\"content\":\"안녕\"},\"finish_reason\":null,\"index\":0,\"logprobs\":null}],\"created\":1749464396,\"id\":\"chatcmpl-92a2882f186c496980c546b778416af6\",\"model\":\"microsoft/Phi-4\",\"object\":\"chat.completion.chunk\"}\n{\"choices\":[{\"delta\":{\"content\":\"하세요\"},\"finish_reason\":null,\"index\":0,\"logprobs\":null}],\"created\":1749464396,\"id\":\"chatcmpl-92a2882f186c496980c546b778416af6\",\"model\":\"microsoft/Phi-4\",\"object\":\"chat.completion.chunk\"}"Bearer token authentication. Include the token in the Authorization header as 'Bearer
Text generation request.
Successfully generated text