resolution
と は併用で き ません) 画像生成に用いる縦横比。デフォルトは ASPECT_1_1 です。aspect_ratio
と 組み合わせて用いる こ と はで き ません) 画像生成に用いる解像度を、 幅×高 さ で表 し ます。指定 し ない と 、 デ フ ォ ル ト では aspect_ratio を用います。{
"image_request": {
"model": "V_2",
"magic_prompt_option": "AUTO",
"aspect_ratio": "ASPECT_1_1",
"prompt": "a dog",
"style_type": "REALISTIC",
"negative_prompt": "painting",
"seed": 12345
}
}
curl --location --request POST 'https://api.302.ai/ideogram/generate' \
--header 'Authorization: Bearer sk-mfYQzy0XTFfz4P16vRE4gFrKK1Nly4TozsMqbbb9PSiJUvFO' \
--header 'Content-Type: application/json' \
--data-raw '{
"image_request": {
"model": "V_2",
"magic_prompt_option": "AUTO",
"aspect_ratio": "ASPECT_1_1",
"prompt": "a dog",
"style_type": "REALISTIC",
"negative_prompt": "painting",
"seed": 12345
}
}'
{"created":"2025-04-18T03:45:09.909989+00:00","data":[{"is_image_safe":true,"prompt":"A photo of a golden retriever dog playing fetch in a field. The dog is running with a stick in its mouth. The background is a vast green field with a few trees. The sky is clear with a few clouds.","resolution":"1024x1024","seed":12345,"url":"https://file.302.ai/gpt/imgs/20250418/e885bce881a5445690df06fe1079e1b3.png"}]}