302.AIのAPIは、クラウドGPU上に自社で展開したモデルから来ています。一部のモデルはオープンソースで、一部は自社で微調整または開発したものです。 Request
Example:Bearer {{YOUR_API_KEY}}
Body Params application/json
1024x1024 1024x2048 1536x1024 1536x2048 2048x1152 1152x2048
num_inference_steps
integer
required{
"prompt": "a dog",
"image_size": "1024x1024",
"batch_size": 1,
"num_inference_steps": 20,
"guidance_scale": 7.5
}
Request samples
curl --location --request POST 'https://api.302.ai/302/submit/stable-diffusion-3-v2' \
--header 'Authorization: Bearer sk-mfYQzy0XTFfz4P16vRE4gFrKK1Nly4TozsMqbbb9PSiJUvFO' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "a dog",
"image_size": "1024x1024",
"batch_size": 1,
"num_inference_steps": 20,
"guidance_scale": 7.5
}'
Responses
application/json Modified at 2024-11-21 09:43:57