echo '{"messages":[{"role":"user","content":"Why is the sky blue?"}],"max_tokens":256}' > req.json aws sagemaker-runtime invoke-endpoint --endpoint-name $NAME \ --content-type application/json --body fileb://req.json out.json jq -r '.choices[0].message.content' out.json | head -1 jq -c '{model,usage}' out.json