SD3
POST
/302/submit/stable-diffusion-3302.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 multipart/form-data
prompt
string
required
Example:
a dog
negative_prompt
string
optional
aspect_ratio
string
optional
Example:
3:2
image
file
optional
The image to use as the starting point for the generation.
output_format
string
optional
Example:
png
seed
integer
optional
Must be >0
Example:
1234
prompt_strength
string
optional
Sometimes referred to as denoising, this parameter controls how much influence the image parameter has on the generated image. A value of 0 would yield an image that is identical to the input. A value of 1 would be as if you passed in no image at all.
Example:
0.6
示例代码
Responses
OK(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
completed_at
string
required
created_at
string
required
error
string
required
id
string
required
model
string
required
output
string
required
started_at
string
required
status
string
required
Example
{
"completed_at": "",
"created_at": "",
"error": "",
"id": "",
"model": "",
"output": "",
"started_at": "",
"status": ""
}
Last modified: 2 个月前