diff --git a/independent-publisher-connectors/Leap-Ai/README.md b/independent-publisher-connectors/Leap-Ai/README.md index 695ba332a..d11b028ef 100644 --- a/independent-publisher-connectors/Leap-Ai/README.md +++ b/independent-publisher-connectors/Leap-Ai/README.md @@ -1,68 +1,37 @@ # Leap AI -Add AI features to your app in minutes. -Generate images, edit them, fine tune models, retrieve text context and more with best-in-class APIs and SDKs. +Generate images, music, and more using Leap. -## Publisher: Chandra Sekhar +## Publisher: Chandra Sekhar, Troy Taylor ## Prerequisites -This API doesn't require any Authentication. +You are required to sign up for an account with [Leap](https://app.tryleap.ai/signup). + +## Obtaining Credentials +Once logged in to your account and you've created a project, you will find a link to the API Keys page on your project dashboard. ## Supported Operations -### [Leap AI API Documentation](https://docs.tryleap.ai/reference/inferencescontroller_create-1) - - - -### List All Models -This endpoint will return a list of all models for the workspace. - -### Create Model -This endpoint will create a new model - -### Upload Image Samples -Upload one or multiple image samples to a model. - -### Queue Training Job -This endpoint will queue a new model version to be trained. - -### List Inference Jobs -Retrieve all inferences for a specific model. - -### Generate Image -This endpoint will generate a new inference for a particular model. - -### Get Single Inference Job -This endpoint will retrieve a specific inference for a particular model. - -### Delete Inference -Retrieve all inferences for a specific model. - - - -## API Documentation -Visit [Start building with the Leap AI API ](https://docs.tryleap.ai/reference/inferencescontroller_create-1) page for further details. - -Visit [change log](https://guides.tryleap.ai/) for API Updates +### Get image jobs +Retrieve a list of inference jobs for a specific model. +### Generate an image +Generate an image by providing a text description. +### Get image job +Retrieve a single image generation job, including the URLs for the images generated. +### Delete image job +Delete the image job and all related images. +### Train model +Upload a few image URL samples and train a new model. Training usually takes 20-40 minutes. +### Get models +Retrieve a list of all models for the workspace. +### Get a model +Retrieve a single model. +### Delete a model +Deletes a model. This is not reversible. +### Get music generation jobs +Retrieve a list of all music generation jobs for a workspace. +### Generate music +Generate music by providing a text description. Generations usually take between 1-3 minutes. +### Get a music generation job +Retrieve a specific music generation job. ## Known Issues and Limitations -N/A - -### Rate Limit -* Leap AI do not currently have a rate limit. -They may introduce one in the future. - - -### Size limits -* Get started for free and pay for usage once you exceed the free tier. - - Image Generation - * Generate 100 images for free. - Pay $0.005 per additional image. - - Model Fine-tuning - * Train 1 fine-tuned model for free. - Pay $2 per additional fine-tuned model. - -### Request size limits -N/A - -#### Not all operations provided by Leap AI are part of the first IP connector submission. We will keep adding/updating/supporting this connector based on your feedback/requests :) +There are no known issues or limitations at this time. diff --git a/independent-publisher-connectors/Leap-Ai/apiDefinition.swagger.json b/independent-publisher-connectors/Leap-Ai/apiDefinition.swagger.json index c3e77bb48..950d51cd4 100644 --- a/independent-publisher-connectors/Leap-Ai/apiDefinition.swagger.json +++ b/independent-publisher-connectors/Leap-Ai/apiDefinition.swagger.json @@ -1,857 +1,1391 @@ -{ - "swagger": "2.0", - "info": { - "title": "LeapAi AI", - "description": "LeapAi image recognition service.", - "version": "1.0", - "contact": { - "name": "Chandra Sekhar", - "url": "https://github.com/sekharmalla", - "email": "chandra.malla@msftcommunity.com" - } - }, - "host": "api.tryleap.ai", - "basePath": "/api/", - "schemes": [ - "https" - ], - "consumes": [ - "multipart/form-data", - "application/json" - ], - "parameters": { - "file": { - "name": "files", - "in": "formData", - "description": "The binary data of the image sample.", - "required": true, - "type": "file", - "x-ms-visibility": "important", - "x-ms-summary": "File" - } - }, - "produces": [], - "paths": { - "/v1/images/models": { - "get": { - "responses": { - "200": { - "description": "Success", - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "id" - }, - "title": { - "type": "string", - "description": "title" - }, - "subjectKeyword": { - "type": "string", - "description": "subjectKeyword" - }, - "subjectIdentifier": { - "type": "string", - "description": "subjectIdentifier" - } - } - } - } - } - }, - "summary": "List All Models", - "operationId": "ListAllModels", - "description": "This endpoint will return a list of all models for the workspace.", - "parameters": [ - { - "name": "returnInObject", - "in": "query", - "required": false, - "type": "boolean", - "description": "Whether to return the sample in the response as an object. Will return array if false.", - "x-ms-summary": "Return In Object" - }, - { - "name": "accept", - "in": "header", - "required": true, - "type": "string", - "description": "accept", - "x-ms-summary": "accept", - "default": "application/json", - "x-ms-visibility": "internal" - } - ] - }, - "post": { - "responses": { - "200": { - "description": "Success", - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "id", - "title": "ID" - }, - "title": { - "type": "string", - "description": "title", - "title": "Title" - }, - "subjectKeyword": { - "type": "string", - "description": "subjectKeyword", - "title": "Subject Keyword" - }, - "subjectIdentifier": { - "type": "string", - "description": "subjectIdentifier", - "title": "Subject Identifier" - } - } - } - } - }, - "summary": "Create Model", - "description": "This endpoint will create a new model", - "operationId": "CreateModel", - "x-ms-visibility": "important", - "parameters": [ - { - "name": "accept", - "in": "header", - "required": true, - "type": "string", - "description": "accept", - "x-ms-summary": "accept", - "default": "application/json", - "x-ms-visibility": "internal" - }, - { - "name": "content-type", - "in": "header", - "required": true, - "type": "string", - "description": "Content-type", - "x-ms-summary": "Content-type", - "default": "application/json", - "x-ms-visibility": "internal" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "title": { - "type": "string", - "description": "title", - "title": "Title", - "x-ms-visibility": "important" - }, - "subjectKeyword": { - "type": "string", - "description": "subjectKeyword", - "title": "Subject Key Word", - "x-ms-visibility": "important" - } - }, - "x-ms-visibility": "important", - "required": [ - "subjectKeyword", - "title" - ] - }, - "x-ms-visibility": "important" - } - ] - } - }, - "/v1/images/models/{modelId}/samples": { - "post": { - "summary": "Upload Image Samples", - "description": "Upload one or multiple image samples to a model.", - "operationId": "UploadImageSamples", - "x-ms-visibility": "important", - "parameters": [ - { - "name": "modelId", - "in": "path", - "description": "The ID of the model to upload the image samples to.", - "required": true, - "type": "string", - "x-ms-summary":"Model Id", - "x-ms-visibility": "important", - "x-ms-url-encoding": "single" - }, - { - "name": "accept", - "in": "header", - "description": "The expected response format.", - "required": true, - "type": "string", - "x-ms-summary": "accept", - "default": "application/json", - "x-ms-visibility": "internal" - }, - { - "name": "files", - "in": "formData", - "description": "The binary data of the image sample.", - "required": true, - "type": "file", - "x-ms-visibility": "important", - "x-ms-summary": "Files" - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "The ID of the uploaded sample.", - "title": "Sample ID" - } - } - } - } - } - } - } - }, - "/v1/images/models/{modelId}/queue": { - "post": { - "responses": { - "200": { - "description": "Success", - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "The unique identifier of the sample." - }, - "createdAt": { - "type": "string", - "description": "The date and time when the sample was created." - }, - "status": { - "type": "string", - "description": "The current status of the sample." - }, - "model": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "The unique identifier of the model that the sample belongs to." - }, - "title": { - "type": "string", - "description": "The title of the model." - }, - "subjectKeyword": { - "type": "string", - "description": "The subject keyword of the model." - }, - "subjectIdentifier": { - "type": "string", - "description": "The subject identifier of the model." - } - }, - "description": "The metadata of the model that the sample belongs to." - }, - "weights": { - "type": "object", - "properties": { - "uri": { - "type": "string", - "description": "The URI where the model weights are stored." - }, - "id": { - "type": "string", - "description": "The unique identifier of the model weights." - } - }, - "description": "The information about the weights of the model that the sample belongs to." - } - } - } - } - }, - "summary": "Queue Training Job", - "parameters": [ - { - "name": "modelId", - "in": "path", - "required": true, - "type": "string", - "description": "The ID of the model to queue.", - "x-ms-summary": "Model Id", - "x-ms-visibility": "important", - "x-ms-url-encoding": "single" - }, - { - "name": "accept", - "in": "header", - "required": true, - "type": "string", - "description": "accept", - "x-ms-summary": "accept", - "default": "application/json", - "x-ms-visibility": "internal" - }, - { - "name": "content-type", - "in": "header", - "required": true, - "type": "string", - "description": "Content-type", - "x-ms-summary": "Content-type", - "default": "application/json", - "x-ms-visibility": "internal" - }, - { - "name": "body", - "in": "body", - "required": false, - "schema": { - "type": "object", - "properties": { - "webhookUrl": { - "type": "string", - "description": "An optional webhook URL that will be called when the model is trained. https://example.com/webhook", - "title": "Webhook Url", - "x-ms-visibility": "advanced" - } - }, - "x-ms-visibility": "advanced" - }, - "x-ms-visibility": "advanced" - } - ], - "description": "This endpoint will queue a new model version to be trained.", - "operationId": "QueueTrainingJob" - } - }, - "/v1/images/models/{modelId}/inferences": { - "get": { - "responses": { - "200": { - "description": "Success", - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Unique identifier for the image generation request", - "title": "ID" - }, - "status": { - "type": "string", - "description": "Status of the image generation request (e.g. finished)" - }, - "prompt": { - "type": "string", - "description": "The prompt for the image generation request" - }, - "negativePrompt": { - "type": "string", - "description": "The negative prompt for the image generation request" - }, - "seed": { - "type": "integer", - "format": "int32", - "description": "The seed value for the image generation request" - }, - "width": { - "type": "integer", - "format": "int32", - "description": "The width of the generated image" - }, - "height": { - "type": "integer", - "format": "int32", - "description": "The height of the generated image" - }, - "numberOfImages": { - "type": "integer", - "format": "int32", - "description": "The number of images generated for the request" - }, - "steps": { - "type": "integer", - "format": "int32", - "description": "The number of steps taken for image generation" - }, - "createdAt": { - "type": "string", - "description": "The creation date and time of the request" - }, - "promptStrength": { - "type": "integer", - "format": "int32", - "description": "The strength of the prompt" - }, - "images": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Unique identifier for the generated image", - "title": "Image ID" - }, - "uri": { - "type": "string", - "description": "The URI for the generated image" - }, - "createdAt": { - "type": "string", - "description": "The creation date and time of the generated image" - } - }, - "description": "Generated images" - } - }, - "modelId": { - "type": "string", - "description": "The model ID used for the image generation request" - } - } - } - } - } - }, - "summary": "List Inference Jobs", - "operationId": "ListInferenceJobs", - "description": "Retrieve all inferences for a specific model", - "parameters": [ - { - "name": "modelId", - "in": "path", - "required": true, - "type": "string", - "description": "The ID of the model to queue.", - "x-ms-summary": "Model Id", - "x-ms-visibility": "important", - "x-ms-url-encoding": "single" - }, - { - "name": "onlyFinished", - "in": "query", - "required": false, - "type": "boolean", - "description": "If set to true, only finished inferences will be returned. If set to false or not set, all inference jobs will be returned.", - "x-ms-summary": "Only Finished" - }, - { - "name": "accept", - "in": "header", - "required": true, - "type": "string", - "description": "accept", - "x-ms-summary": "accept", - "default": "application/json", - "x-ms-visibility": "internal" - }, - { - "name": "content-type", - "in": "header", - "required": true, - "type": "string", - "description": "Content-type", - "x-ms-summary": "Content-type", - "default": "application/json", - "x-ms-visibility": "internal" - } - ] - }, - "post": { - "responses": { - "200": { - "description": "Success", - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "The ID of the generated image(s)." - }, - "createdAt": { - "type": "string", - "format": "date-time", - "description": "The date and time when the inference was performed." - }, - "prompt": { - "type": "string", - "description": "The prompt used for the inference.", - "example": "A photo of an astronaut riding a horse" - }, - "negativePrompt": { - "type": "string", - "description": "Negative prompts used for the inference.", - "example": "asymmetric, watermarks" - }, - "version": { - "type": "string", - "description": "The version of the model used for the inference. If not provided will default to latest." - }, - "steps": { - "type": "integer", - "description": "The number of steps used for the inference.", - "example": 50 - }, - "width": { - "type": "integer", - "description": "The width of the image used for the inference. Must be a multiple of 8.", - "example": 512 - }, - "height": { - "type": "integer", - "description": "The height of the image used for the inference. Must be a multiple of 8.", - "example": 512 - }, - "numberOfImages": { - "type": "integer", - "description": "The number of images generated for the inference. Max batch size is 20.", - "example": 1 - }, - "promptStrength": { - "type": "integer", - "description": "The prompt strength used for the inference. Must be between 0 and 30.", - "example": 7 - }, - "seed": { - "type": "integer", - "description": "The seed used for the inference. Must be a positive integer.", - "example": 4523184 - }, - "webhookUrl": { - "type": "string", - "description": "An optional webhook URL that will be called when the model is trained." - }, - "restoreFaces": { - "type": "boolean", - "description": "Whether to apply face restoration to the generated images or not. This will make images of faces look more realistic." - } - } - } - } - }, - "summary": "Generate Image", - "description": "This endpoint will generate a new inference for a particular model.", - "operationId": "GenerateImage", - "parameters": [ - { - "name": "modelId", - "in": "path", - "required": true, - "type": "string", - "x-ms-summary": "Model Id", - "description": "The ID of the model to use to generate images.", - "x-ms-url-encoding": "single" - }, - { - "name": "accept", - "in": "header", - "required": true, - "type": "string", - "description": "accept", - "x-ms-summary": "accept", - "default": "application/json", - "x-ms-visibility": "internal" - }, - { - "name": "content-type", - "in": "header", - "required": true, - "type": "string", - "description": "Content-type", - "x-ms-summary": "Content-type", - "default": "application/json", - "x-ms-visibility": "internal" - }, - { - "name": "body", - "in": "body", - "required": false, - "schema": { - "type": "object", - "properties": { - "prompt": { - "type": "string", - "description": "The prompt to use for the inference.", - "title": "Prompt" - }, - "negativePrompt": { - "type": "string", - "description": "Negative prompts to use for the inference.", - "title": "Negative prompt" - }, - "steps": { - "type": "integer", - "format": "int32", - "description": "The number of steps to use for the inference.", - "title": "Steps" - }, - "width": { - "type": "integer", - "format": "int32", - "description": "The width of the image to use for the inference. Must be a multiple of 8.", - "title": "Width" - }, - "height": { - "type": "integer", - "format": "int32", - "description": "The height of the image to use for the inference. Must be a multiple of 8.", - "title": "Height" - }, - "numberOfImages": { - "type": "integer", - "format": "int32", - "description": "The number of images to generate for the inference. Max batch size is 20.", - "title": "The number of images" - }, - "promptStrength": { - "type": "integer", - "format": "int32", - "description": "The higher the prompt strength, the closer the generated image will be to the prompt. Must be between 0 and 30.", - "title": "Prompt strength" - }, - "seed": { - "type": "integer", - "format": "int32", - "description": "The seed to use for the inference. Must be a positive integer.", - "title": "Seed" - } - } - } - } - ] - } - }, - "/v1/images/models/{modelId}/inferences/{inferenceId}": { - "get": { - "responses": { - "200": { - "description": "Success", - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Unique identifier for the image generation request", - "title": "ID" - }, - "status": { - "type": "string", - "description": "Status of the image generation request (e.g. finished)" - }, - "prompt": { - "type": "string", - "description": "The prompt for the image generation request" - }, - "negativePrompt": { - "type": "string", - "description": "The negative prompt for the image generation request" - }, - "seed": { - "type": "integer", - "format": "int32", - "description": "The seed value for the image generation request" - }, - "width": { - "type": "integer", - "format": "int32", - "description": "The width of the generated image" - }, - "height": { - "type": "integer", - "format": "int32", - "description": "The height of the generated image" - }, - "numberOfImages": { - "type": "integer", - "format": "int32", - "description": "The number of images generated for the request" - }, - "steps": { - "type": "integer", - "format": "int32", - "description": "The number of steps taken for image generation" - }, - "createdAt": { - "type": "string", - "description": "The creation date and time of the request" - }, - "promptStrength": { - "type": "integer", - "format": "int32", - "description": "The strength of the prompt" - }, - "images": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Unique identifier for the generated image", - "title": "Image ID" - }, - "uri": { - "type": "string", - "description": "The URI for the generated image" - }, - "createdAt": { - "type": "string", - "description": "The creation date and time of the generated image" - } - }, - "description": "Generated images" - } - }, - "modelId": { - "type": "string", - "description": "The model ID used for the image generation request" - } - } - } - } - }, - "summary": "Get Single Inference Job", - "operationId": "GetSingleInferenceJob", - "description": "This endpoint will retrieve a specific inference for a particular model.", - "parameters": [ - { - "name": "modelId", - "in": "path", - "required": true, - "type": "string", - "description": "The ID of the model to retrieve inferences for.", - "x-ms-summary": "Model Id", - "x-ms-visibility": "important", - "x-ms-url-encoding": "single" - }, - { - "name": "inferenceId", - "in": "path", - "required": true, - "type": "string", - "description": "The ID of the inference to retrieve.", - "x-ms-summary": "Inference Id", - "x-ms-visibility": "important", - "x-ms-url-encoding": "single" - }, - { - "name": "accept", - "in": "header", - "required": true, - "type": "string", - "description": "accept", - "x-ms-summary": "accept", - "default": "application/json", - "x-ms-visibility": "internal" - } - ] - }, - "delete": { - "responses": { - "200": { - "description": "Success", - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Unique identifier for the image generation request", - "title": "ID" - } - } - } - } - }, - "summary": "Delete Inference", - "operationId": "DeleteInference", - "description": "Deletes the Inference from the model.", - "parameters": [ - { - "name": "modelId", - "in": "path", - "required": true, - "type": "string", - "description": "The ID of the model to retrieve inferences for.", - "x-ms-summary": "Model Id", - "x-ms-visibility": "important", - "x-ms-url-encoding": "single" - }, - { - "name": "inferenceId", - "in": "path", - "required": true, - "type": "string", - "description": "The ID of the inference to retrieve.", - "x-ms-summary": "Inference Id", - "x-ms-visibility": "important", - "x-ms-url-encoding": "single" - }, - { - "name": "accept", - "in": "header", - "required": true, - "type": "string", - "description": "accept", - "x-ms-summary": "accept", - "default": "application/json", - "x-ms-visibility": "internal" - } - ] - } - } - }, - "definitions": {}, - "responses": {}, - "securityDefinitions": { - "API Key": { - "type": "apiKey", - "in": "header", - "name": "Authorization" - } - }, - "security": [ - { - "API Key": [] - } - ], - "tags": [], - "x-ms-connector-metadata": [ - { - "propertyName": "Website", - "propertyValue": "https://tryleap.ai/" - }, - { - "propertyName": "Privacy policy", - "propertyValue": "https://app.getterms.io/view/dlM8u/privacy/en-us" - }, - { - "propertyName": "Categories", - "propertyValue": "Website;Productivity" - } - ] -} +{ + "swagger": "2.0", + "info": { + "title": "Leap", + "description": "Generate images, music, and more using Leap.", + "version": "1.1", + "contact": { + "name": "Troy Taylor", + "url": "https://www.hitachisolutions.com", + "email": "ttaylor@hitachisolutions.com" + } + }, + "host": "api.tryleap.ai", + "basePath": "/api/", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/v1/images/models/{modelId}/inferences": { + "get": { + "responses": { + "200": { + "description": "default", + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The identifier.", + "title": "ID" + }, + "height": { + "type": "integer", + "format": "int32", + "description": "The height.", + "title": "Height" + }, + "width": { + "type": "integer", + "format": "int32", + "description": "The width.", + "title": "Width" + }, + "prompt": { + "type": "string", + "description": "The prompt.", + "title": "Prompt" + }, + "negativePrompt": { + "type": "string", + "description": "The negative prompt.", + "title": "Negative Prompt" + }, + "promptStrength": { + "type": "integer", + "format": "int32", + "description": "The prompt strength.", + "title": "Prompt Strength" + }, + "modelId": { + "type": "string", + "description": "The model identifier.", + "title": "Model ID" + }, + "numberOfImages": { + "type": "integer", + "format": "int32", + "description": "The number of images.", + "title": "Number Of Images" + }, + "seed": { + "type": "integer", + "format": "int32", + "description": "The seed.", + "title": "Seed" + }, + "steps": { + "type": "integer", + "format": "int32", + "description": "The steps.", + "title": "Steps" + }, + "upscalingOption": { + "type": "string", + "description": "The upscaling option.", + "title": "Upscaling Option" + }, + "createdAt": { + "type": "string", + "description": "When created at.", + "title": "Created At" + }, + "state": { + "type": "string", + "description": "The state.", + "title": "State" + }, + "status": { + "type": "string", + "description": "The status.", + "title": "Status" + }, + "images": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The identifier.", + "title": "ID" + }, + "uri": { + "type": "string", + "description": "The URI.", + "title": "URI" + }, + "createdAt": { + "type": "string", + "description": "When created at.", + "title": "Created At" + } + } + }, + "title": "Images" + } + } + } + } + } + }, + "summary": "Get image jobs", + "description": "Retrieve a list of inference jobs for a specific model.", + "operationId": "ImagesGet", + "parameters": [ + { + "name": "modelId", + "in": "path", + "x-ms-summary": "Model ID", + "x-ms-url-encoding": "single", + "description": "The ID of the model to generate images. This can be a custom model or a public model.", + "required": true, + "type": "string", + "enum": [ + "26a1a203-3a46-42cb-8cfa-f4de075907d8", + "ee88d150-4259-4b77-9d0f-090abe29f650", + "8b1b897c-d66d-45a6-b8d7-8e32421d02cf", + "37d42ae9-5f5f-4399-b60b-014d35e762a5", + "eab32df0-de26-4b83-a908-a83f3015e971", + "1e7737d7-545e-469f-857f-e4b46eaa151d", + "d66b1686-5e5d-43b2-a2e7-d295d679917c", + "7575ea52-3d4f-400f-9ded-09f7b1b1a5b8", + "8ead1e66-5722-4ff6-a13f-b5212f575321", + "1285ded4-b11b-4993-a491-d87cdfe6310c" + ], + "x-ms-enum-values": [ + { + "displayName": "SDXL", + "value": "26a1a203-3a46-42cb-8cfa-f4de075907d8" + }, + { + "displayName": "Stable Diffusion 2.1", + "value": "ee88d150-4259-4b77-9d0f-090abe29f650" + }, + { + "displayName": "Stable Diffusion 1.5", + "value": "8b1b897c-d66d-45a6-b8d7-8e32421d02cf" + }, + { + "displayName": "Realistic Vision v4.0", + "value": "37d42ae9-5f5f-4399-b60b-014d35e762a5" + }, + { + "displayName": "Realistic Vision v2.0", + "value": "eab32df0-de26-4b83-a908-a83f3015e971" + }, + { + "displayName": "OpenJourney v4", + "value": "1e7737d7-545e-469f-857f-e4b46eaa151d" + }, + { + "displayName": "OpenJourney v2", + "value": "d66b1686-5e5d-43b2-a2e7-d295d679917c" + }, + { + "displayName": "OpenJourney v1", + "value": "7575ea52-3d4f-400f-9ded-09f7b1b1a5b8" + }, + { + "displayName": "Modern Disney", + "value": "8ead1e66-5722-4ff6-a13f-b5212f575321" + }, + { + "displayName": "Future Diffusion", + "value": "1285ded4-b11b-4993-a491-d87cdfe6310c" + } + ] + }, + { + "name": "onlyFinished", + "in": "query", + "x-ms-summary": "Only Finished", + "description": "If set to true, only finished inferences will be returned. If set to false or not set, all inference jobs will be returned.", + "required": false, + "type": "boolean" + }, + { + "name": "page", + "in": "query", + "x-ms-summary": "Page", + "description": "The page number.", + "required": false, + "type": "integer" + }, + { + "name": "pageSize", + "in": "query", + "x-ms-summary": "Page Size", + "description": "The page size.", + "required": false, + "type": "integer" + } + ] + }, + "post": { + "responses": { + "201": { + "description": "default", + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The identifier.", + "title": "ID" + }, + "createdAt": { + "type": "string", + "description": "When created at.", + "title": "Created At" + }, + "prompt": { + "type": "string", + "description": "The prompt.", + "title": "Prompt" + }, + "negativePrompt": { + "type": "string", + "description": "The negative prompt.", + "title": "Negative Prompt" + }, + "seed": { + "type": "integer", + "format": "int32", + "description": "The seed.", + "title": "Seed" + }, + "width": { + "type": "integer", + "format": "int32", + "description": "The width.", + "title": "Width" + }, + "height": { + "type": "integer", + "format": "int32", + "description": "The height.", + "title": "Height" + }, + "promptStrength": { + "type": "integer", + "format": "int32", + "description": "The prompt strength.", + "title": "Prompt Strength" + }, + "numberOfImages": { + "type": "integer", + "format": "int32", + "description": "The number of images.", + "title": "Number Of Images" + }, + "state": { + "type": "string", + "description": "The state.", + "title": "State" + }, + "status": { + "type": "string", + "description": "The status.", + "title": "Status" + }, + "steps": { + "type": "integer", + "format": "int32", + "description": "The steps.", + "title": "Steps" + }, + "images": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The identifier.", + "title": "ID" + }, + "createdAt": { + "type": "string", + "description": "When created at.", + "title": "Created At" + }, + "uri": { + "type": "string", + "description": "The URI.", + "title": "URI" + } + } + }, + "title": "Images" + }, + "modelId": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The model identifier.", + "title": "Model ID" + }, + "upscalingOption": { + "type": "string", + "description": "The upscaling option.", + "title": "Upscaling Option" + } + } + } + } + }, + "summary": "Generate an image", + "operationId": "ImagePost", + "parameters": [ + { + "name": "modelId", + "in": "path", + "x-ms-summary": "Model ID", + "x-ms-url-encoding": "single", + "description": "The ID of the model to generate images. This can be a custom model or a public model.", + "required": true, + "type": "string", + "enum": [ + "26a1a203-3a46-42cb-8cfa-f4de075907d8", + "ee88d150-4259-4b77-9d0f-090abe29f650", + "8b1b897c-d66d-45a6-b8d7-8e32421d02cf", + "37d42ae9-5f5f-4399-b60b-014d35e762a5", + "eab32df0-de26-4b83-a908-a83f3015e971", + "1e7737d7-545e-469f-857f-e4b46eaa151d", + "d66b1686-5e5d-43b2-a2e7-d295d679917c", + "7575ea52-3d4f-400f-9ded-09f7b1b1a5b8", + "8ead1e66-5722-4ff6-a13f-b5212f575321", + "1285ded4-b11b-4993-a491-d87cdfe6310c" + ], + "x-ms-enum-values": [ + { + "displayName": "SDXL", + "value": "26a1a203-3a46-42cb-8cfa-f4de075907d8" + }, + { + "displayName": "Stable Diffusion 2.1", + "value": "ee88d150-4259-4b77-9d0f-090abe29f650" + }, + { + "displayName": "Stable Diffusion 1.5", + "value": "8b1b897c-d66d-45a6-b8d7-8e32421d02cf" + }, + { + "displayName": "Realistic Vision v4.0", + "value": "37d42ae9-5f5f-4399-b60b-014d35e762a5" + }, + { + "displayName": "Realistic Vision v2.0", + "value": "eab32df0-de26-4b83-a908-a83f3015e971" + }, + { + "displayName": "OpenJourney v4", + "value": "1e7737d7-545e-469f-857f-e4b46eaa151d" + }, + { + "displayName": "OpenJourney v2", + "value": "d66b1686-5e5d-43b2-a2e7-d295d679917c" + }, + { + "displayName": "OpenJourney v1", + "value": "7575ea52-3d4f-400f-9ded-09f7b1b1a5b8" + }, + { + "displayName": "Modern Disney", + "value": "8ead1e66-5722-4ff6-a13f-b5212f575321" + }, + { + "displayName": "Future Diffusion", + "value": "1285ded4-b11b-4993-a491-d87cdfe6310c" + } + ] + }, + { + "name": "body", + "in": "body", + "required": false, + "schema": { + "type": "object", + "properties": { + "prompt": { + "type": "string", + "description": "The prompt.", + "title": "Prompt" + }, + "negativePrompt": { + "type": "string", + "description": "The negative prompt.", + "title": "Negative Prompt" + }, + "steps": { + "type": "integer", + "format": "int32", + "description": "The steps.", + "title": "Steps" + }, + "width": { + "type": "integer", + "format": "int32", + "description": "The width.", + "title": "Width" + }, + "height": { + "type": "integer", + "format": "int32", + "description": "The height.", + "title": "Height" + }, + "numberOfImages": { + "type": "integer", + "format": "int32", + "description": "The number of images.", + "title": "Number Of Images" + }, + "promptStrength": { + "type": "integer", + "format": "int32", + "description": "The prompt strength.", + "title": "Prompt Strength" + }, + "seed": { + "type": "integer", + "format": "int32", + "description": "The seed.", + "title": "Seed" + }, + "webhookUrl": { + "type": "string", + "description": "The webhook URL address.", + "title": "Webhook URL" + } + }, + "required": [ + "prompt" + ] + } + } + ], + "description": "Generate an image by providing a text description.", + "x-ms-visibility": "important" + } + }, + "/v1/images/models/{modelId}/inferences/{inferenceId}": { + "get": { + "responses": { + "200": { + "description": "default", + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The identifier.", + "title": "ID" + }, + "height": { + "type": "integer", + "format": "int32", + "description": "The height.", + "title": "Height" + }, + "width": { + "type": "integer", + "format": "int32", + "description": "The width.", + "title": "Width" + }, + "prompt": { + "type": "string", + "description": "The prompt.", + "title": "Prompt" + }, + "negativePrompt": { + "type": "string", + "description": "The negative prompt.", + "title": "Negative Prompt" + }, + "promptStrength": { + "type": "integer", + "format": "int32", + "description": "The prompt strength.", + "title": "Prompt Strength" + }, + "modelId": { + "type": "string", + "description": "The model identifier.", + "title": "Model ID" + }, + "numberOfImages": { + "type": "integer", + "format": "int32", + "description": "The number of images.", + "title": "Number Of Images" + }, + "seed": { + "type": "integer", + "format": "int32", + "description": "The seed.", + "title": "Seed" + }, + "steps": { + "type": "integer", + "format": "int32", + "description": "The steps.", + "title": "Steps" + }, + "upscalingOption": { + "type": "string", + "description": "The upscaling option.", + "title": "Upscaling Option" + }, + "createdAt": { + "type": "string", + "description": "When created at.", + "title": "Created At" + }, + "state": { + "type": "string", + "description": "The state.", + "title": "State" + }, + "status": { + "type": "string", + "description": "The status.", + "title": "Status" + }, + "images": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The identifier.", + "title": "ID" + }, + "uri": { + "type": "string", + "description": "The URI.", + "title": "URI" + }, + "createdAt": { + "type": "string", + "description": "When created at.", + "title": "Created At" + } + } + }, + "title": "Images" + } + } + } + } + }, + "summary": "Get image job", + "description": "Retrieve a single image generation job, including the URLs for the images generated.", + "operationId": "ImageGet", + "parameters": [ + { + "name": "modelId", + "in": "path", + "x-ms-summary": "Model ID", + "x-ms-url-encoding": "single", + "description": "The ID of the model to generate images. This can be a custom model or a public model.", + "required": true, + "type": "string", + "enum": [ + "26a1a203-3a46-42cb-8cfa-f4de075907d8", + "ee88d150-4259-4b77-9d0f-090abe29f650", + "8b1b897c-d66d-45a6-b8d7-8e32421d02cf", + "37d42ae9-5f5f-4399-b60b-014d35e762a5", + "eab32df0-de26-4b83-a908-a83f3015e971", + "1e7737d7-545e-469f-857f-e4b46eaa151d", + "d66b1686-5e5d-43b2-a2e7-d295d679917c", + "7575ea52-3d4f-400f-9ded-09f7b1b1a5b8", + "8ead1e66-5722-4ff6-a13f-b5212f575321", + "1285ded4-b11b-4993-a491-d87cdfe6310c" + ], + "x-ms-enum-values": [ + { + "displayName": "SDXL", + "value": "26a1a203-3a46-42cb-8cfa-f4de075907d8" + }, + { + "displayName": "Stable Diffusion 2.1", + "value": "ee88d150-4259-4b77-9d0f-090abe29f650" + }, + { + "displayName": "Stable Diffusion 1.5", + "value": "8b1b897c-d66d-45a6-b8d7-8e32421d02cf" + }, + { + "displayName": "Realistic Vision v4.0", + "value": "37d42ae9-5f5f-4399-b60b-014d35e762a5" + }, + { + "displayName": "Realistic Vision v2.0", + "value": "eab32df0-de26-4b83-a908-a83f3015e971" + }, + { + "displayName": "OpenJourney v4", + "value": "1e7737d7-545e-469f-857f-e4b46eaa151d" + }, + { + "displayName": "OpenJourney v2", + "value": "d66b1686-5e5d-43b2-a2e7-d295d679917c" + }, + { + "displayName": "OpenJourney v1", + "value": "7575ea52-3d4f-400f-9ded-09f7b1b1a5b8" + }, + { + "displayName": "Modern Disney", + "value": "8ead1e66-5722-4ff6-a13f-b5212f575321" + }, + { + "displayName": "Future Diffusion", + "value": "1285ded4-b11b-4993-a491-d87cdfe6310c" + } + ] + }, + { + "name": "inferenceId", + "in": "path", + "x-ms-summary": "Inference ID", + "x-ms-url-encoding": "single", + "description": "The identifier of the image generation job to retrieve.", + "required": true, + "type": "string", + "x-ms-dynamic-values": { + "operationId": "ImagesGet", + "value-path": "id", + "value-title": "prompt", + "parameters": { + "modelId": { + "parameter": "modelId" + } + } + } + } + ] + }, + "delete": { + "responses": { + "200": { + "description": "default", + "schema": { + "type": "string" + } + } + }, + "summary": "Delete image job", + "description": "Delete the image job and all related images.", + "operationId": "ImageDelete", + "parameters": [ + { + "name": "modelId", + "in": "path", + "x-ms-summary": "Model ID", + "x-ms-url-encoding": "single", + "description": "The ID of the model to generate images. This can be a custom model or a public model.", + "required": true, + "type": "string", + "enum": [ + "26a1a203-3a46-42cb-8cfa-f4de075907d8", + "ee88d150-4259-4b77-9d0f-090abe29f650", + "8b1b897c-d66d-45a6-b8d7-8e32421d02cf", + "37d42ae9-5f5f-4399-b60b-014d35e762a5", + "eab32df0-de26-4b83-a908-a83f3015e971", + "1e7737d7-545e-469f-857f-e4b46eaa151d", + "d66b1686-5e5d-43b2-a2e7-d295d679917c", + "7575ea52-3d4f-400f-9ded-09f7b1b1a5b8", + "8ead1e66-5722-4ff6-a13f-b5212f575321", + "1285ded4-b11b-4993-a491-d87cdfe6310c" + ], + "x-ms-enum-values": [ + { + "displayName": "SDXL", + "value": "26a1a203-3a46-42cb-8cfa-f4de075907d8" + }, + { + "displayName": "Stable Diffusion 2.1", + "value": "ee88d150-4259-4b77-9d0f-090abe29f650" + }, + { + "displayName": "Stable Diffusion 1.5", + "value": "8b1b897c-d66d-45a6-b8d7-8e32421d02cf" + }, + { + "displayName": "Realistic Vision v4.0", + "value": "37d42ae9-5f5f-4399-b60b-014d35e762a5" + }, + { + "displayName": "Realistic Vision v2.0", + "value": "eab32df0-de26-4b83-a908-a83f3015e971" + }, + { + "displayName": "OpenJourney v4", + "value": "1e7737d7-545e-469f-857f-e4b46eaa151d" + }, + { + "displayName": "OpenJourney v2", + "value": "d66b1686-5e5d-43b2-a2e7-d295d679917c" + }, + { + "displayName": "OpenJourney v1", + "value": "7575ea52-3d4f-400f-9ded-09f7b1b1a5b8" + }, + { + "displayName": "Modern Disney", + "value": "8ead1e66-5722-4ff6-a13f-b5212f575321" + }, + { + "displayName": "Future Diffusion", + "value": "1285ded4-b11b-4993-a491-d87cdfe6310c" + } + ] + }, + { + "name": "inferenceId", + "in": "path", + "x-ms-summary": "Inference ID", + "x-ms-url-encoding": "single", + "description": "The ID of the image generation job to delete.", + "required": true, + "type": "string", + "x-ms-dynamic-values": { + "operationId": "ImagesGet", + "value-path": "id", + "value-title": "id", + "parameters": { + "modelId": { + "parameter": "modelId" + } + } + } + } + ] + } + }, + "/v2/images/models/new": { + "post": { + "responses": { + "201": { + "description": "default", + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The identifier.", + "title": "ID" + }, + "name": { + "type": "string", + "description": "The name.", + "title": "Name" + }, + "createdAt": { + "type": "string", + "description": "When created at.", + "title": "Created At" + }, + "subjectKeyword": { + "type": "string", + "description": "The subject keyword.", + "title": "Subject Keyword" + }, + "subjectType": { + "type": "string", + "description": "The subject type.", + "title": "Subject Type" + }, + "status": { + "type": "string", + "description": "The status.", + "title": "Status" + }, + "imageSamples": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The image samples.", + "title": "Image Samples" + } + } + } + } + }, + "summary": "Train model", + "description": "Upload a few image URL samples and train a new model. Training usually takes 20-40 minutes.", + "operationId": "ModelPost", + "parameters": [ + { + "name": "body", + "in": "body", + "required": false, + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name.", + "title": "Name" + }, + "subjectKeyword": { + "type": "string", + "description": "The subject keyword.", + "title": "Subject Keyword" + }, + "subjectType": { + "type": "string", + "description": "The subject type.", + "title": "Subject Type" + }, + "webhookUrl": { + "type": "string", + "description": "The webhook URL address.", + "title": "Webhook URL" + }, + "imageSampleUrls": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The image sample URL addresses.", + "title": "Image Sample URLs" + } + } + } + } + ] + } + }, + "/v2/images/models": { + "get": { + "responses": { + "200": { + "description": "default", + "schema": { + "type": "object", + "properties": { + "models": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The identifier.", + "title": "ID" + }, + "name": { + "type": "string", + "description": "The name.", + "title": "Name" + }, + "createdAt": { + "type": "string", + "description": "When created at.", + "title": "Created At" + }, + "subjectKeyword": { + "type": "string", + "description": "The subject keyword.", + "title": "Subject Keyword" + }, + "subjectType": { + "type": "string", + "description": "The subject type.", + "title": "Subject Type" + }, + "status": { + "type": "string", + "description": "The status.", + "title": "Status" + }, + "imageSamples": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The image samples.", + "title": "Image Samples" + } + } + }, + "title": "Models" + } + } + } + } + }, + "summary": "Get models", + "description": "Retrieve a list of all models for the workspace", + "operationId": "ModelsGet", + "parameters": [] + } + }, + "/v2/images/models/{modelId}": { + "get": { + "responses": { + "200": { + "description": "default", + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The identifier.", + "title": "ID" + }, + "name": { + "type": "string", + "description": "The name.", + "title": "Name" + }, + "createdAt": { + "type": "string", + "description": "When created at.", + "title": "Created At" + }, + "subjectKeyword": { + "type": "string", + "description": "The subject keyword.", + "title": "Subject Keyword" + }, + "subjectType": { + "type": "string", + "description": "The subject type.", + "title": "Subject Type" + }, + "status": { + "type": "string", + "description": "The status.", + "title": "Status" + }, + "imageSamples": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The image samples.", + "title": "Image Samples" + } + } + } + } + }, + "summary": "Get a model", + "description": "Retrieve a single model.", + "operationId": "ModelGet", + "parameters": [ + { + "name": "modelId", + "in": "path", + "x-ms-summary": "Model ID", + "x-ms-url-encoding": "single", + "description": "The ID of the model to generate images. This can be a custom model or a public model.", + "required": true, + "type": "string", + "enum": [ + "26a1a203-3a46-42cb-8cfa-f4de075907d8", + "ee88d150-4259-4b77-9d0f-090abe29f650", + "8b1b897c-d66d-45a6-b8d7-8e32421d02cf", + "37d42ae9-5f5f-4399-b60b-014d35e762a5", + "eab32df0-de26-4b83-a908-a83f3015e971", + "1e7737d7-545e-469f-857f-e4b46eaa151d", + "d66b1686-5e5d-43b2-a2e7-d295d679917c", + "7575ea52-3d4f-400f-9ded-09f7b1b1a5b8", + "8ead1e66-5722-4ff6-a13f-b5212f575321", + "1285ded4-b11b-4993-a491-d87cdfe6310c" + ], + "x-ms-enum-values": [ + { + "displayName": "SDXL", + "value": "26a1a203-3a46-42cb-8cfa-f4de075907d8" + }, + { + "displayName": "Stable Diffusion 2.1", + "value": "ee88d150-4259-4b77-9d0f-090abe29f650" + }, + { + "displayName": "Stable Diffusion 1.5", + "value": "8b1b897c-d66d-45a6-b8d7-8e32421d02cf" + }, + { + "displayName": "Realistic Vision v4.0", + "value": "37d42ae9-5f5f-4399-b60b-014d35e762a5" + }, + { + "displayName": "Realistic Vision v2.0", + "value": "eab32df0-de26-4b83-a908-a83f3015e971" + }, + { + "displayName": "OpenJourney v4", + "value": "1e7737d7-545e-469f-857f-e4b46eaa151d" + }, + { + "displayName": "OpenJourney v2", + "value": "d66b1686-5e5d-43b2-a2e7-d295d679917c" + }, + { + "displayName": "OpenJourney v1", + "value": "7575ea52-3d4f-400f-9ded-09f7b1b1a5b8" + }, + { + "displayName": "Modern Disney", + "value": "8ead1e66-5722-4ff6-a13f-b5212f575321" + }, + { + "displayName": "Future Diffusion", + "value": "1285ded4-b11b-4993-a491-d87cdfe6310c" + } + ] + } + ] + }, + "delete": { + "responses": { + "200": { + "description": "default", + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The identifier.", + "title": "ID" + }, + "name": { + "type": "string", + "description": "The name.", + "title": "Name" + }, + "createdAt": { + "type": "string", + "description": "When created at.", + "title": "Created At" + }, + "subjectKeyword": { + "type": "string", + "description": "The subject keyword.", + "title": "Subject Keyword" + }, + "subjectType": { + "type": "string", + "description": "The subject type.", + "title": "Subject Type" + }, + "status": { + "type": "string", + "description": "The status.", + "title": "Status" + }, + "imageSamples": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The image samples.", + "title": "Image Samples" + } + } + } + } + }, + "summary": "Delete a model", + "description": "Deletes a model. This is not reversible.", + "operationId": "ModelDelete", + "parameters": [ + { + "name": "modelId", + "in": "path", + "x-ms-summary": "Model ID", + "x-ms-url-encoding": "single", + "description": "The ID of the model to generate images. This can be a custom model or a public model.", + "required": true, + "type": "string", + "enum": [ + "26a1a203-3a46-42cb-8cfa-f4de075907d8", + "ee88d150-4259-4b77-9d0f-090abe29f650", + "8b1b897c-d66d-45a6-b8d7-8e32421d02cf", + "37d42ae9-5f5f-4399-b60b-014d35e762a5", + "eab32df0-de26-4b83-a908-a83f3015e971", + "1e7737d7-545e-469f-857f-e4b46eaa151d", + "d66b1686-5e5d-43b2-a2e7-d295d679917c", + "7575ea52-3d4f-400f-9ded-09f7b1b1a5b8", + "8ead1e66-5722-4ff6-a13f-b5212f575321", + "1285ded4-b11b-4993-a491-d87cdfe6310c" + ], + "x-ms-enum-values": [ + { + "displayName": "SDXL", + "value": "26a1a203-3a46-42cb-8cfa-f4de075907d8" + }, + { + "displayName": "Stable Diffusion 2.1", + "value": "ee88d150-4259-4b77-9d0f-090abe29f650" + }, + { + "displayName": "Stable Diffusion 1.5", + "value": "8b1b897c-d66d-45a6-b8d7-8e32421d02cf" + }, + { + "displayName": "Realistic Vision v4.0", + "value": "37d42ae9-5f5f-4399-b60b-014d35e762a5" + }, + { + "displayName": "Realistic Vision v2.0", + "value": "eab32df0-de26-4b83-a908-a83f3015e971" + }, + { + "displayName": "OpenJourney v4", + "value": "1e7737d7-545e-469f-857f-e4b46eaa151d" + }, + { + "displayName": "OpenJourney v2", + "value": "d66b1686-5e5d-43b2-a2e7-d295d679917c" + }, + { + "displayName": "OpenJourney v1", + "value": "7575ea52-3d4f-400f-9ded-09f7b1b1a5b8" + }, + { + "displayName": "Modern Disney", + "value": "8ead1e66-5722-4ff6-a13f-b5212f575321" + }, + { + "displayName": "Future Diffusion", + "value": "1285ded4-b11b-4993-a491-d87cdfe6310c" + } + ] + } + ] + } + }, + "/v1/music": { + "get": { + "responses": { + "200": { + "description": "default", + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The identifier.", + "title": "ID" + }, + "createdAt": { + "type": "string", + "description": "When created at.", + "title": "Created At" + }, + "prompt": { + "type": "string", + "description": "The prompt.", + "title": "Prompt" + }, + "state": { + "type": "string", + "description": "The state.", + "title": "State" + }, + "media_uri": { + "type": "string", + "description": "The media URI.", + "title": "Media URI" + } + } + } + } + } + }, + "summary": "Get music generation jobs", + "description": "Retrieve a list of all music generation jobs for a workspace.", + "operationId": "MusicsGet", + "parameters": [] + }, + "post": { + "responses": { + "200": { + "description": "default", + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The identifier.", + "title": "ID" + }, + "createdAt": { + "type": "string", + "description": "When created at.", + "title": "Created At" + }, + "prompt": { + "type": "string", + "description": "The prompt.", + "title": "Prompt" + }, + "state": { + "type": "string", + "description": "The state.", + "title": "State" + }, + "media_uri": { + "type": "string", + "description": "The media URI.", + "title": "Media URI" + } + } + } + } + }, + "summary": "Generate music", + "description": "Generate music by providing a text description. Generations usually take between 1-3 minutes.", + "operationId": "MusicPost", + "parameters": [ + { + "name": "body", + "in": "body", + "required": false, + "schema": { + "type": "object", + "properties": { + "prompt": { + "type": "string", + "description": "The prompt.", + "title": "Prompt" + }, + "mode": { + "type": "string", + "description": "Select a mode, each option generates different results. Melody is best for melody, music is best for full songs", + "title": "Mode", + "default": "melody", + "enum": [ + "melody", + "music" + ] + }, + "duration": { + "type": "integer", + "format": "int32", + "description": "Duration of the generated audio in seconds. Max 30 seconds.", + "title": "Duration" + } + }, + "required": [ + "duration", + "mode", + "prompt" + ] + } + } + ] + } + }, + "/v1/music/{inferenceId}": { + "get": { + "responses": { + "200": { + "description": "default", + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The identifier.", + "title": "ID" + }, + "createdAt": { + "type": "string", + "description": "When created at.", + "title": "Created At" + }, + "prompt": { + "type": "string", + "description": "The prompt.", + "title": "Prompt" + }, + "state": { + "type": "string", + "description": "The state.", + "title": "State" + }, + "media_uri": { + "type": "string", + "description": "The media URI.", + "title": "Media URI" + } + } + } + } + }, + "summary": "Get a music generation job", + "description": "Retrieve a specific music generation job.", + "operationId": "MusicGet", + "parameters": [ + { + "name": "inferenceId", + "in": "path", + "x-ms-summary": "Inference ID", + "x-ms-url-encoding": "single", + "description": "The identifier of the music generation job to retrieve.", + "required": true, + "type": "string", + "x-ms-dynamic-values": { + "operationId": "MusicsGet", + "value-path": "id", + "value-title": "prompt" + } + } + ] + } + } + }, + "definitions": {}, + "parameters": {}, + "responses": {}, + "securityDefinitions": { + "API Key": { + "type": "apiKey", + "in": "header", + "name": "Authorization" + } + }, + "security": [ + { + "API Key": [] + } + ], + "tags": [], + "x-ms-connector-metadata": [ + { + "propertyName": "Website", + "propertyValue": "https://tryleap.ai/" + }, + { + "propertyName": "Privacy policy", + "propertyValue": "https://app.getterms.io/view/dlM8u/privacy/en-us" + }, + { + "propertyName": "Categories", + "propertyValue": "AI" + } + ] +} \ No newline at end of file diff --git a/independent-publisher-connectors/Leap-Ai/apiProperties.json b/independent-publisher-connectors/Leap-Ai/apiProperties.json index 2789e0c22..735e2a399 100644 --- a/independent-publisher-connectors/Leap-Ai/apiProperties.json +++ b/independent-publisher-connectors/Leap-Ai/apiProperties.json @@ -1,23 +1,23 @@ -{ - "properties": { - "connectionParameters": { - "api_key": { - "type": "securestring", - "uiDefinition": { - "displayName": "API Key", - "description": "The API Key for this api", - "tooltip": "Provide your API Key", - "constraints": { - "tabIndex": 2, - "clearText": false, - "required": "true" - } - } - } - }, - "iconBrandColor": "#da3b01", - "capabilities": [], - "publisher": "Chandra Sekhar Malla", - "stackOwner": "Leap" - } -} +{ + "properties": { + "connectionParameters": { + "api_key": { + "type": "securestring", + "uiDefinition": { + "displayName": "API Key (in the form 'Bearer YOUR_API_KEY_HERE')", + "description": "The API Key (in the form 'Bearer YOUR_API_KEY_HERE') for this api", + "tooltip": "Provide your API Key (in the form 'Bearer YOUR_API_KEY_HERE')", + "constraints": { + "tabIndex": 2, + "clearText": false, + "required": "true" + } + } + } + }, + "iconBrandColor": "#da3b01", + "capabilities": [], + "publisher": "Chandra Sekhar, Troy Taylor", + "stackOwner": "Leap" + } +} \ No newline at end of file