302.AIのAPIは、クラウドGPUに展開するモデルから来ています。一部のモデルはオープンソースモデルであり、一部のモデルは自分で微調整または開発されています。
画像生成の場合、from:https://github.com/alpha-vllm/lumina-image-2.0/tree/main
平均ランニング時間は5〜10秒です
価格:0.1 PTC/回
Request
Example:Bearer {{YOUR_API_KEY}}
Body Params application/json
num_inference_steps
integer
optional{
"prompt": "A dog",
"negative_prompt": "",
"image_size": {
"width": 1024,
"height": 768
},
"num_inference_steps": 40,
"guidance_scale": 4.5,
"output_format": "jpeg"
}
Request samples
curl --location --request POST 'https://api.302.ai/302/submit/lumina-image-v2' \
--header 'Authorization: Bearer sk-mfYQzy0XTFfz4P16vRE4gFrKK1Nly4TozsMqbbb9PSiJUvFO' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "A dog",
"negative_prompt": "",
"image_size": {
"width": 1024,
"height": 768
},
"num_inference_steps": 40,
"guidance_scale": 4.5,
"output_format": "jpeg"
}'
Responses
application/json Modified at 2025-02-11 01:44:03