curl https://kymaapi.com/v1/chat/completions \ -H "Authorization: Bearer kyma-your-api-key" \ -H "Content-Type: application/json" \ -d '{ "model": "llama-3.3-70b", "messages": [ {"role": "user", "content": "Hello!"} ] }'
Generate a chat response from a model.
role
content
"system"
"user"
"assistant"
{ "id": "chatcmpl-abc123", "object": "chat.completion", "created": 1700000000, "model": "llama-3.3-70b-versatile", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "Hello! How can I help you today?" }, "finish_reason": "stop" } ], "usage": { "prompt_tokens": 20, "completion_tokens": 10, "total_tokens": 30 } }