MyShell 백서

MyShell

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 56쪽

wavform generation (1.0 more diverse, 0.0 more conservative)</td><td>0.7</td><td>false</td></tr></tbody></table> **Output Parameters** | Name | Type | Description | File Type | | ---- | -------- | ------------------------------------------------------------------------------------------------------------------------ | --------- | | url | `string` | The audio that was generated has been saved as an online URL. This link is temporary, so please save it for your own use | `audio` | **Output Example** {% tabs %} {% tab title="success" %} {% code fullWidth="false" %} ```json { "url": "https://cdn.myshell.ai/audio/chat/embed_obj/38145/20240423/fa7e6014529f41c1aa747f765f00c385.mp3" } ``` {% endcode %} {% endtab %} {% endtabs %} # Champ Animate the character in the image to dance with the pre-defined guidance. ## Try it in the Widget Center Click this [url](https://app.myshell.ai/robot-workshop/widget/1781992023651704832) to try this widget and copy the Pro Config template. ## Usage \<TODO: enter description here, and remove useless inputs> **Input Parameters** <table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>reference_image</td><td><code>string</code></td><td>Provide an image of the champ. We can animate the character in the image to dance. We've found that using more realistic characters yields better results than using cartoon characters.</td><td></td><td>true</td></tr><tr><td>guidance</td><td><code>string</code></td><td>pre-defined dancing guidance.</td><td>motion-04</td><td>true</td></tr><tr><td>num_inference_steps</td><td><code>integer</code></td><td>inferenc step for inner diffusion.</td><td>20</td><td>false</td></tr><tr><td>guidance_scale</td><td><code>number</code></td><td>guidance scale hyper-parameter for generation. A larger scale indicates stronger guidance.</td><td>3.5</td><td>false</td></tr></tbody></table> **Output Parameters** | Name | Type | Description | File Type | | ---- | -------- | ------------------------------------------------------------------------------------------------------------------------ | --------- | | url | `string` | The video that was generated has been saved as an online URL. This link is temporary, so please save it for your own use | `video` | **Output Example** {% tabs %} {% tab title="success" %} {% code fullWidth="false" %} ```json { // input https://image.myshell.ai/image/chat/embed_obj/40295/20240423/018fb86564684efeb2577a99c154baed.jpg "url": "https://cdn.myshell.ai/video/chat/embed_obj/40295/20240423/a932c38992d842c9a791fc62774d366d.mp4" } ``` {% endcode %} {% endtab %} {% tab title="fail" %} {% code fullWidth="false" %} ```json Http error ``` {% endcode %} {% endtab %} {% endtabs %} ## Detailed Guidelines # CoinGecko Obtain price feed, market data, and historical data of crypto assets Try it in the Widget Center Click this [url](/ko/create/pro-config-mode/api-reference/widgets/40-coingecko) to try this widget and copy the Pro Config template. ## Usage ### Get the Coin ID <mark style="color:green;">`action`</mark> `coin_id` **Input Parameters** <table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>action</td><td><code>string</code></td><td>The action you want to perform</td><td>coin_id</td><td>true</td></tr><tr><td>name</td><td><code>string</code></td><td>The name of the coin. Required if you search coin by name.</td><td></td><td>true</td></tr></tbody></table> **Output Parameters** <table><thead><tr><th width="146">Name</th><th>Type</th><th>Description</th><th>File Type</th></tr></thead><tbody><tr><td>data</td><td><code>object</code></td><td>The output of coingecko API.</td><td></td></tr></tbody></table> #### Output Example {% code overflow="wrap" %} ```json { "status": "SUCCESS", "created_at": "2024-04-25T02:58:32.161881", "started_at": "2024-04-25T02:58:36.511598", "result": { "data": { "id": "bitcoin", "symbol": "btc", "name": "Bitcoin" } }, "finished_at": "2024-04-25T02:58:38.489827" } ``` {% endcode %} ### Get the Coin Data by ID <mark style="color:green;">`action`</mark> `coin_data_by_id` **Input Parameters** <table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th width="160">Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>action</td><td><code>string</code></td><td>The action you want to perform</td><td>coin_data_by_id</td><td>true</td></tr><tr><td>id</td><td><code>string</code></td><td>The id of the coin.</td><td></td><td>true</td></tr></tbody></table> **Output Parameters** <table><thead><tr><th width="146">Name</th><th>Type</th><th>Description</th><th>File Type</th></tr></thead><tbody><tr><td>data</td><td><code>object</code></td><td>The output of coingecko API.</td><td></td></tr></tbody></table> #### Output Example ```json { "status": "SUCCESS", "created_at": "2024-04-25T03:12:37.276366", "started_at": "2024-04-25T03:12:39.650554", "result": { "data": { "id": "bitcoin", "symbol": "btc", "name": "Bitcoin", "web_slug": "bitcoin", "asset_platform_id": null, "*****" } }, "finished_at": "2024-04-25T03:12:41.767455" } ``` ### Get the Coin Ticker by ID <mark style="color:green;">`action`</mark> `coin_ticker_by_id` **Input Parameters** <table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th width="160">Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>action</td><td><code>string</code></td><td>The action you want to perform</td><td>coin_ticker_by_id</td><td>true</td></tr><tr><td>id</td><td><code>string</code></td><td>The id of the coin.</td><td></td><td>true</td></tr></tbody></table> **Output Parameters** <table><thead><tr><th width="146">Name</th><th>Type</th><th>Description</th><th>File Type</th></tr></thead><tbody><tr><td>data</td><td><code>object</code></td><td>The output of coingecko API.</td><td></td></tr></tbody></table> #### Output Example ```json { "status": "SUCCESS", "created_at": "2024-04-25T03:21:00.040066", "started_at": "2024-04-25T03:21:03.711204", "result": { "data": { "name": "Bitcoin", "tickers": ["***"] } }, "finished_at": "2024-04-25T03:21:06.378630" } ``` ### Advanced **Input Parameters** <table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>endpoint</td><td><code>string</code></td><td>The endpoint url of Coingecko, please add the path params in the endpoint</td><td>https://pro-api.coingecko.com/api/v3/coins/id</td><td>true</td></tr><tr><td>query_param</td><td><code>string</code></td><td>Dict type of query params</td><td></td><td>false</td></tr></tbody></table> ## Detailed Guidelines > Note: You can test this feature in the widget center, but please be cautious not to output excessive information on the website. Some cryptocurrency data can be extensive and may cause your website to become unresponsive or crash. * Main parameter of Coins: * `task_type` , you can use the `coin_id` to obtain the identifier of your chosen cryptocurrency. Then, utilize other functions named `xx_by_id` to fetch specific details about that cryptocurrency. * When using `coin_id`, you should provide the name of the coin as a parameter. For `xx_by_id` functions, you should supply the coin's ID as the parameter. * Main parameter of Advanced * `endpoint`, refer to the [CoinGecko API documentation](https://docs.coingecko.com/reference/introduction) and use the API interface as the endpoint. Be sure to include the path parameters in the endpoint. * For the query parameters, add them as a dictionary, following the format described in the [CoinGecko API documentation](https://docs.coingecko.com/reference/introduction) * Some examples <figure><img src="https://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/jTo7Cbr6z71r5z4NdIPM/image%20(24).png" alt=""><figcaption></figcaption></figure> <figure><img src="https://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/rgcXa4rHMHmYizw9mT0o/image%20(25).png" alt=""><figcaption></figcaption></figure> # ControlNet with Civitai Stable Diffusion with ControlNet {% hint style="info" %} This widget supports multiple actions. For a more comprehensive understanding of its functionality, we recommend reviewing the following documentation carefully. You need to pass both the `action` and other input parameters of the chosen action to your `module_config` {% endhint %} ## Try it in the Widget Center Click this [url](https://app.myshell.ai/robot-workshop/widget/1793089562715484160) to try this widget and copy the Pro Config template. ## Usage ### Generate Picture with ControlNet <mark style="color:green;">`action`</mark> `txt2img` **Input Parameters** <table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>action</td><td><code>string</code></td><td>The action of ControlNet, txt2img or img2img</td><td>txt2img</td><td>true</td></tr><tr><td>model</td><td><code>string</code></td><td>The model id from civitai (SD1.5, SDXL 1.0, PlaygroundV2). How to get it? Click on a model page on civitai, and copy the series number within the download link.</td><td>64094</td><td>true</td></tr><tr><td>controlnet_model</td><td><code>string</code></td><td>The ControlNet model id from civitai. How to get it? Click on a model page on civitai, and copy the series number within the download link.</td><td>10971</td><td>true</td></tr><tr><td>image</td><td><code>string</code></td><td>The input image, can be a url or base64 sting</td><td></td><td>true</td></tr><tr><td>no_mask</td><td><code>boolean</code></td><td>Whether to use mask</td><td>False</td><td>true</td></tr><tr><td>mask</td><td><code>string</code></td><td>The correspond mask, can be a url or base64 sting. 1 for mask region</td><td></td><td>false</td></tr><tr><td>prompt</td><td><code>string</code></td><td>The text prompt for ControlNet. Add lora? add `` to your prompt. `$id` is the series number and `$weight` is the lora weight you want (always set to 1.0). You can use multiple loras.</td><td></td><td>true</td></tr><tr><td>negative_prompt</td><td><code>string</code></td><td>The negative prompt for ControlNet.</td><td>(worst quality, low quality:1.4),(malformed hands:1.4),(poorly drawn hands:1.4),(mutated fingers:1.4),(extra limbs:1.35),(poorly drawn face:1.4),bad leg,strange leg, poor eyes, full screen of face</td><td>true</td></tr><tr><td>controlnet_module</td><td><code>string</code></td><td>The ControNet module</td><td>none</td><td>true</td></tr><tr><td>guidance_start</td><td><code>number</code></td><td>ControlNet guidance start</td><td>0</td><td>true</td></tr><tr><td>guidance_end</td><td><code>number</code></td><td>ControlNet guidance end</td><td>1</td><td>true</td></tr><tr><td>control_mode</td><td><code>string</code></td><td>The improved guess mode</td><td>Balanced</td><td>true</td></tr><tr><td>weight</td><td><code>number</code></td><td>The weight of the controlnet model</td><td>1</td><td>true</td></tr><tr><td>resize_mode</td><td><code>string</code></td><td>Four modes for output shape calculation: (1) Keep: keep original shape, (2) Certain: based on input width/length (divisible by 32), (3,4) min/max ratio: keep aspect ratio, the resize factor is the min/max of (h/H, w/W).</td><td>certain</td><td>true</td></tr><tr><td>threshold_a</td><td><code>integer</code></td><td>The threshold A for controlnet model</td><td>64</td><td>true</td></tr><tr><td>threshold_b</td><td><code>integer</code></td><td>The threshold B for controlnet model</td><td>64</td><td>true</td></tr><tr><td>steps</td><td><code>integer</code></td><td>Steps for sampler to step whle sampling</td><td>25</td><td>true</td></tr><tr><td>cfg_scale</td><td><code>number</code></td><td>Classifier Free Guidance Scale - how strongly the image should conform to prompt - lower values produce more creative results. Default to 7.</td><td>7.0</td><td>true</td></tr><tr><td>sampler</td><td><code>string</code></td><td>Sampler for diffusion model inference</td><td>DPM++ 2M</td><td>true</td></tr><tr><td>height</td><td><code>integer</code></td><td>Height of the generated images</td><td>512</td><td>true</td></tr><tr><td>width</td><td><code>integer</code></td><td>Width of the generated images</td><td>512</td><td>true</td></tr><tr><td>seed</td><td><code>integer</code></td><td>Random seed for generation process. -1 means random seed</td><td>-1</td><td>false</td></tr><tr><td>clip_skip</td><td><code>integer</code></td><td>Early stopping parameter for CLIP model; 1 is stop at last layer as usual, 2 is stop at penultimate layer, etc.</td><td>1</td><td>true</td></tr></tbody></table> **Output Parameters** | Name | Type | Description | File Type | | ---- | -------- | ------------------------------------------------------------------------------------------------------------ | --------- | | url | `string` | The url of generated image, stored in the cloud. Only temporarily effective, will be cleared in a few hours. | `image` | **Output Example** {% tabs %} {% tab title="success" %} {% code fullWidth="false" %} ```json { "url": "https://image.myshell.ai/image/chat/embed_obj/7758545/202405220201/6ee8737899794e9bb2e12b5844a4b11a.jpg" } ``` {% endcode %} {% endtab %} {% endtabs %} ### Inpaint with ControlNet <mark style="color:green;">`action`</mark> `img2img` **Input Parameters** <table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>action</td><td><code>string</code></td><td>The action of ControlNet, txt2img or img2img</td><td>txt2img</td><td>true</td></tr><tr><td>model</td><td><code>string</code></td><td>The model id from civitai (SD1.5, SDXL 1.0, PlaygroundV2). How to get it? Click on a model page on civitai, and copy the series number within the download link.</td><td>64094</td><td>true</td></tr><tr><td>controlnet_model</td><td><code>string</code></td><td>The ControlNet model id from civitai. How to get it? Click on a model page on civitai, and copy the series number within the download link.</td><td>10971</td><td>true</td></tr><tr><td>image</td><td><code>string</code></td><td>The input image, can be a url or base64 sting</td><td></td><td>true</td></tr><tr><td>no_mask</td><td><code>boolean</code></td><td>Whether to use mask</td><td>False</td><td>true</td></tr><tr><td>mask</td><td><code>string</code></td><td>The correspond mask, can be a url or base64 sting. 1 for mask region</td><td></td><td>false</td></tr><tr><td>prompt</td><td><code>string</code></td><td>The text prompt for ControlNet. Add lora? add `` to your prompt. `$id` is the series number and `$weight` is the lora weight you want (always set to 1.0). You can use multiple loras.</td><td></td><td>true</td></tr><tr><td>negative_prompt</td><td><code>string</code></td><td>The negative prompt for ControlNet.</td><td>(worst quality, low quality:1.4),(malformed hands:1.4),(poorly drawn hands:1.4),(mutated fingers:1.4),(extra limbs:1.35),(poorly drawn face:1.4),bad leg,strange leg, poor eyes, full screen of face</td><td>true</td></tr><tr><td>controlnet_module</td><td><code>string</code></td><td>The ControNet module</td><td>none</td><td>true</td></tr><tr><td>guidance_start</td><td><code>number</code></td><td>ControlNet guidance start</td><td>0</td><td>true</td></tr><tr><td>guidance_end</td><td><code>number</code></td><td>ControlNet guidance end</td><td>1</td><td>true</td></tr><tr><td>control_mode</td><td><code>string</code></td><td>The improved guess mode</td><td>Balanced</td><td>true</td></tr><tr><td>weight</td><td><code>number</code></td><td>The weight of the controlnet model</td><td>1</td><td>true</td></tr><tr><td>resize_mode</td><td><code>string</code></td><td>Four modes for output shape calculation: (1) Keep: keep original shape, (2) Certain: based on input width/length (divisible by 32), (3,4) min/max ratio: keep aspect ratio, the resize factor is the min/max of (h/H, w/W).</td><td>certain</td><td>true</td></tr><tr><td>threshold_a</td><td><code>integer</code></td><td>The threshold A for controlnet model</td><td>64</td><td>true</td></tr><tr><td>threshold_b</td><td><code>integer</code></td><td>The threshold B for controlnet model</td><td>64</td><td>true</td></tr><tr><td>steps</td><td><code>integer</code></td><td>Steps for sampler to step whle sampling</td><td>25</td><td>true</td></tr><tr><td>cfg_scale</td><td><code>number</code></td><td>Classifier Free Guidance Scale - how strongly the image should conform to prompt - lower values produce more creative results. Default to 7.</td><td>7.0</td><td>true</td></tr><tr><td>sampler</td><td><code>string</code></td><td>Sampler for diffusion model inference</td><td>DPM++ 2M</td><td>true</td></tr><tr><td>height</td><td><code>integer</code></td><td>Height of the generated images</td><td>512</td><td>true</td></tr><tr><td>width</td><td><code>integer</code></td><td>Width of the generated images</td><td>512</td><td>true</td></tr><tr><td>seed</td><td><code>integer</code></td><td>Random seed for generation process. -1 means random seed</td><td>-1</td><td>false</td></tr><tr><td>clip_skip</td><td><code>integer</code></td><td>Early stopping parameter for CLIP model; 1 is stop at last layer as usual, 2 is stop at penultimate layer, etc.</td><td>1</td><td>true</td></tr><tr><td>mask_blur</td><td><code>integer</code></td><td>Mask blur refers to the feathering of a mask (from edges to inside the mask), adjusted between 0-64. A smaller value results in sharper edges. Default to 4</td><td>4</td><td>true</td></tr><tr><td>inpainting_fill</td><td><code>integer</code></td><td>Choose the fill content in mask: 0 - fill, 1 - original, 2 - latent noise, 3 - latent nothing</td><td>1</td><td>true</td></tr><tr><td>inpainting_mask_invert</td><td><code>integer</code></td><td>0 - Inpaint masked region, 1 - Inpaint not masked region</td><td>0</td><td>true</td></tr><tr><td>denoising_strength</td><td><code>number</code></td><td>Strength of image transfomation during inpainting precess. High means more influence during transformation</td><td>0.7</td><td>true</td></tr></tbody></table> **Output Parameters** | Name | Type | Description | File Type | | ---- | -------- | ------------------------------------------------------------------------------------------------------------ | --------- | | url | `string` | The url of generated image, stored in the cloud. Only temporarily effective, will be cleared in a few hours. | `image` | **Output Example** {% tabs %} {% tab title="success" %} {% code fullWidth="false" %} ```json { "url": "https://image.myshell.ai/image/chat/embed_obj/7758545/202405221652/f9550811186e4152952020ea097375d6.jpg" } ``` {% endcode %} {% endtab %} {% endtabs %} # Crawler A naive crawler for website. Return raw content in markdwon format. ## Try it in the Widget Center Click this [url](https://app.myshell.ai/robot-workshop/widget/1781991963803181056) to try this widget and copy the Pro Config template. ## Usage Given the target website url, return the markdown string of the content **Input Parameters** <table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>url</td><td><code>string</code></td><td>The target website url</td><td></td><td>true</td></tr></tbody></table> **Output Parameters** | Name | Type | Description | File Type | | ---------------- | -------- | ---------------------------- | --------- | | markdown\_string | `string` | The raw content of given url | | **Output Example** {% tabs %} {% tab title="success" %} {% code fullWidth="false" %} ```json { "markdown_string": "Title: MyShell - An Ultimate Place for AI Apps Creation, Discover, and Earn\n\nURL Source: https://app.myshell.ai/explore\n\nMarkdown Content:\nExplore\n-------\n" } ``` {% en
프로젝트로 돌아가기