evilstreak/clipdraw

Generate art from text prompts. Based on kvfrans/clipdraw.

  • Public
  • 889 runs

Run clipdraw with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

Input schema

The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.

Field Type Default value Description
prompt
string
Watercolor painting of an underwater submarine.
prompt for generating image
num_paths
integer
256
number of paths/curves
num_iterations
integer
600
number of iterations
display_frequency
integer
10
display frequency of intermediate images
distance_from_centre_threshold
integer
75
distance at which points start generating penalties to loss
distance_from_centre_power
integer
2
power the distance from centre is raised to
distance_from_centre_weight
number
0.001
weight the distance from centre penalty is multiplied by

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{'items': {'format': 'uri', 'type': 'string'},
 'title': 'Output',
 'type': 'array',
 'x-cog-array-type': 'iterator'}
Example API response
View prediction
['https://replicate.delivery/mgxm/3a00ff00-2a12-4b2b-97d1-776bf7e48641/out.png',
 'https://replicate.delivery/mgxm/a4c56ced-3440-4242-8d07-52fa8b91d685/out.png',
 'https://replicate.delivery/mgxm/3435f0bd-b1fd-4fa9-a57f-a9316a84f71f/out.png',
 'https://replicate.delivery/mgxm/ee8ef53b-ffe8-4334-a286-f6f7bc582405/out.png',
 'https://replicate.delivery/mgxm/099aa413-739c-4bba-ac74-eacc725e97e0/out.png',
 'https://replicate.delivery/mgxm/73e010ef-07dd-4507-84f8-60a44be70891/out.png',
 'https://replicate.delivery/mgxm/6391f16a-31f6-45d5-adc3-f92a7ad8b37f/out.png',
 'https://replicate.delivery/mgxm/b803bb19-90e3-4de4-8c74-94f958436656/out.png',
 'https://replicate.delivery/mgxm/a693d56d-f43f-42c6-b135-a82e8407215b/out.png',
 'https://replicate.delivery/mgxm/b54e85df-8ecd-4e84-9a49-62f8c42c9fb4/out.png',
 'https://replicate.delivery/mgxm/8158b5b4-43a8-4025-8e12-7168cbf6f497/out.png',
 'https://replicate.delivery/mgxm/d8f48870-f8d7-4745-b32e-42b5d7cbbd17/out.png',
 'https://replicate.delivery/mgxm/0792470b-1afd-4281-acee-05dd4671c052/out.png',
 'https://replicate.delivery/mgxm/6a733089-ff0b-4223-aba6-eed40e2c406e/out.png',
 'https://replicate.delivery/mgxm/51ca7b20-695f-4c0f-afb7-c6569c8d00a9/out.png',
 'https://replicate.delivery/mgxm/9a4012ef-2e0e-4094-b18a-cd1f1d17f9ac/out.png',
 'https://replicate.delivery/mgxm/fc66fd19-71a2-4166-a8cb-7c7708b7d594/out.png',
 'https://replicate.delivery/mgxm/15f31f0d-0454-4969-b2d8-e5a6a6832dc0/out.png',
 'https://replicate.delivery/mgxm/c5484e1b-af98-4cd9-8e22-3d67761a5cc7/out.png',
 'https://replicate.delivery/mgxm/fd547cd6-5110-4ec3-b04f-bcc7c9e074bd/out.png',
 'https://replicate.delivery/mgxm/d0f50c22-846a-4c63-9dc9-6ae0f03d8957/out.png',
 'https://replicate.delivery/mgxm/6e0b8a9b-0275-455d-a8d6-f016fe2be7d3/out.png',
 'https://replicate.delivery/mgxm/14efbb75-d638-4e99-8276-7bf2aa663c6f/out.png',
 'https://replicate.delivery/mgxm/f4f69e64-aadf-41cf-a92b-26379108b092/out.png',
 'https://replicate.delivery/mgxm/6fcf304a-6f1e-4a98-ad60-122af39c08c3/out.png',
 'https://replicate.delivery/mgxm/438dbd25-e1dd-49a3-b827-711fd2705b89/out.png',
 'https://replicate.delivery/mgxm/8f722e41-1b80-48e8-86f0-048a9f8d57e4/out.png',
 'https://replicate.delivery/mgxm/ec8275a7-a83c-4a4b-806b-ab3ab9090ce6/out.png',
 'https://replicate.delivery/mgxm/bd2e4856-d3c9-45c4-9a4e-4dbd52714335/out.png',
 'https://replicate.delivery/mgxm/1407f7a0-d377-4700-9960-d4350412e6c8/out.png',
 'https://replicate.delivery/mgxm/d69d140b-c04f-4a9e-b24f-cc79b65681e6/out.png',
 'https://replicate.delivery/mgxm/f146c89d-dc12-4f09-a78f-8f8f8cc800fd/out.png',
 'https://replicate.delivery/mgxm/5821114d-de25-4148-af0b-0e02b69470fa/out.png',
 'https://replicate.delivery/mgxm/268e2668-a803-41cb-a4cc-56d9ef7589f7/out.png',
 'https://replicate.delivery/mgxm/667fccb2-4e0e-4970-adf7-6d5400485f84/out.png',
 'https://replicate.delivery/mgxm/c2cec788-43bf-4f58-bad3-b2d4c15a4991/out.png',
 'https://replicate.delivery/mgxm/3adac1a4-d1cc-465e-b768-9b7649e87edc/out.png',
 'https://replicate.delivery/mgxm/99084ce6-ed74-433b-9443-97d209348ac2/out.png',
 'https://replicate.delivery/mgxm/91df3f74-ca32-4318-aeb0-6bfbfb1bc05a/out.png',
 'https://replicate.delivery/mgxm/0c6dc44c-3a62-45cb-9d83-fbc60bff9fb8/out.png',
 'https://replicate.delivery/mgxm/bca9cfed-5cbd-4a47-8558-b4b96c37b5bb/out.png',
 'https://replicate.delivery/mgxm/1f7201f6-e677-4496-9366-0363834066ce/out.png',
 'https://replicate.delivery/mgxm/b638a8ec-012f-41f7-9c06-f8ecfa4e93e3/out.png',
 'https://replicate.delivery/mgxm/d50d3801-a366-46f9-ac82-0dcc10a2fd2b/out.png',
 'https://replicate.delivery/mgxm/f9efd395-d9c3-4f23-90e6-5d42efc53f5f/out.png',
 'https://replicate.delivery/mgxm/0557ae49-ce59-4725-8b93-249fe15608cb/out.png',
 'https://replicate.delivery/mgxm/6ef3397f-a216-4ac6-83cf-22c40e379f1d/out.png',
 'https://replicate.delivery/mgxm/01166eda-0d71-4a5e-b497-98db225bc46d/out.png',
 'https://replicate.delivery/mgxm/497640af-378a-4bd3-addc-190b68c99147/out.png',
 'https://replicate.delivery/mgxm/0ce131ec-f838-4e2a-827f-008b1ed61656/out.png',
 'https://replicate.delivery/mgxm/55632b46-ac5b-4625-bcdc-5e3d7a3c0a5b/out.png',
 'https://replicate.delivery/mgxm/c80bf6ab-f95a-4739-b3a2-98bdc50d0642/out.png',
 'https://replicate.delivery/mgxm/b9ecaebf-9e80-4526-b20f-69f16dba1ebf/out.png',
 'https://replicate.delivery/mgxm/4189c045-059e-4808-9e0f-3b747e9e81cf/out.png',
 'https://replicate.delivery/mgxm/df82dd19-1a64-47ad-8ff8-3edd014747a0/out.png',
 'https://replicate.delivery/mgxm/c3f4fe58-7369-4728-9514-2f31fbb4cf93/out.png',
 'https://replicate.delivery/mgxm/9dd729a1-33fa-4090-a7a7-bf7ebe7b2e5e/out.png',
 'https://replicate.delivery/mgxm/66db7d09-867e-443b-8f11-589a09576ee3/out.png',
 'https://replicate.delivery/mgxm/35b27145-78b7-4b71-b9a8-89238b8490b3/out.png',
 'https://replicate.delivery/mgxm/58438552-9f19-4c9c-bba8-09a6c25339b2/out.png',
 'https://replicate.delivery/mgxm/414c9066-b851-4637-83d7-d5fc6ca97d13/out.png',
 'https://replicate.delivery/mgxm/40ec928c-6193-4d16-80d2-ffe561dbf331/out.png']