Authorization: Bearer ********************{
"contents": [
{
"role": "user",
"parts": [
{
"text": "你好"
}
]
}
]
}curl --location '/v1beta/models/:generateContent' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"contents": [
{
"role": "user",
"parts": [
{
"text": "你好"
}
]
}
]
}'{
"candidates": [
{
"content": {
"parts": [
{
"text": "Hello"
}
]
}
}
]
}