当社302では本インターフェースに対して2つの最適化を行いました: 1.URL または生の Base64 データを返却できるようにしました 2.image_url を入力して画像編集を行えるようにしました
{
"contents": [
{
"parts": [
{
"text": "ジブリ漫画風に変身"
},
{
"image_url": "https://file.302ai.cn/gpt/imgs/20250507/d778f9319c534b1c8ffc49c15db14fb1.jpg"
}
]
}
],
"generationConfig": {
"responseModalities": [
"TEXT",
"IMAGE"
]
}
}curl --location --request POST 'https://api.302.ai/google/v1/models/gemini-3-pro-image-preview?response_format' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"contents": [
{
"parts": [
{
"text": "ジブリ漫画風に変身"
},
{
"image_url": "https://file.302ai.cn/gpt/imgs/20250507/d778f9319c534b1c8ffc49c15db14fb1.jpg"
}
]
}
],
"generationConfig": {
"responseModalities": [
"TEXT",
"IMAGE"
]
}
}'{
"completed_at": "",
"created_at": "",
"error": "",
"id": "",
"model": "",
"output": "",
"started_at": "",
"status": ""
}