worker-sdxl-turbo
repo, you’ll need access to the following:
runpod/sdxl-turbo:dev
.YOUR_ENDPOINT
: The name of your Endpoint.YOUD_API_KEY
: The API Key required with read and write access.YOUR_PROMPT
: The custom prompt passed to the model.PENDING
; but quickly change to COMPLETED
if you query the Job Id.
index.html
: The frontend to your web application.script.js
: The backend which handles the logic behind getting the prompt and the call to the Serverless Endpoint.index.html
) sets up a user interface with an input box for the prompt and a button to trigger the image generation.${process.env.REACT_APP_AUTH_TOKEN}
with your actual API key.${process.env.REACT_APP_ENDPOINT_ID}
with your specific Endpoint.index.html
in a web browser, enter a prompt, and select Generate Image to see the result.index.html
page in your browser.