SD3-V2
POST
/302/submit/stable-diffusion-3-v2302.AI's API comes from models we deployed on cloud GPUs. Some models are open-source, while others are fine-tuned or developed by 302.AI.
Used for image generation,average runtime 5-10s, project from: https://huggingface.co/stabilityai/stable-diffusion-3-medium-tensorrt
Price: 0.05 PTC / call
请求参数
Header Params
Authorization
string
required
API Key for 302.AI backend
Example:
Bearer {{YOUR_API_KEY}}
Body Params application/json
prompt
string
required
negative_prompt
string
optional
image_size
string
required
1024x1024 1024x2048 1536x1024 1536x2048 2048x1152 1152x2048
batch_size
integer
required
1 to 4
num_inference_steps
integer
required
1 to 100 Defaults to 20
guidance_scale
integer
required
0 to 100 Defaults to 7.5
seed
integer
optional
Example
{
"prompt": "a dog",
"image_size": "1024x1024",
"batch_size": 1,
"num_inference_steps": 20,
"guidance_scale": 7.5
}
示例代码
Responses
OK(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
object {0}
Example
{}
Last modified: 2 个月前