Generations(DALL·E 3とDALL·E 2)
テキストプロンプトに基づいてゼロから画像を作成(DALL·E 3とDALL·E 2) Request
Example:Bearer {{YOUR_API_KEY}}
Body Params application/json
必要な画像の文字説明。最大文字数は1000文字です。
生成する画像の数。1から10の間でなければなりません。
生成される画像のサイズ。256x256、512x512、または1024x1024のいずれかでなければなりません。
{
"prompt": "A colorful sunset over the mountains",
"n": 1,
"model": "dall-e-3",
"size": "1024x1024"
}
Request samples
curl --location --request POST 'https://api.302.ai/v1/images/generations' \
--header 'Authorization: Bearer sk-mfYQzy0XTFfz4P16vRE4gFrKK1Nly4TozsMqbbb9PSiJUvFO' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "A colorful sunset over the mountains",
"n": 1,
"model": "dall-e-3",
"size": "1024x1024"
}'
Responses
application/json {
"created": 1589478378,
"data": [
{
"url": "https://..."
},
{
"url": "https://..."
}
]
}
Modified at 2024-09-04 07:51:16