{"info":{"_postman_id":"53a01eb2-2079-45de-8a1f-23fe45061461","name":"Monster API for AI Models","description":"<html><head></head><body><h4 id=\"get-started-with-monster-apis\">Get Started with Monster APIs</h4>\n<p>Welcome to our API documentation! With Monster API, you can effortlessly access powerful generative AI models such as stable diffusion for text to image and image to image, with our auto-scaling APIs, zero management required.</p>\n<p>Here we will walk you through the process of using our APIs for accessing state-of-the-art AI models such as Stable Diffusion, Dreambooth, Open AI Whisper (coming soon) at scale.</p>\n<p><strong>API Base URL:</strong></p>\n<p><code>https://api.monsterapi.ai</code></p>\n<p><strong>Security Headers:</strong></p>\n<ul>\n<li>An API key is a key value that you provide in the header when making API requests.<ul>\n<li>Example: <code>x-api-key: 123</code></li>\n</ul>\n</li>\n<li>A Bearer token is a token that you provide in the Authorization header when making API requests.<ul>\n<li>Example: <code>Authorization: Bearer 123</code></li>\n</ul>\n</li>\n</ul>\n<p>Generate an API Key and Auth token on <a href=\"https://monsterapi.ai/user/settings#api-keys\">Monster API Website</a>.</p>\n<p><strong>Additional Information:</strong></p>\n<p>Reach out to us for any query or view our terms of service here:</p>\n<ul>\n<li>Monster API Support: <a href=\"mailto:support@monsterapi.ai\">support@monsterapi.ai</a></li>\n<li><a href=\"https://monsterapi.ai/terms-of-service\">Terms of Service</a></li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"13759598","collectionId":"53a01eb2-2079-45de-8a1f-23fe45061461","publishedId":"2s8ZDVZ3Yi","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-01-17T17:53:11.000Z"},"item":[{"name":"Text to Image","id":"03b0fb36-ba8d-4ebf-b6e6-24e9ce4e4e55","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"Bearer 456"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"","description":"<blockquote>\n<p>All the AI models are executed asynchronously on Monster API. </p>\n</blockquote>\n<h4 id=\"text-to-image-api\"><strong>Text to Image API:</strong></h4>\n<p>Text to image API allows you to generate an image that looks similar to your provided textual instruction (prompt) using Stable Diffusion v1.5 model.</p>\n<p>Text to Image model requires a text prompt as an input to render images that are conditioned on your provided text prompt.</p>\n<p>You may further optimise the quality of output images by passing additional parameters like:</p>\n<ol>\n<li><strong>Steps:</strong> Number of sampling steps (more steps can lead to better results but it also leads to higher cost)</li>\n<li><strong>Negative Prompt:</strong> You can define the elements that you don't want in the final image</li>\n<li><strong>Samples:</strong> Defines the no. of images to be generated in a request (more images leads to higher cost)</li>\n<li><strong>Aspect ratio:</strong> Defines the shape/resolution of output images: Square, Landscape or Portrait</li>\n<li><strong>Guidance scale:</strong> It defines how much the output image should follow your provided text prompt.</li>\n</ol>\n<p>MonsterAPI Text to Image API is highly optimised and costs as low as $5* for 1000 image generations.</p>\n<blockquote>\n<p>* Pricing varies on factors like the processing time, sampling steps and other request parameters. </p>\n</blockquote>\n<h4 id=\"pre-requisites\"><strong>Pre-requisites:</strong></h4>\n<p>We assume that you have your x-api-key and Auth Token handy. If you do not have one already, then follow these steps first:</p>\n<ol>\n<li>Sign up on <a href=\"https://monsterapi.ai/signup\">MonsterAPI website</a> and visit \"Auth Keys\" section to generate a new key.</li>\n<li>Copy the generated keys as they'd be necessary for sending API requests.</li>\n<li>Use your x-api-key and Authorization Bearer token in Header with every request.</li>\n</ol>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">headers = {\n  'x-api-key': '123',\n  'Authorization': 'Bearer 456'\n}\n\n</code></pre>\n<h4 id=\"text-to-image-api-examples\">Text to Image API examples:</h4>\n<p>This REST API works asynchronously and accepts the requests received from send-request API, for which the request status can be viewed using fetch-status API.</p>\n<p>This collection shows 2 examples on how to send request and fetch the request status for stable diffusion v1.5 model execution.</p>\n<ol>\n<li><strong>Example body for Text to Image Send Request:</strong></li>\n</ol>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">\"model\": \"txt2img\",\n\"data\": {\n    \"prompt\": \"\",\n    \"negprompt\": \"\",\n    \"samples\": 1,\n    \"steps\": 50,\n    \"aspect_ratio\": \"square\",\n    \"guidance_scale\": 12.5,\n    \"seed\": 2321\n  }\n\n</code></pre>\n<p><strong>The parameters passed in</strong> <strong><code>data</code></strong> <strong>list are described below:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Value type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>prompt</td>\n<td>string</td>\n<td>Your input text prompt</td>\n<td>Required</td>\n</tr>\n<tr>\n<td>negprompt</td>\n<td>string</td>\n<td>Negative text prompt</td>\n<td>Optional</td>\n</tr>\n<tr>\n<td>samples</td>\n<td>integer</td>\n<td>No. of images to be generated.  <br />Allowed range: 1-4</td>\n<td>Optional  <br />(Default: 1)</td>\n</tr>\n<tr>\n<td>steps</td>\n<td>integer</td>\n<td>Sampling steps per image.  <br />Allowed range 30-500</td>\n<td>Optional  <br />(Default: 30)</td>\n</tr>\n<tr>\n<td>aspect_ratio</td>\n<td>string</td>\n<td>Allowed values: square, landscape, portrait</td>\n<td>Optional  <br />(Default: square)</td>\n</tr>\n<tr>\n<td>guidance_scale</td>\n<td>float</td>\n<td>Prompt guidance scale</td>\n<td>Optional  <br />(Default: 7.5)</td>\n</tr>\n<tr>\n<td>seed</td>\n<td>integer</td>\n<td>Randum number used to initialize the image generation</td>\n<td>Optional  <br />(Default: random)</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<p><strong>2. Example body for Text to Image Fetch Request Status:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">\"process_id\" :  \"\"\n\n</code></pre>\n<p><strong>The parameters passed in above API request are described below:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Value type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>process_id</td>\n<td>string</td>\n<td>Process ID received in response of send request API</td>\n<td>Required</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"query":[],"variable":[]}},"response":[{"id":"bf5de16a-ae04-4a9c-9901-b40b8eb0ee01","name":"Send request","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer 456"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"model\": \"txt2img\",\n    \"data\": {\n        \"prompt\" : \"highly detailed photo of Cute face of Lionel Messi, 3 year old, unreal engine, cinematic lighting, 8K, dark background, face in focus, (by Alyssa Monks:1.1), by Joseph Lorusso, by Lilia Alvarado\",\n        \"negprompt\": \"lowres, signs, memes, labels, text, food, text, error, mutant, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, made by children, caricature, ugly, boring, sketch, lacklustre, repetitive, cropped, (long neck), facebook, youtube, body horror, out of frame, mutilated, tiled, frame, border, porcelain skin, doll like, doll, bad quality, cartoon, lowres, meme, low quality, worst quality, ugly, disfigured, inhuman\",\n        \"samples\" : 1,\n        \"steps\" : 50,\n        \"aspect_ratio\" : \"square\",\n        \"guidance_scale\": 12.5,\n        \"seed\": 2321\n        }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.monsterapi.ai/apis/add-task"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Request accepted successfully\",\n    \"process_id\": \"058c604c-aacb-11ed-a970-d78ebbbbe581\"\n}"},{"id":"4ff8d7f6-74f6-4e2e-951c-a7579a2ba0bf","name":"Fetch request status","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer 456"}],"body":{"mode":"raw","raw":"{\n    \"process_id\" :  \"058c604c-aacb-11ed-a970-d78ebbbbe581\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.monsterapi.ai/apis/task-status"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Request processed successfully\",\n    \"response_data\": {\n        \"process_id\": \"058c604c-aacb-11ed-a970-d78ebbbbe581\",\n        \"status\": \"COMPLETED\",\n        \"result\": {\n            \"output\": [\n                \"https://processed-model-result.s3.us-east-2.amazonaws.com/058c604c-aacb-11ed-a970-d78ebbbbe581_0.png\"\n            ]\n        },\n        \"credit_used\": 5,\n        \"overage\": 0\n    }\n}"}],"_postman_id":"03b0fb36-ba8d-4ebf-b6e6-24e9ce4e4e55"},{"name":"Text to Image - SDXL","id":"37336bc8-7a4b-41fe-b253-6a6f7ba63c82","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"Bearer 456"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"","description":"<blockquote>\n<p>All the AI models are executed asynchronously on Monster API. </p>\n</blockquote>\n<h4 id=\"text-to-image-sdxl-api\"><strong>Text to Image SDXL API:</strong></h4>\n<p>Text to image SD XL API allows you to generate an image that looks similar to your provided text prompt using Stable Diffusion XL model.</p>\n<p>Text to Image Stable Diffusion XL model requires a text prompt as an input to render images that are conditioned on your provided text prompt.</p>\n<p>You may further optimise the quality of output images by passing additional parameters like:</p>\n<ol>\n<li><strong>Steps:</strong> Number of sampling steps (more steps can lead to better results but it also leads to higher cost)</li>\n<li><strong>Negative Prompt:</strong> You can define the elements that you don't want in the final image</li>\n<li><strong>Samples:</strong> Defines the no. of images to be generated in a request (more images leads to higher cost)</li>\n<li><strong>Aspect ratio:</strong> Defines the shape/resolution of output images: Square, Landscape or Portrait</li>\n<li><strong>Guidance scale:</strong> It defines how much the output image should follow your provided text prompt.</li>\n</ol>\n<p>MonsterAPI Text to Image API is highly optimised and costs as low as $8* for 1000 image generations.</p>\n<blockquote>\n<p>* Pricing varies on factors like the processing time, sampling steps and other request parameters. </p>\n</blockquote>\n<h4 id=\"pre-requisites\"><strong>Pre-requisites:</strong></h4>\n<p>We assume that you have your x-api-key and Auth Token handy. If you do not have one already, then follow these steps first:</p>\n<ol>\n<li>Sign up on <a href=\"https://monsterapi.ai/signup\">MonsterAPI website</a> and visit \"Auth Keys\" section to generate a new key.</li>\n<li>Copy the generated keys as they'd be necessary for sending API requests.</li>\n<li>Use your x-api-key and Authorization Bearer token in Header with every request.</li>\n</ol>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">headers = {\n  'x-api-key': '123',\n  'Authorization': 'Bearer 456'\n}\n\n</code></pre>\n<h4 id=\"text-to-image-sdxl-api-examples\">Text to Image SDXL API examples:</h4>\n<p>This REST API works asynchronously and accepts the requests received from send-request API, for which the request status can be viewed using fetch-status API.</p>\n<p>This collection shows 2 examples on how to send request and fetch the request status for sdxl-base model execution.</p>\n<ol>\n<li><strong>Example body for Text to Image SDXL Send Request:</strong></li>\n</ol>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">\"model\": \"sdxl-base\",\n\"data\": {\n    \"prompt\": \"\",\n    \"negprompt\": \"\",\n    \"samples\": 1,\n    \"steps\": 50,\n    \"aspect_ratio\": \"square\",\n    \"guidance_scale\": 12.5,\n    \"seed\": 2321\n  }\n\n</code></pre>\n<p><strong>The parameters passed in</strong> <strong><code>data</code></strong> <strong>list are described below:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Value type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>prompt</td>\n<td>string</td>\n<td>Your input text prompt</td>\n<td>Required</td>\n</tr>\n<tr>\n<td>negprompt</td>\n<td>string</td>\n<td>Negative text prompt</td>\n<td>Optional</td>\n</tr>\n<tr>\n<td>samples</td>\n<td>integer</td>\n<td>No. of images to be generated.  <br />Allowed range: 1-4</td>\n<td>Optional  <br />(Default: 1)</td>\n</tr>\n<tr>\n<td>steps</td>\n<td>integer</td>\n<td>Sampling steps per image.  <br />Allowed range 30-500</td>\n<td>Optional  <br />(Default: 30)</td>\n</tr>\n<tr>\n<td>aspect_ratio</td>\n<td>string</td>\n<td>Allowed values: square, landscape, portrait</td>\n<td>Optional  <br />(Default: square)</td>\n</tr>\n<tr>\n<td>guidance_scale</td>\n<td>float</td>\n<td>Prompt guidance scale</td>\n<td>Optional  <br />(Default: 7.5)</td>\n</tr>\n<tr>\n<td>seed</td>\n<td>integer</td>\n<td>Randum number used to initialize the image generation</td>\n<td>Optional  <br />(Default: random)</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<p><strong>2. Example body for Text to Image SDXL Fetch Request Status:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">\"process_id\" :  \"\"\n\n</code></pre>\n<p><strong>The parameters passed in above API request are described below:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Value type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>process_id</td>\n<td>string</td>\n<td>Process ID received in response of send request API</td>\n<td>Required</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"query":[],"variable":[]}},"response":[{"id":"3319c169-f325-4bed-8b05-b820d12d71bc","name":"Send request","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer 456"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"model\": \"sdxl-base\",\n    \"data\": {\n        \"prompt\" : \"Photo of an astronaut riding a llama on Mars\",\n        \"negprompt\": \"lowres, signs, memes, labels, text, food, text, error, mutant, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, made by children, caricature, ugly, boring, sketch, lacklustre, repetitive, cropped, (long neck), facebook, youtube, body horror, out of frame, mutilated, tiled, frame, border, porcelain skin, doll like, doll, bad quality, cartoon, lowres, meme, low quality, worst quality, ugly, disfigured, inhuman\",\n        \"samples\" : 1,\n        \"steps\" : 50,\n        \"aspect_ratio\" : \"square\",\n        \"guidance_scale\": 12.5,\n        \"seed\": 2321\n        }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.monsterapi.ai/apis/add-task"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Request accepted successfully\",\n    \"process_id\": \"093212f3-3209-11ee-9434-af0e00a0e85c\"\n}"},{"id":"38e97eb6-5273-4843-9f15-7be604b15130","name":"Fetch request status","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer 456"}],"body":{"mode":"raw","raw":"{\n    \"process_id\" :  \"093212f3-3209-11ee-9434-af0e00a0e85c\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.monsterapi.ai/apis/task-status"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Request processed successfully\",\n    \"response_data\": {\n        \"process_id\": \"093212f3-3209-11ee-9434-af0e00a0e85c\",\n        \"status\": \"COMPLETED\",\n        \"result\": {\n            \"output\": [\n                \"https://processed-model-result.s3.us-east-2.amazonaws.com/093212f3-3209-11ee-9434-af0e00a0e85c_0.png\"\n            ]\n        },\n        \"credit_used\": 8,\n        \"overage\": 0\n    }\n}"}],"_postman_id":"37336bc8-7a4b-41fe-b253-6a6f7ba63c82"},{"name":"Image to Image","id":"5af3aaa8-5ddf-4774-9066-78fd61ee628f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"Bearer 456"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"","description":"<blockquote>\n<p>All the AI models are executed asynchronously on Monster API. </p>\n</blockquote>\n<h4 id=\"image-to-image-api\"><strong>Image to Image API:</strong></h4>\n<p>Image to image API allows you to generate that resembles an original image provided by you, using stable diffusion model.</p>\n<p>Image to Image model requires a text prompt and an initial image url as the inputs to render a new image which has similar style and content to the initial image, but different details and composition.</p>\n<p>MonsterAPI Image to Image API is highly optimised and costs as low as $5* for 1000 image generations.</p>\n<blockquote>\n<p>* Pricing varies on factors like the processing time, sampling steps and other request parameters. </p>\n</blockquote>\n<h4 id=\"pre-requisites\"><strong>Pre-requisites:</strong></h4>\n<p>We assume that you have your x-api-key and Auth Token handy. If you do not have one already, then follow these steps first:</p>\n<ol>\n<li>Sign up on <a href=\"https://monsterapi.ai/signup\">MonsterAPI website</a> and visit \"Auth Keys\" section to generate a new key.</li>\n<li>Copy the generated keys as they'd be necessary for sending API requests.</li>\n<li>Use your x-api-key and Authorization Bearer token in Header with every request.</li>\n</ol>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">headers = {\n  'x-api-key': '123',\n  'Authorization': 'Bearer 456'\n}\n\n</code></pre>\n<p>This collection shows 2 examples on how to send request and fetch the request status.</p>\n<ol>\n<li><strong>Example body for Image to Image Send Request:</strong></li>\n</ol>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">\"model\": \"img2img\",\n\"data\": {\n    \"prompt\": \"\",\n    \"negprompt\": \"\",\n    \"steps\": 50,\n    \"init_image_url\": \"\",\n    \"strength\": \"\",\n    \"guidance_scale\": 12.5,\n    \"seed\": 2321\n  }\n\n</code></pre>\n<p><strong>The parameters passed in</strong> <strong><code>data</code></strong> <strong>list are described below:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Value type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>prompt</td>\n<td>string</td>\n<td>Your input text prompt</td>\n<td>Required</td>\n</tr>\n<tr>\n<td>negprompt</td>\n<td>string</td>\n<td>Negative text prompt</td>\n<td>Optional</td>\n</tr>\n<tr>\n<td>steps</td>\n<td>integer</td>\n<td>Sampling steps per image.  <br />Allowed range 30-500</td>\n<td>Optional  <br />(Default: 30)</td>\n</tr>\n<tr>\n<td>init_image_url</td>\n<td>string</td>\n<td>Original Image URL</td>\n<td>Required</td>\n</tr>\n<tr>\n<td>strength</td>\n<td>float</td>\n<td>Controls how much the original image will be modified.  <br />Allowed range 0.0-1.0</td>\n<td>Optional  <br />(Default: 0.75)</td>\n</tr>\n<tr>\n<td>guidance_scale</td>\n<td>float</td>\n<td>Prompt guidance scale</td>\n<td>Optional  <br />(Default: 7.5)</td>\n</tr>\n<tr>\n<td>seed</td>\n<td>integer</td>\n<td>Randum number used to initialize the image generation</td>\n<td>Optional  <br />(Default: random)</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<p><strong>2. Example body for Image to Image Fetch Request Status:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">\"process_id\" :  \"\"\n\n</code></pre>\n<p><strong>The parameters passed in above API request are described below:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Value type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>process_id</td>\n<td>string</td>\n<td>Process ID received in response of send request API</td>\n<td>Required</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"query":[],"variable":[]}},"response":[{"id":"00c24012-e889-42b8-9710-90ee45485a72","name":"Send request","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer 456"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"model\": \"img2img\",\n    \"data\": {\n        \"prompt\" : \"A fantasy landscape, beautiful, photorealistic, trending on artstation\",\n        \"negprompt\": \"\",\n        \"steps\" : 50,\n        \"guidance_scale\": 12.5,\n        \"init_image_url\": \"https://i.pinimg.com/originals/1c/31/8e/1c318ed6a76b5c1573f0f816516beea3.jpg\",\n        \"strength\": 0.75,\n        \"seed\": 2321\n        }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.monsterapi.ai/apis/add-task"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Request accepted successfully\",\n    \"process_id\": \"6699be46-aad0-11ed-a45e-b161ab1b7fd3\"\n}"},{"id":"a65d6639-32b5-4fa0-adf0-71ca2e4b7e2e","name":"Fetch request status","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer 456"}],"body":{"mode":"raw","raw":"{\n    \"process_id\" :  \"6699be46-aad0-11ed-a45e-b161ab1b7fd3\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.monsterapi.ai/apis/task-status"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Request processed successfully\",\n    \"response_data\": {\n        \"process_id\": \"6699be46-aad0-11ed-a45e-b161ab1b7fd3\",\n        \"status\": \"COMPLETED\",\n        \"result\": {\n            \"output\": [\n                \"https://processed-model-result.s3.us-east-2.amazonaws.com/6699be46-aad0-11ed-a45e-b161ab1b7fd3_0.png\"\n            ]\n        },\n        \"credit_used\": 6,\n        \"overage\": 0\n    }\n}"}],"_postman_id":"5af3aaa8-5ddf-4774-9066-78fd61ee628f"},{"name":"Instruct-pix2pix","id":"3fcbe73c-52ea-4d42-8f6d-521519021d95","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"Bearer 456"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"","description":"<blockquote>\n<p>All the AI models are executed asynchronously on Monster API. </p>\n</blockquote>\n<h4 id=\"pix2pix-api\">Pix2Pix API:</h4>\n<p>Pix2Pix API allows you to edit any image by using simple text instructions. This API uses Instruct-pix2pix model made by <a href=\"https://www.timothybrooks.com/instruct-pix2pix/\">Timothy Brooks</a>.</p>\n<p>Pix2Pix model requires a text prompt and an initial image url as the inputs to render a new image which has similar style and content to the initial image, but different details and composition.</p>\n<p>The following file formats are supported: <code>jpg, jpeg, png</code></p>\n<p>You may further optimise the outputs by passing additional parameters like:</p>\n<ol>\n<li><strong>Steps:</strong> Number of sampling steps (more steps can lead to better results but it also leads to higher cost)</li>\n<li><strong>Guidance scale:</strong> It defines how much the output image should follow your text prompt.</li>\n<li><strong>Image guidance scale:</strong> It defines how much the output image should follow your provided initial image.</li>\n</ol>\n<p>MonsterAPI Pix2Pix API is highly optimised and costs as low as $5* for 1000 image edits.</p>\n<blockquote>\n<p>* Pricing varies on factors like the processing time and parameters passed. </p>\n</blockquote>\n<h4 id=\"pre-requisites\"><strong>Pre-requisites:</strong></h4>\n<p>We assume that you have your x-api-key and Auth Token handy. If you do not have one already, then follow these steps first:</p>\n<ol>\n<li>Sign up on <a href=\"https://monsterapi.ai/signup\">MonsterAPI website</a> and visit \"Auth Keys\" section to generate a new key.</li>\n<li>Copy the generated keys as they'd be necessary for sending API requests.</li>\n<li>Use your x-api-key and Authorization Bearer token in Header with every request.</li>\n</ol>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">headers = {\n  'x-api-key': '123',\n  'Authorization': 'Bearer 456'\n}\n\n</code></pre>\n<h4 id=\"pix2pix-api-examples\">Pix2Pix API examples:</h4>\n<p>This REST API works asynchronously and accepts the requests received from send-request API, for which the request status can be viewed using fetch-status API.</p>\n<p>This collection shows 2 examples on how to send request and fetch the request status for instruct-pix2pix model execution.</p>\n<ol>\n<li><strong>Example body for Pix2Pix Send Request:</strong></li>\n</ol>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">\"model\": \"pix2pix\",\n\"data\": {\n     \"prompt\" : \"\",\n     \"negprompt\": \"\",\n     \"steps\" : 50,\n     \"init_image_url\": \"\",\n     \"guidance_scale\": 12.5,\n     \"image_guidance_scale\": 1.5,\n     \"seed\": 29123\n}\n\n</code></pre>\n<p><strong>The parameters passed in</strong> <strong><code>data</code></strong> <strong>list are described below:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Value type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>prompt</td>\n<td>string</td>\n<td>Your input text prompt</td>\n<td>Required</td>\n</tr>\n<tr>\n<td>negprompt</td>\n<td>string</td>\n<td>Negative text prompt</td>\n<td>Optional</td>\n</tr>\n<tr>\n<td>steps</td>\n<td>integer</td>\n<td>Sampling steps per image.  <br />Allowed range 30-500</td>\n<td>Optional  <br />(Default: 30)</td>\n</tr>\n<tr>\n<td>init_image_url</td>\n<td>string</td>\n<td>Original Image URL</td>\n<td>Required</td>\n</tr>\n<tr>\n<td>guidance_scale</td>\n<td>float</td>\n<td>Prompt guidance scale.  <br />Allowed range 5-50</td>\n<td>Optional  <br />(Default: 7.5)</td>\n</tr>\n<tr>\n<td>image_guidance_scale</td>\n<td>float</td>\n<td>Original image guidance scale.  <br />Allowed range 0-5</td>\n<td>Optional  <br />(Default: 1.5)</td>\n</tr>\n<tr>\n<td>seed</td>\n<td>integer</td>\n<td>Randum number used to initialize the image generation</td>\n<td>Optional  <br />(Default: random)</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<p><strong>2. Example body for Image to Image Fetch Request Status:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">\"process_id\" :  \"\"\n\n</code></pre>\n<p><strong>The parameters passed in above API request are described below:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Value type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>process_id</td>\n<td>string</td>\n<td>Process ID received in response of send request API</td>\n<td>Required</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"query":[],"variable":[]}},"response":[{"id":"39df4ef7-ad5a-4984-ba9a-4f7babf0c7c2","name":"Send request","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer 456"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"model\": \"pix2pix\",\n    \"data\": {\n        \"prompt\" : \"Add mountains in background\",\n        \"negprompt\": \"\",\n        \"steps\" : 50,\n        \"guidance_scale\": 12.5,\n        \"init_image_url\": \"https://img.freepik.com/free-photo/young-curly-man-with-thumbs-up-isolated-blue-wall_231208-1245.jpg\",\n        \"image_guidance_scale\": 1.5,\n        \"seed\": 29123\n        }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.monsterapi.ai/apis/add-task"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Request accepted successfully\",\n    \"process_id\": \"f0ca09e9-aad1-11ed-aed8-5d93517c8890\"\n}"},{"id":"761e68cc-968a-49fd-b699-9a387f57be10","name":"Fetch request status","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer 456"}],"body":{"mode":"raw","raw":"{\n    \"process_id\" :  \"f0ca09e9-aad1-11ed-aed8-5d93517c8890\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.monsterapi.ai/apis/task-status"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Request processed successfully\",\n    \"response_data\": {\n        \"process_id\": \"f0ca09e9-aad1-11ed-aed8-5d93517c8890\",\n        \"status\": \"COMPLETED\",\n        \"result\": {\n            \"output\": [\n                \"https://processed-model-result.s3.us-east-2.amazonaws.com/f0ca09e9-aad1-11ed-aed8-5d93517c8890_0.png\"\n            ]\n        },\n        \"credit_used\": 5,\n        \"overage\": 0\n    }\n}"}],"_postman_id":"3fcbe73c-52ea-4d42-8f6d-521519021d95"},{"name":"Speech to Text","id":"43984dee-ef44-40fe-b382-5fdbb0c3feab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"Bearer 456"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"","description":"<blockquote>\n<p>All the AI models are executed asynchronously on Monster API.<br />Thus, every AI Model API has 2 endpoints: </p>\n</blockquote>\n<h4 id=\"speech-to-text-api\">Speech to Text API:</h4>\n<p>Speech to Text API allows you to transcribe any audio file using OpenAI-Whisper Large-v2 model.</p>\n<p>OpenAI Whisper is an open-source automatic speech recognition (ASR) system trained on 680,000 hours of multilingual and multitask supervised data collected from the web.</p>\n<p><code>Large-v2</code> is a biggest version of whisper model and offers superior transcription quality.</p>\n<p>MonsterAPI speech to text API costs as low as $0.075* for 1 hour of audio file transcription.</p>\n<blockquote>\n<p>* Pricing varies on factors like the processing time and the length of file to be transcribed. </p>\n</blockquote>\n<p><strong>Speech to Text API also supports Speaker Diarization.</strong></p>\n<ul>\n<li>Speaker diarization is a technique used in speech processing to partition an audio stream into segments, each corresponding to a different speaker in the conversation.</li>\n<li>It is particularly useful in scenarios where there are multiple speakers, and their individual contributions need to be separated.</li>\n</ul>\n<p>Speech to text API requires only a file URL that you'd like to transcribe.</p>\n<p>The file URL must end in an extension of one of these supported file formats:</p>\n<p><code>m4a, mp3, mp4, mpeg, mpga, wav, webm, ogg</code></p>\n<p>Our API supports both videos and audio files.</p>\n<h4 id=\"pre-requisites\"><strong>Pre-requisites:</strong></h4>\n<p>We assume that you have your x-api-key and Auth Token handy. If you do not have one already, then follow these steps first:</p>\n<ol>\n<li>Sign up on <a href=\"https://monsterapi.ai/signup\">MonsterAPI website</a> and visit \"Auth Keys\" section to generate a new key.</li>\n<li>Copy the generated keys as they'd be necessary for sending API requests.</li>\n<li>Use your x-api-key and Authorization Bearer token in Header with every request.</li>\n</ol>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">headers = {\n  'x-api-key': '123',\n  'Authorization': 'Bearer 456'\n}\n\n</code></pre>\n<h4 id=\"speech-to-text-api-examples\">Speech to Text API examples:</h4>\n<p>This REST API works asynchronously and accepts the requests received from send-request API, for which the request status can be viewed using fetch-status API.</p>\n<p>This collection shows 2 examples on how to send request and fetch the request status for a speech to text transcription use-case.</p>\n<ol>\n<li><strong>Example body for Speech to Text Send Request:</strong></li>\n</ol>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">{\n    \"model\": \"whisper\",\n    \"data\": {\n        \"file\": \"https://upload.wikimedia.org/wikipedia/commons/2/2d/A_J_Cook_Speech_from_Lansbury's_Labour_Weekly.ogg\",\n        \"transcription_format\": \"srt\",\n        \"prompt\": \"\",\n        \"language\": \"en\"\n    }\n}\n\n</code></pre>\n<p><strong>The parameters passed in</strong> <strong><code>data</code></strong> <strong>list are described below:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Value type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>file</td>\n<td>string</td>\n<td>URL of a file that needs to be transcribed. Supported file formats: <code>m4a, mp3, mp4, mpeg, mpga, wav, webm, ogg</code></td>\n<td>Required</td>\n</tr>\n<tr>\n<td>diarize</td>\n<td>boolean</td>\n<td>When diarize is set to true, an embedding model will be employed to identify speakers, along with their respective transcripts and durations. Allowed options: true, false  <br />  <br />Please note: If diarize is true then supported <code>transcription_format</code> is <code>\"text\"</code> or <code>\"dialogue\"</code>.</td>\n<td>Optional  <br />(Default: \"false\")</td>\n</tr>\n<tr>\n<td>transcription_format</td>\n<td>string</td>\n<td>Defines the output format.  <br />Allowed options:  <br /><code>\"text\", \"srt\", \"word\", \"verbose\"</code></td>\n<td>Optional  <br />(Default: \"text\")</td>\n</tr>\n<tr>\n<td>prompt</td>\n<td>string</td>\n<td>Initial prompt to the whisper model for recognizing words correctly.  <br />You can pass a comma separated list of words.</td>\n<td>Optional  <br />(Default: \"\")</td>\n</tr>\n<tr>\n<td>remove_silence</td>\n<td>boolean</td>\n<td>If set as true, it will use VAD (Voice Activity Detection) filter to remove silent parts of the audio and then perform transcript with only audible parts.  <br />Allowed options:  <br /><code>true, false</code></td>\n<td>Optional  <br />(Default: false)</td>\n</tr>\n<tr>\n<td>language</td>\n<td>string</td>\n<td>Defines the language for transcription output. Translates the transcript to your preferred language.  <br />Allowed options:  <br /><code>'af', 'am', 'ar', 'as', 'az', 'ba', 'be', 'bg', 'bn', 'bo', 'br', 'bs', 'ca', 'cs', 'cy', 'da', 'de', 'el', 'en', 'es', 'et', 'eu', 'fa', 'fi', 'fo', 'fr', 'gl', 'gu', 'ha', 'haw', 'he', 'hi', 'hr', 'ht', 'hu', 'hy', 'id', 'is', 'it', 'ja', 'jw', 'ka', 'kk', 'km', 'kn', 'ko', 'la', 'lb', 'ln', 'lo', 'lt', 'lv', 'mg', 'mi', 'mk', 'ml', 'mn', 'mr', 'ms', 'mt', 'my', 'ne', 'nl', 'nn', 'no', 'oc', 'pa', 'pl', 'ps', 'pt', 'ro', 'ru', 'sa', 'sd', 'si', 'sk', 'sl', 'sn', 'so', 'sq', 'sr', 'su', 'sv', 'sw', 'ta', 'te', 'tg', 'th', 'tk', 'tl', 'tr', 'tt', 'uk', 'ur', 'uz', 'vi', 'yi', 'yo', 'zh'</code></td>\n<td>Optional  <br />(Default: \"en\")</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<p><strong>2. Example body for Image to Image Fetch Request Status:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">\"process_id\" :  \"\"\n\n</code></pre>\n<p><strong>The parameters passed in above API request are described below:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Value type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>process_id</td>\n<td>string</td>\n<td>Process ID received in response of send request API</td>\n<td>Required</td>\n</tr>\n</tbody>\n</table>\n</div><p>That's it! You only need these 2 requests to process your audio and video files and thus get a high fidelity transcription at ultra low cost.</p>\n<h3 id=\"examples\">Examples:</h3>\n<p><strong>Example input for a speech to text API request for</strong> <b>plain text</b> <strong>format:</strong></p>\n<ul>\n<li><strong>file:</strong> \"<a href=\"https://upload.wikimedia.org/wikipedia/commons/9/9e/2008_04_18_Tory_Christman_quote2.ogg\">https://upload.wikimedia.org/wikipedia/commons/9/9e/2008_04_18_Tory_Christman_quote2.ogg\"</a></li>\n<li><strong>transcription_format:</strong> \"text\"</li>\n</ul>\n<p><strong>Expected output:</strong></p>\n<blockquote>\n<p>Well, they should find out. I would like to know why was it suspended? Why is Mark suspended? What are the violations? Okay, because if the Church of Scientology is just paying them off, that's kind of weird. </p>\n</blockquote>\n<p>As you may notice in the above output, we received text output in plain text format. It doesn't include any timestamps.</p>\n<h4 id=\"looking-for-timestamp-for-sequence-or-words-checkout-next-examples\">Looking for timestamp for sequence or words? Checkout next examples:</h4>\n<p><strong>Example input for a speech to text API request for</strong> <b>srt</b> <strong>format:</strong></p>\n<ul>\n<li><strong>file:</strong> \"<a href=\"https://upload.wikimedia.org/wikipedia/commons/9/9e/2008_04_18_Tory_Christman_quote2.ogg\">https://upload.wikimedia.org/wikipedia/commons/9/9e/2008_04_18_Tory_Christman_quote2.ogg\"</a></li>\n<li><strong>transcription_format:</strong> \"srt\"</li>\n</ul>\n<p><strong>Expected output:</strong></p>\n<blockquote>\n<p>\"00:00:00,000 00:00:08,000:: Well, they should find out. I would like to know why was it suspended? Why is Mark suspended? What are the violations?\",<br />\"00:00:08,000 00:00:12,000:: Okay, because if the Church of Scientology is just paying them off, that's kind of weird.\" </p>\n</blockquote>\n<p>We received json output in srt format with sequence timestamps.</p>\n<p>Speech to Text API also supports <strong>word level timestamps</strong>.</p>\n<p>You can send a request as follows:</p>\n<p><strong>Example input for a speech to text API request for</strong> <b>word level timestamp</b> <strong>format:</strong></p>\n<ul>\n<li><strong>file:</strong> \"<a href=\"https://upload.wikimedia.org/wikipedia/commons/9/9e/2008_04_18_Tory_Christman_quote2.ogg\">https://upload.wikimedia.org/wikipedia/commons/9/9e/2008_04_18_Tory_Christman_quote2.ogg\"</a></li>\n<li><strong>transcription_format:</strong> \"word\"</li>\n</ul>\n<p><strong>Expected output:</strong></p>\n<blockquote>\n<p>\"00:00:00,000 00:00:00,360:: Well,\",<br />\"00:00:00,420 00:00:00,540:: they\",<br />\"00:00:00,540 00:00:00,880:: should\",<br />\"00:00:00,880 00:00:01,260:: find\",<br />..<br />..<br />..<br />\"00:00:10,919 00:00:11,160:: off,\",<br />\"00:00:11,220 00:00:11,480:: that's\",<br />\"00:00:11,480 00:00:11,619:: kind\",<br />\"00:00:11,619 00:00:11,720:: of\",<br />\"00:00:11,720 00:00:12,000:: weird.\" </p>\n</blockquote>\n<p>We received json output with each word carrying its start and end timestamp.</p>\n<h4 id=\"getting-other-details-related-to-transcript\">Getting other details related to transcript:</h4>\n<p>To get details such as language detected, duration of audio and much more information, you can send <code>transcription_format</code> as <code>verbose</code></p>\n<p>The expected JSON output will look something like this:</p>\n<blockquote>\n<p>\"duration\": \"12.0424375\",<br />\"language\": \"en\",<br />\"text\": \" Well, they should find out. I would like to know why was it suspended? Why is Mark suspended? What are the violations? Okay, because if the Church of Scientology is just paying them off, that's kind of weird.\",<br />\"language_probability\": \"0.995022177696228\",<br />\"vad_options\": \"\",<br />\"segments\": [<br />{<br />\"start\": \"0.0\",<br />\"temperature\": \"0.0\",<br />\"words\": \"\",<br />\"avg_logprob\": \"-0.30796018861374763\",<br />\"no_speech_prob\": \"0.8712119460105896\",<br />\"end\": \"8.0\",<br />\"id\": \"1\",<br />\"text\": \" Well, they should find out. I would like to know why was it suspended? Why is Mark suspended? What are the violations?\",<br />\"seek\": \"1204\",<br />\"compression_ratio\": \"1.368421052631579\"<br />},<br />{<br />\"start\": \"8.0\",<br />\"temperature\": \"0.0\",<br />\"words\": \"\",<br />\"avg_logprob\": \"-0.30796018861374763\",<br />\"no_speech_prob\": \"0.8712119460105896\",<br />\"end\": \"12.0\",<br />\"id\": \"2\",<br />\"text\": \" Okay, because if the Church of Scientology is just paying them off, that's kind of weird.\",<br />\"seek\": \"1204\",<br />\"compression_ratio\": \"1.368421052631579\"<br />}<br />] </p>\n</blockquote>\n<p>Based on your use-case requirement, you may choose any formatting type for the transcription output.</p>\n","urlObject":{"query":[],"variable":[]}},"response":[{"id":"422f325b-d8f4-4b59-b5d2-5ead85dd8478","name":"Send request","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer 456"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"model\": \"whisper\",\n    \"data\": {\n        \"file\": \"https://upload.wikimedia.org/wikipedia/commons/2/2d/A_J_Cook_Speech_from_Lansbury%27s_Labour_Weekly.ogg\",\n        \"transcription_format\": \"srt\",\n        \"prompt\": \"\",\n        \"language\": \"en\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.monsterapi.ai/apis/add-task"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Request accepted successfully\",\n    \"process_id\": \"916fd4c1-d2fa-11ed-b90e-49a0369313e3\"\n}"},{"id":"61fd50a5-a755-42f4-a327-5fccd28ebbc1","name":"Fetch request status","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer 456"}],"body":{"mode":"raw","raw":"{\n    \"process_id\" :  \"f0ca09e9-aad1-11ed-aed8-5d93517c8890\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.monsterapi.ai/apis/task-status"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Request processed successfully\",\n    \"response_data\": {\n        \"process_id\": \"916fd4c1-d2fa-11ed-b90e-49a0369313e3\",\n        \"status\": \"COMPLETED\",\n        \"result\": {\n            \"text\": \" In the field of the workers of Britain, a million miners with their wives and children, something like one tenth of the whole population of this country, have long called aloud for justice. If you were to believe all the things the capitalist press say about us, you would think that we were the most terrible people on earth. They tell you that we are never satisfied, that we are always striking, that we are never content with our wages, with our hours, or with the houses we live in. And yet, I want not only to defend the miners, but to appeal to the national conscience, to recognize the justice of our claim for safety and economic security. Underneath all the grime and coal dust, miners are human and courageous beings. I have some right to speak for them, not only because I happen to be Secretary of the Miners' Federation, but because I myself have toiled for 21 years in the pits. I know what the miners' life is in those dark dungeons of despair. I know what the miners' wife's life is. I wonder if those who abused the miners were made to work even for one year in the pits, crawling nine hours a day down the hut's narrow gallery, lying half naked at the coal face, sweating at a narrow seam, working in water or in excessive heat, living in a miner's role, and taking home week by week a miner's average pay, with a risk of terrible mutilation and death ever present. I wonder if these people would be quite so sure that it was those paid agitators who made the miners struggle for better treatment. But this hard, grueling work, deep in the bowels of the earth, amidst the gas, heat, oil, and water, which every day takes toll of several lives and many injuries, has to be done. Britain's whole economic life depends upon it. How, then, is Britain going to treat our men, who work and die that she may live? Our case is simple. We ask for safety and economic security. Today, up and down our coal fields, miners and his family are faced with sheer starvation. He is desperate. He will not, he cannot, stand present conditions much longer. He would be a traitor to his wife and children if he did. Until he is given safety in the mines, adequate compensation, hours of labor that do not make him a mere coal-getting medium, decent living conditions, there can be no peace in the British coal fields. It is said the industry cannot fail. Then the industry must be reorganized and remodeled technically and scientifically. If present owners have failed to do this, then it must be taken out of their hands and run by the nation, not for private profit or for royalty owners, but for the benefit of the old people. The old idea will not work any longer. The miner has fought and lost and fought again. Once more he will fight, and together with all the workers of Britain, he will win the great battle of human freedom.\"\n        },\n        \"credit_used\": 4,\n        \"overage\": 0\n    }\n}"}],"_postman_id":"43984dee-ef44-40fe-b382-5fdbb0c3feab"},{"name":"Text to Speech - Bark","id":"b959e60f-3700-4a21-8f97-cf4ddc032bc4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"Bearer 456"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"","description":"<blockquote>\n<p>All the AI models are executed asynchronously on Monster API.<br />Thus, every AI Model API has 2 endpoints: </p>\n</blockquote>\n<h4 id=\"text-to-speech---bark-api\">Text to Speech - Bark API:</h4>\n<p>Text to Speech API allows you to convert text to an audio file using Suno AI Bark model.</p>\n<p>Bark is a transformer-based text-to-audio model created by <a href=\"https://suno.ai/\">Suno</a>. Bark can generate highly realistic, multilingual speech as well as other audio - including music, background noise and simple sound effects.</p>\n<p>Currently Bark audio outputs cannot be more than 14 seconds duration.</p>\n<p>MonsterAPI Text to speech Bark API costs as low as $0.015* for 10 seconds of audio generation.</p>\n<blockquote>\n<p>* Pricing varies on factors like the processing time and the text length to be converted. </p>\n</blockquote>\n<p>Text to Speech API requires only a text that you'd like to convert to audio.</p>\n<p>This REST API works asynchronously and accepts the requests received from send-request API, for which the request status can be viewed using fetch-status API.</p>\n<h4 id=\"pre-requisites\"><strong>Pre-requisites:</strong></h4>\n<p>We assume that you have your x-api-key and Auth Token handy. If you do not have one already, then follow these steps first:</p>\n<ol>\n<li>Sign up on <a href=\"https://monsterapi.ai/signup\">MonsterAPI website</a> and visit \"Auth Keys\" section to generate a new key.</li>\n<li>Copy the generated keys as they'd be necessary for sending API requests.</li>\n<li>Use your x-api-key and Authorization Bearer token in Header with every request.</li>\n</ol>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">headers = {\n  'x-api-key': '123',\n  'Authorization': 'Bearer 456'\n}\n\n</code></pre>\n<h4 id=\"text-to-speech-api-examples\">Text to Speech API examples:</h4>\n<p>This REST API works asynchronously and accepts the requests received from send-request API, for which the request status can be viewed using fetch-status API.</p>\n<p>This collection shows 2 examples on how to send request and fetch the request status for a text to speech generation use-case.</p>\n<ol>\n<li><strong>Example body for Text to Speech Send Request:</strong></li>\n</ol>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">{\n    \"model\": \"sunoai-bark\",\n    \"data\": {\n        \"prompt\": \"What's the meaning of life?\",\n        \"speaker\": \"en_speaker_2\",\n        \"sample_rate\": 26000,\n        \"text_temp\": 0.6,\n        \"waveform_temp\": 1.0\n    }\n}\n\n</code></pre>\n<p><strong>The parameters passed in</strong> <strong><code>data</code></strong> <strong>list are described below:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Value type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>prompt</td>\n<td>string</td>\n<td>Prompt is a text string that is going to be converted to an audio file</td>\n<td>Required</td>\n</tr>\n<tr>\n<td>speaker</td>\n<td>string</td>\n<td>Defines the language and speaker for speech. It should be in this format: {language}<em>speaker</em>{number}  <br />Allowed languages:  <br /><code>'de': 'German', 'en': 'English', 'es': 'Spanish', 'fr': 'French', 'hi': 'Hindi', 'it': 'Italian', 'ja': 'Japanese', 'ko': 'Korean', 'pl': 'Polish', 'pt': 'Portuguese', 'ru': 'Russian', 'tr': 'Turkish', 'zh': 'Chinese'</code>Supported numbers from 0 to 9.  <br />Example speaker value would look like:  <br /><code>en_speaker_7</code> or <code>pt_speaker_2</code></td>\n<td>Optional  <br />(Default: \"en_speaker_1\")</td>\n</tr>\n<tr>\n<td>sample_rate</td>\n<td>int</td>\n<td>Sampling rate for output audio.</td>\n<td>Optional  <br />(Default: 25000)</td>\n</tr>\n<tr>\n<td>text_temp</td>\n<td>float</td>\n<td>Temperature setting for text prompt. Supported range: 0.1 to 1.0</td>\n<td>Optional  <br />(Default: 0.5)</td>\n</tr>\n<tr>\n<td>waveform_temp</td>\n<td>float</td>\n<td>Temperature setting for audio waveform. Supported range: 0.1 to 1.0</td>\n<td>Optional  <br />(Default: 0.5)</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<p><strong>2. Example body for Text to Speech Fetch Request Status:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">\"process_id\" :  \"\"\n\n</code></pre>\n<p><strong>The parameters passed in above API request are described below:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Value type</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Required</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>process_id</td>\n<td>string</td>\n<td>Process ID received in response of send request API</td>\n<td>Required</td>\n</tr>\n</tbody>\n</table>\n</div><p>That's it! You only need these 2 requests to generate an audio file from your provided text prompt at ultra low cost.</p>\n<h3 id=\"examples\">Examples:</h3>\n<p><strong>Example input for a text to speech API request:</strong></p>\n<ul>\n<li><strong>prompt:</strong> \"What's the meaning of life?\"</li>\n<li><strong>speaker:</strong> en_speaker_2</li>\n<li><strong>sample_rate</strong>: 26000</li>\n<li><strong>text_temp</strong>: 0.6</li>\n<li><strong>waveform_temp</strong>: 1.0</li>\n</ul>\n<p><strong>Expected output audio file:</strong></p>\n<p><strong>Audio file link:</strong> <a href=\"https://processed-model-result.s3.us-east-2.amazonaws.com/2b8b6007-02aa-11ee-8044-f78708c74372_0.wav\">https://processed-model-result.s3.us-east-2.amazonaws.com/2b8b6007-02aa-11ee-8044-f78708c74372_0.wav</a></p>\n<p>As you may notice in the above output, we received an audio file link.</p>\n<p>Different sample rates, speaker, text and waveform temperature will result in different quality or texture of voice in the output audio file.</p>\n","urlObject":{"query":[],"variable":[]}},"response":[{"id":"c428930a-955e-4751-8fec-7f80f1bcd5e8","name":"Send request","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer 456"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"model\": \"sunoai-bark\",\n    \"data\": {\n        \"prompt\": \"What's the meaning of life?\",\n        \"speaker\": \"en_speaker_2\",\n        \"sample_rate\": 26000,\n        \"text_temp\": 0.6,\n        \"waveform_temp\": 1.0\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.monsterapi.ai/apis/add-task"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Request accepted successfully\",\n    \"process_id\": \"9c5b1b0c-04b4-11ee-b021-ed896a1be257\"\n}"},{"id":"c0a176c5-c0a0-486e-9b61-a671c0f70fff","name":"Fetch request status","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer 456"}],"body":{"mode":"raw","raw":"{\n    \"process_id\" :  \"9c5b1b0c-04b4-11ee-b021-ed896a1be257\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.monsterapi.ai/apis/task-status"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Request processed successfully\",\n    \"response_data\": {\n        \"process_id\": \"9c5b1b0c-04b4-11ee-b021-ed896a1be257\",\n        \"status\": \"COMPLETED\",\n        \"result\": {\n            \"output\": [\n                \"https://processed-model-result.s3.us-east-2.amazonaws.com/9c5b1b0c-04b4-11ee-b021-ed896a1be257_0.wav\"\n            ]\n        },\n        \"credit_used\": 18,\n        \"overage\": 0\n    }\n}"}],"_postman_id":"b959e60f-3700-4a21-8f97-cf4ddc032bc4"}],"event":[{"listen":"prerequest","script":{"id":"e9191b48-1528-4bea-8846-6db377a20352","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"7260de31-0a8f-4487-82e0-15c9cb6656a2","type":"text/javascript","exec":[""]}}],"variable":[{"key":"AdminAuthToken","value":""},{"key":"AuthToken","value":""},{"key":"x-api-key","value":""}]}