Skip to main content

stable_diffusion_v1_5_img2img

Creates, updates, deletes, gets or lists a stable_diffusion_v1_5_img2img resource.

Overview

Namestable_diffusion_v1_5_img2img
TypeResource
Idcloudflare.ai.stable_diffusion_v1_5_img2img

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
workers_ai_post_run_cf_runwayml_stable_diffusion_v1_5_img2imginsertaccount_id, promptqueueRequest, tagsRuns inference on the @cf/runwayml/stable-diffusion-v1-5-img2img model.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
account_idstringThe Cloudflare account ID.
queueRequeststring
tagsstring

INSERT examples

Runs inference on the @cf/runwayml/stable-diffusion-v1-5-img2img model.

INSERT INTO cloudflare.ai.stable_diffusion_v1_5_img2img (
guidance,
height,
image,
image_b64,
mask,
negative_prompt,
num_steps,
prompt,
seed,
strength,
width,
account_id,
queueRequest,
tags
)
SELECT
{{ guidance }},
{{ height }},
'{{ image }}',
'{{ image_b64 }}',
'{{ mask }}',
'{{ negative_prompt }}',
{{ num_steps }},
'{{ prompt }}' /* required */,
{{ seed }},
{{ strength }},
{{ width }},
'{{ account_id }}',
'{{ queueRequest }}',
'{{ tags }}'
;