Stable Diffusion 3 Medium
ServerlessImageImg2Img
ServerlessImageImg2Img
2 billion parameter SD3 model with optimized performance and excels in areas where previous models struggled, such as photorealism and typography. The Stable Diffusion 3 API is provided by Stability and the model is powered by Fireworks. Unlike other models on the Fireworks playground, you'll need a Stability API key to use this model. To use the API directly, visit https://platform.stability.ai/docs/api-reference#tag/Generate/paths/~1v2beta~1stable-image~1generate~1sd3/post
Stable Diffusion 3 Mediumis available via partnership with Stability AI, in which Fireworks powers the underlying API. You must use a Stability API key and will be billed by Stability for usage, instead of Fireworks. See the API code example below or see the Stability API docs for full details.
Generate a model response using the image endpoint of sd3-medium. API reference
import requests response = requests.post( f"https://api.stability.ai/v2beta/stable-image/generate/sd3", headers={ "authorization": f"Bearer sk-<STABILITY_API_KEY>", "accept": "image/*" }, files={"none": ''}, data={ prompt="A beautiful sunset over the ocean", width=1024, height=1024, }, ) if response.status_code == 200: with open("./a.undefined", 'wb') as file: file.write(response.content) else: raise Exception(str(response.json()))
Your deployments of are listed below.