302.AIのAPIは、クラウドGPU上に自社で展開したモデルから来ています。一部のモデルはオープンソースで、一部は自社で微調整または開発したものです。 Request
Body Params application/json
{
"prompt": "一对中国夫妇",
"image_url":"",
"negative_prompt": "ugly, deformed, blurry",
"guidance_scale": 5,
"image_size": {
"width": 1024,
"height": 1024
},
"strength": 0.85
}
Request Code Samples
curl --location --request POST 'https://api.302.ai/302/submit/kolors' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "一对中国夫妇",
"image_url":"",
"negative_prompt": "ugly, deformed, blurry",
"guidance_scale": 5,
"image_size": {
"width": 1024,
"height": 1024
},
"strength": 0.85
}'
Responses
application/json {
"images": [
{
"url": "https://file.302.ai/gpt/imgs/20260113/8262e86fc5dafdccdac99dc7ea738b0c.png",
"width": 1024,
"height": 1024,
"content_type": "image/jpeg"
}
],
"timings": {
"inference": 4.851676408201456
},
"seed": 61808585,
"has_nsfw_concepts": [
false
],
"prompt": "一对中国夫妇"
}
Modified at 2026-01-13 02:26:05