302.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-tensorrtPrice: 0.05 PTC / call
Request
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.