Authorization: Bearer ********************{
"contents": [
{
"role": "user",
"parts": [
{
"inlineData": {
"mimeType": "image/jpeg",
"data": "BASE64_REFERENCE_IMAGE_DATA"
}
},
{
"text": "Based on the reference image style and composition, create a 3D rendered image of a pig with wings and a top hat flying over a happy futuristic sci-fi city with lots of greenery. Keep the visual style consistent with the reference."
}
]
}
],
"generationConfig": {
"responseModalities": [
"TEXT",
"IMAGE"
],
"imageConfig": {
"aspectRatio": "16:9",
"imageSize": "2K"
}
}
}curl --location 'https://api.xgapi.top/v1beta/models/:generateContent' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"contents": [
{
"role": "user",
"parts": [
{
"inlineData": {
"mimeType": "image/jpeg",
"data": "BASE64_REFERENCE_IMAGE_DATA"
}
},
{
"text": "Based on the reference image style and composition, create a 3D rendered image of a pig with wings and a top hat flying over a happy futuristic sci-fi city with lots of greenery. Keep the visual style consistent with the reference."
}
]
}
],
"generationConfig": {
"responseModalities": [
"TEXT",
"IMAGE"
],
"imageConfig": {
"aspectRatio": "16:9",
"imageSize": "2K"
}
}
}'{}