Enterprise: Update S3 Details

This endpoint helps update S3 details on server.

--request POST 'https://stablediffusionapi.com/api/v1/enterprise/update_s3' \

Make a POST request to https://stablediffusionapi.com/api/v1/enterprise/update_s3 endpoint. You need to pass below parameters to update S3 details

You can use any S3 compatible service like Cloudflare R2,Digital Ocean Spaces, AWS S3, Google Cloud Storage, alibaba OSS, Backblaze etc

key : Your API Key
public_url : public url on which images can be accessible, Make sure to give bucket public access, So you can access links.
region_name : S3 region name
endpoint_url : S3 endpoint URL
aws_access_key_id : Bucket access key
aws_secret_access_key : Bucket secret key
image_directory : image directory inside S3 bucket where images will be stored, make "generations" directory inside bucket and make sure its public, so you can access images using links

Request Body and Example Response

Body Raw
 "key": "[email protected]#___",
 "public_url": "https://d1okzptojspljx.cloudfront.net/generations/",
 "region_name": "us-east-1",
 "endpoint_url": "https://stable-diffusion-api.s3.amazonaws.com",
 "aws_access_key_id": "access-key",
 "aws_secret_access_key": "secret-key",
 "image_directory": "generations"
Example Response
"status": "success",
"message": "Model exists on server"

Make sure to give below permissions to your IAM user to upload images on S3 bucket

    "Version": "2012-10-17",
    "Statement": [
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
            "Resource": [