{
"contents": [
{
"role": "user",
"parts": [
{
"text": "Hi, can you create a 3d rendered image of a pig with wings and a top hat flying over a happy futuristic scifi city with lots of greenery?"
}
]
}
],
"generationConfig": {
"responseModalities": [
"IMAGE"
],
"imageConfig": {
"aspectRatio": "3:4"
}
}
}curl --location 'https://token.ithinkai.cn/v1beta/models/gemini-3.1-flash-image-preview:generateContent' \
--header 'Authorization: Bearer $key' \
--header 'Content-Type: application/json' \
--data '{
"contents": [
{
"role": "user",
"parts": [
{
"text": "Hi, can you create a 3d rendered image of a pig with wings and a top hat flying over a happy futuristic scifi city with lots of greenery?"
}
]
}
],
"generationConfig": {
"responseModalities": [
"IMAGE"
],
"imageConfig": {
"aspectRatio": "3:4"
}
}
}'{
"candidates": [
{
"content": {
"role": "string",
"parts": [
{
"text": "string"
}
]
},
"finishReason": "string",
"index": 0,
"safetyRatings": [
null
]
}
],
"usageMetadata": {
"promptTokenCount": 0,
"toolUsePromptTokenCount": 0,
"candidatesTokenCount": 0,
"totalTokenCount": 0,
"thoughtsTokenCount": 0,
"cachedContentTokenCount": 0,
"promptTokensDetails": null,
"toolUsePromptTokensDetails": null
}
}