{"info":{"_postman_id":"df81d5b6-37a1-4af3-9242-a828b37ad157","name":"StableDojo API","description":"<html><head></head><body><p>Easily generate AI model using dreambooth and stable diffusion</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"5997505","collectionId":"df81d5b6-37a1-4af3-9242-a828b37ad157","publishedId":"2s8YsnXG5p","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-11-23T05:58:50.000Z"},"item":[{"name":"Create a model","event":[{"listen":"test","script":{"id":"77646a35-815f-486d-8b8e-5bd845ceebbf","exec":["const responseJson = pm.response.json();","const uuid = responseJson.uuid","pm.collectionVariables.set('model_uuid', uuid); "],"type":"text/javascript"}}],"id":"a846baa0-2866-43d7-bae4-ae1dd4b4ba30","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"model[name]","value":"john_sks","type":"text"},{"key":"model[photos[0]]","type":"file","src":"/Users/elietoubiana/Downloads/Elie.png"},{"key":"model[prompts_attributes[0]][content]","value":"john_cjw person playing poker in the style of picasso","type":"text"},{"key":"model[callback_url]","value":"https://www.example.com","type":"text"},{"key":"model[data_type]","value":"person","type":"text"}]},"url":"https://api.stabledojo.com/api/model","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearer_token}}"}]},"isInherited":true,"source":{"_postman_id":"df81d5b6-37a1-4af3-9242-a828b37ad157","id":"df81d5b6-37a1-4af3-9242-a828b37ad157","name":"StableDojo API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","model"],"host":["api","stabledojo","com"],"query":[],"variable":[]}},"response":[{"id":"44aa9883-2d50-4d53-8b73-61bb6ef2275c","name":"Create a model","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"model[name]","value":"john_sks","type":"text"},{"key":"model[photos[0]]","type":"file","src":"/Users/elietoubiana/Downloads/Elie.png"},{"key":"model[prompts_attributes[0]][content]","value":"john_sks person playing poker in the style of picasso","type":"text"},{"key":"model[callback_url]","value":"https://www.example.com","type":"text"},{"key":"model[data_type]","value":"person","type":"text"}]},"url":"https://api.stabledojo.com/api/model"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Date","value":"Wed, 23 Nov 2022 17:49:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Xss-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Etag","value":"W/\"6d7fb65aeeb6d0aaeca03458e6803c2d\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"e6d7621e-e4eb-4ad1-8b2a-26fd522f6835"},{"key":"X-Runtime","value":"0.198995"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"john_sks\",\n    \"slug\": null,\n    \"created_at\": \"2022-11-23T17:50:00.321Z\",\n    \"updated_at\": \"2022-11-23T17:50:00.321Z\",\n    \"user_id\": 1,\n    \"state\": \"running\",\n    \"data_type\": \"person\",\n    \"callback_url\": \"https://www.example.com\",\n    \"uuid\": \"23809aff-f967-4cb0-bb20-72ea45bfc16b\",\n    \"prompts\": [\n        {\n            \"id\": 47,\n            \"content\": \"john_sks person playing poker in the style of picasso\",\n            \"created_at\": \"2022-11-23T17:50:00.329Z\",\n            \"updated_at\": \"2022-11-23T17:50:00.329Z\",\n            \"avatar_id\": 32,\n            \"uuid\": \"e0e53523-0d25-46da-ab37-37f94dd9c975\",\n            \"generated_images\": []\n        }\n    ]\n}"}],"_postman_id":"a846baa0-2866-43d7-bae4-ae1dd4b4ba30"},{"name":"Create a new prompt","event":[{"listen":"test","script":{"id":"226e19cf-393d-4a8e-ab33-50319daf9695","exec":[""],"type":"text/javascript"}}],"id":"37132f4e-c4cd-46f7-9fdc-5933e53eed11","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearer_token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"prompt[content]","value":"cjw man playing the violon on a rooftop","type":"text"}]},"url":"https://api.stabledojo.com/api/model/{{modelID}}/prompts","urlObject":{"protocol":"https","path":["api","model","{{modelID}}","prompts"],"host":["api","stabledojo","com"],"query":[],"variable":[]}},"response":[{"id":"cbf5ad8d-cd7e-4e7f-92da-6ab8c2e91ca2","name":"Create a new prompt","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"prompt[content]","value":"cjw man playing the violon on a rooftop","type":"text"}]},"url":"https://api.stabledojo.com/api/model/{{modelID}}/prompts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Date","value":"Wed, 23 Nov 2022 17:51:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Xss-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Etag","value":"W/\"c8c2958fdc6cbf9feda8e9dcd649a3c3\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"60eb8a7e-d8af-42bf-a176-761b83db64a4"},{"key":"X-Runtime","value":"0.018690"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"content\": \"sks man playing the violon on a rooftop\",\n    \"created_at\": \"2022-11-23T17:51:24.247Z\",\n    \"updated_at\": \"2022-11-23T17:51:24.247Z\",\n    \"avatar_id\": 32,\n    \"uuid\": \"2d676af0-0b74-41a8-976f-15ef1d5d120a\",\n    \"generated_images\": []\n}"}],"_postman_id":"37132f4e-c4cd-46f7-9fdc-5933e53eed11"},{"name":"Show model","id":"1c64a126-81db-401f-b8f0-379ad6921be0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.stabledojo.com/api/model/{{modelID}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearer_token}}"}]},"isInherited":true,"source":{"_postman_id":"df81d5b6-37a1-4af3-9242-a828b37ad157","id":"df81d5b6-37a1-4af3-9242-a828b37ad157","name":"StableDojo API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","model","{{modelID}}"],"host":["api","stabledojo","com"],"query":[],"variable":[]}},"response":[{"id":"d7f547fc-4c31-4df3-ab8a-1e7b276d8e0d","name":"Show model","originalRequest":{"method":"GET","header":[],"url":"https://api.stabledojo.com/api/model/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Date","value":"Wed, 23 Nov 2022 17:51:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Xss-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Etag","value":"W/\"10ead987970d36ac6c57917e06263240\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"35327890-eae6-4aae-a200-64245a1453af"},{"key":"X-Runtime","value":"0.012836"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"john_sks\",\n    \"slug\": null,\n    \"created_at\": \"2022-11-23T17:50:00.321Z\",\n    \"updated_at\": \"2022-11-23T17:50:00.321Z\",\n    \"user_id\": 1,\n    \"state\": \"running\",\n    \"data_type\": \"person\",\n    \"callback_url\": \"https://www.example.com\",\n    \"uuid\": \"23809aff-f967-4cb0-bb20-72ea45bfc16b\",\n    \"prompts\": [\n        {\n            \"id\": 47,\n            \"content\": \"john_sks person playing poker in the style of picasso\",\n            \"created_at\": \"2022-11-23T17:50:00.329Z\",\n            \"updated_at\": \"2022-11-23T17:50:00.329Z\",\n            \"avatar_id\": 32,\n            \"uuid\": \"e0e53523-0d25-46da-ab37-37f94dd9c975\",\n            \"generated_images\": []\n        },\n        {\n            \"id\": 48,\n            \"content\": \"sks man playing the violon on a rooftop\",\n            \"created_at\": \"2022-11-23T17:51:24.247Z\",\n            \"updated_at\": \"2022-11-23T17:51:24.247Z\",\n            \"avatar_id\": 32,\n            \"uuid\": \"2d676af0-0b74-41a8-976f-15ef1d5d120a\",\n            \"generated_images\": []\n        }\n    ]\n}"}],"_postman_id":"1c64a126-81db-401f-b8f0-379ad6921be0"},{"name":"instruct create","id":"0a72b5f4-a70a-4084-b3ae-4085c0d277d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearer_token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"prompt[content]","value":"hello","type":"text"}]},"url":"{{api_url}}/api/instructs","urlObject":{"path":["api","instructs"],"host":["{{api_url}}"],"query":[],"variable":[]}},"response":[{"id":"dc23d399-60d7-47ad-b006-2c669c7e35cf","name":"Show model","originalRequest":{"method":"GET","header":[],"url":"https://api.stabledojo.com/api/model/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Date","value":"Wed, 23 Nov 2022 17:51:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Xss-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Etag","value":"W/\"10ead987970d36ac6c57917e06263240\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"35327890-eae6-4aae-a200-64245a1453af"},{"key":"X-Runtime","value":"0.012836"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"john_sks\",\n    \"slug\": null,\n    \"created_at\": \"2022-11-23T17:50:00.321Z\",\n    \"updated_at\": \"2022-11-23T17:50:00.321Z\",\n    \"user_id\": 1,\n    \"state\": \"running\",\n    \"data_type\": \"person\",\n    \"callback_url\": \"https://www.example.com\",\n    \"uuid\": \"23809aff-f967-4cb0-bb20-72ea45bfc16b\",\n    \"prompts\": [\n        {\n            \"id\": 47,\n            \"content\": \"john_sks person playing poker in the style of picasso\",\n            \"created_at\": \"2022-11-23T17:50:00.329Z\",\n            \"updated_at\": \"2022-11-23T17:50:00.329Z\",\n            \"avatar_id\": 32,\n            \"uuid\": \"e0e53523-0d25-46da-ab37-37f94dd9c975\",\n            \"generated_images\": []\n        },\n        {\n            \"id\": 48,\n            \"content\": \"sks man playing the violon on a rooftop\",\n            \"created_at\": \"2022-11-23T17:51:24.247Z\",\n            \"updated_at\": \"2022-11-23T17:51:24.247Z\",\n            \"avatar_id\": 32,\n            \"uuid\": \"2d676af0-0b74-41a8-976f-15ef1d5d120a\",\n            \"generated_images\": []\n        }\n    ]\n}"}],"_postman_id":"0a72b5f4-a70a-4084-b3ae-4085c0d277d9"},{"name":"Show instruct","id":"cc70d5ca-2ccc-4d21-8ae9-8746c34ef981","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearer_token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"prompt[content]","value":"hello","type":"text"}]},"url":"{{api_url}}/api/instructs","urlObject":{"path":["api","instructs"],"host":["{{api_url}}"],"query":[],"variable":[]}},"response":[{"id":"bc4fc447-8353-44d8-b719-334e90c62bf5","name":"Show model","originalRequest":{"method":"GET","header":[],"url":"https://api.stabledojo.com/api/model/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Date","value":"Wed, 23 Nov 2022 17:51:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Xss-Protection","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"strict-origin-when-cross-origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Etag","value":"W/\"10ead987970d36ac6c57917e06263240\""},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate"},{"key":"X-Request-Id","value":"35327890-eae6-4aae-a200-64245a1453af"},{"key":"X-Runtime","value":"0.012836"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"john_sks\",\n    \"slug\": null,\n    \"created_at\": \"2022-11-23T17:50:00.321Z\",\n    \"updated_at\": \"2022-11-23T17:50:00.321Z\",\n    \"user_id\": 1,\n    \"state\": \"running\",\n    \"data_type\": \"person\",\n    \"callback_url\": \"https://www.example.com\",\n    \"uuid\": \"23809aff-f967-4cb0-bb20-72ea45bfc16b\",\n    \"prompts\": [\n        {\n            \"id\": 47,\n            \"content\": \"john_sks person playing poker in the style of picasso\",\n            \"created_at\": \"2022-11-23T17:50:00.329Z\",\n            \"updated_at\": \"2022-11-23T17:50:00.329Z\",\n            \"avatar_id\": 32,\n            \"uuid\": \"e0e53523-0d25-46da-ab37-37f94dd9c975\",\n            \"generated_images\": []\n        },\n        {\n            \"id\": 48,\n            \"content\": \"sks man playing the violon on a rooftop\",\n            \"created_at\": \"2022-11-23T17:51:24.247Z\",\n            \"updated_at\": \"2022-11-23T17:51:24.247Z\",\n            \"avatar_id\": 32,\n            \"uuid\": \"2d676af0-0b74-41a8-976f-15ef1d5d120a\",\n            \"generated_images\": []\n        }\n    ]\n}"}],"_postman_id":"cc70d5ca-2ccc-4d21-8ae9-8746c34ef981"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{bearer_token}}"}]}},"event":[{"listen":"prerequest","script":{"id":"3549b9bb-14a2-43d7-8fea-4f15340540c4","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"2be40128-8df9-45fb-a688-ff3751e21f4b","type":"text/javascript","exec":[""]}}],"variable":[{"key":"bearer_token","value":"{{bearer_token}}"},{"key":"apiUrl","value":"{{apiUrl}}"},{"key":"model_uuid","value":""}]}