How can i add "scheduler" in diffuser (inference api)?

how can i add “scheduler” in diffuser??

import requests
from PIL import Image
import io

API_URL = ""
headers = {"Authorization": "Bearer hf_CfvxxxxxxyYfJRxxxxOwmxxx"}

def query(payload):
    response =, headers=headers, json=payload)
    if response.status_code == 200:
        return response.content
        print("API request failed with status code:", response.status_code)
        return None

image_bytes = query({
    "inputs": "melaura, girl, hd, pink lips, detailed, age 16, Off-shoulder top, shiny cheeks, ",
    "negative_prompt": "earrings, deformed, blurry, badanatomy, bad proportions, "

if image_bytes is not None:
        image =
        # Save the image to a file"output_image.png")  # Displays images
    except Exception as e:
        print("Error while opening or displaying the image:", str(e))
    print("Failed to get image from the API.")