Seedream 5.5
Text to image · Image editing
Starting price $0.05 / image
Stable Diffusion with LoRAs runs a Stable Diffusion base model you choose, with your own LoRA weights, ControlNets and IP adapters, from text, from an image or with a mask.
lora/inpaintThis model has other modes with their own ids: lora, lora/image-to-image.
Quote the input, start the generation with the quote, then poll the job. Set RAYWAKE_API_KEY first; see Authentication.
# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "lora/inpaint",
"input": {
"model_name": "example",
"prompt": "A tall green plant in a white ceramic pot, matching the light and perspective of the room."
}
}'
# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"model": "lora/inpaint", "quote_id": "QUOTE_ID", "input": {"model_name":"example","prompt":"A tall green plant in a white ceramic pot, matching the light and perspective of the room."}}'
# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
-H "Authorization: Bearer $RAYWAKE_API_KEY"| Name | Type | Description |
|---|---|---|
model_namerequired | string | Link or model ID of the base model. |
unet_name | string | Link or model ID of a custom U-Net model. |
variant | string | The model variant to use, for example fp16. |
promptrequired | string | The prompt to use for generating the image. Be as descriptive as possible for best results. |
negative_prompt | string | The negative prompt to use.Use it to address details that you don't want in the image. This could be colors, objects, scenery and even the small details (e.g. moustache, blurry, low resolution). |
prompt_weighting | boolean | If set to true, the prompt weighting syntax will be used. Additionally, this will lift the 77 token limit by averaging embeddings. |
image_url | string (image URL) | URL of image to use for image to image/inpainting. |
mask_url | string (image URL) | URL of black-and-white image to use as mask during inpainting. |
noise_strength | number | The amount of noise to add to noise image for image. Only used if the image_url is provided. 1.0 is complete noise and values near 0 are minimal noise. |
loras | array of objects | The LoRAs to use for the image generation. You can use up to 10 LoRAs and they will be merged together to generate the final image. |
embeddings | array of objects | The embeddings to use for the image generation. Only a single embedding is supported at the moment. The embeddings will be used to map the tokens in the prompt to the embedding weights. |
controlnets | array of objects | The control nets to use for the image generation. You can use up to 5 control nets and they will be applied to the image at the specified timesteps. |
controlnet_guess_mode | boolean | If set to true, the controlnet will be applied to only the conditional predictions. |
ip_adapter | array of objects | IP adapters for image generation (up to 5). A non-empty list requires image_encoder_path. |
image_encoder_path | string | Choose an encoder compatible with the IP-Adapter weights. For h94/IP-Adapter SDXL weights, use h94/IP-Adapter with image_encoder_subfolder='sdxl_models/image_encoder'; for SD1.5 weights, use image_encoder_subfolder='models/image_encoder'. |
image_encoder_subfolder | string | Subfolder containing the image encoder weights in image_encoder_path. |
image_encoder_weight_name | string | The weight name of the image encoder model to use for the image generation. |
ic_light_model_url | string (URL) | The URL of the IC Light model to use for the image generation. |
ic_light_model_background_image_url | string (image URL) | The URL of the IC Light model background image to use for the image generation. Make sure to use a background compatible with the model. |
ic_light_image_url | string (image URL) | The URL of the IC Light model image to use for the image generation. |
seed | integer | The same seed and the same prompt given to the same version of Stable Diffusion will output the same image every time. |
num_inference_steps | integer | Increasing the amount of steps tells Stable Diffusion that it should take more steps to generate your final result which can increase the amount of detail in your image. |
guidance_scale | number | The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you. |
clip_skip | integer | Skips part of the image generation process, leading to slightly different results. This means the image renders faster, too. |
scheduler | string (enum) | Scheduler / sampler to use for the image denoising process. |
prediction_type | string (enum) | The type of prediction to use for the image generation. The `epsilon` is the default. |
rescale_betas_snr_zero | boolean | Whether to set the rescale_betas_snr_zero option or not for the sampler |
image_format | string (enum) | The format of the generated image. |
num_images | integer | Number of images to generate in one request. Note that the higher the batch size, the longer it will take to generate the images. |
tile_width | integer | The size of the tiles to be used for the image generation. |
tile_height | integer | The size of the tiles to be used for the image generation. |
tile_stride_width | integer | The stride of the tiles to be used for the image generation. |
tile_stride_height | integer | The stride of the tiles to be used for the image generation. |
eta | number | The eta value to be used for the image generation. |
A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.
"outputs": [
{ "type": "image", "url": "https://…", "mime_type": "image/png", "thumbnail_url": "https://…" }
]The exact charge for your input comes from a quote. How charges settle
Fields marked * are required. Review the price before generating.
This card is for people who already work with Stable Diffusion files. You give a link to the base model and add as many LoRAs as you like, each with a scale from 0 to 4; they are merged into one result. ControlNets, one embedding and IP adapters can be added the same way.
Three modes share these settings: text to image, image to image with a noise strength, and inpainting with a black-and-white mask. You also choose the scheduler, steps up to 150, guidance scale and clip skip.
Check subject consistency and unwanted style spillover; inspect repaired edges when using inpaint.