Add Activepieces integration for workflow automation
- Add Activepieces fork with SmoothSchedule custom piece - Create integrations app with Activepieces service layer - Add embed token endpoint for iframe integration - Create Automations page with embedded workflow builder - Add sidebar visibility fix for embed mode - Add list inactive customers endpoint to Public API - Include SmoothSchedule triggers: event created/updated/cancelled - Include SmoothSchedule actions: create/update/cancel events, list resources/services/customers 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"extends": ["../../../../.eslintrc.json"],
|
||||
"ignorePatterns": ["!**/*"],
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
"files": ["*.ts", "*.tsx"],
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
"files": ["*.js", "*.jsx"],
|
||||
"rules": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
# pieces-stability-ai
|
||||
|
||||
This library was generated with [Nx](https://nx.dev).
|
||||
|
||||
## Running lint
|
||||
|
||||
Run `nx lint pieces-stability-ai` to execute the lint via [ESLint](https://eslint.org/).
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"name": "@activepieces/piece-stability-ai",
|
||||
"version": "0.1.17"
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"name": "pieces-stability-ai",
|
||||
"$schema": "../../../../node_modules/nx/schemas/project-schema.json",
|
||||
"sourceRoot": "packages/pieces/community/stability-ai/src",
|
||||
"projectType": "library",
|
||||
"targets": {
|
||||
"build": {
|
||||
"executor": "@nx/js:tsc",
|
||||
"outputs": [
|
||||
"{options.outputPath}"
|
||||
],
|
||||
"options": {
|
||||
"outputPath": "dist/packages/pieces/community/stability-ai",
|
||||
"tsConfig": "packages/pieces/community/stability-ai/tsconfig.lib.json",
|
||||
"packageJson": "packages/pieces/community/stability-ai/package.json",
|
||||
"main": "packages/pieces/community/stability-ai/src/index.ts",
|
||||
"assets": [
|
||||
"packages/pieces/community/stability-ai/*.md",
|
||||
{
|
||||
"input": "packages/pieces/community/stability-ai/src/i18n",
|
||||
"output": "./src/i18n",
|
||||
"glob": "**/!(i18n.json)"
|
||||
}
|
||||
],
|
||||
"buildableProjectDepsInPackageJsonType": "dependencies",
|
||||
"updateBuildableProjectDepsInPackageJson": true
|
||||
},
|
||||
"dependsOn": [
|
||||
"^build",
|
||||
"prebuild"
|
||||
]
|
||||
},
|
||||
"lint": {
|
||||
"executor": "@nx/eslint:lint",
|
||||
"outputs": [
|
||||
"{options.outputFile}"
|
||||
]
|
||||
},
|
||||
"prebuild": {
|
||||
"executor": "nx:run-commands",
|
||||
"options": {
|
||||
"cwd": "packages/pieces/community/stability-ai",
|
||||
"command": "bun install --no-save --silent"
|
||||
},
|
||||
"dependsOn": [
|
||||
"^build"
|
||||
]
|
||||
}
|
||||
},
|
||||
"tags": []
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"Stability AI": "Stability AI",
|
||||
"Generative AI video model based on the image model Stable Diffusion.": "Generative AI video model based on the image model Stable Diffusion.",
|
||||
"API Key": "API Key",
|
||||
"Please visit https://platform.stability.ai/docs/getting-started/authentication to get your API Key": "Please visit https://platform.stability.ai/docs/getting-started/authentication to get your API Key",
|
||||
"Text to Image": "Text to Image",
|
||||
"Custom API Call": "Custom API Call",
|
||||
"Generate an image using a text prompt": "Generate an image using a text prompt",
|
||||
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
||||
"Prompt": "Prompt",
|
||||
"cfg_scale": "cfg_scale",
|
||||
"height": "height",
|
||||
"width": "width",
|
||||
"samples": "samples",
|
||||
"steps": "steps",
|
||||
"weight": "weight",
|
||||
"clip_guidance_preset": "clip_guidance_preset",
|
||||
"style_preset": "style_preset",
|
||||
"Engine ID": "Engine ID",
|
||||
"Method": "Method",
|
||||
"Headers": "Headers",
|
||||
"Query Parameters": "Query Parameters",
|
||||
"Body": "Body",
|
||||
"No Error on Failure": "No Error on Failure",
|
||||
"Timeout (in seconds)": "Timeout (in seconds)",
|
||||
"The text to transform in image.": "The text to transform in image.",
|
||||
"How strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt) (MIN:0; MAX:35)": "How strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt) (MIN:0; MAX:35)",
|
||||
"Height of the image in pixels. Must be in increments of 64 and >= 128": "Height of the image in pixels. Must be in increments of 64 and >= 128",
|
||||
"Width of the image in pixels. Must be in increments of 64 and >= 128": "Width of the image in pixels. Must be in increments of 64 and >= 128",
|
||||
"Number of images to generate (MAX:10)": "Number of images to generate (MAX:10)",
|
||||
"Number of diffusion steps to run (MIN:10; MAX:150)": "Number of diffusion steps to run (MIN:10; MAX:150)",
|
||||
"Pass in a style preset to guide the image model towards a particular style.": "Pass in a style preset to guide the image model towards a particular style.",
|
||||
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
||||
"NONE": "NONE",
|
||||
"FAST_BLUE": "FAST_BLUE",
|
||||
"FAST_GREEN": "FAST_GREEN",
|
||||
"SIMPLE": "SIMPLE",
|
||||
"SLOW": "SLOW",
|
||||
"SLOWER": "SLOWER",
|
||||
"SLOWEST": "SLOWEST",
|
||||
"enhance": "enhance",
|
||||
"anime": "anime",
|
||||
"photographic": "photographic",
|
||||
"digital-art": "digital-art",
|
||||
"comic-book": "comic-book",
|
||||
"fantasy-art": "fantasy-art",
|
||||
"line-art": "line-art",
|
||||
"analog-film": "analog-film",
|
||||
"neon-punk": "neon-punk",
|
||||
"isometric": "isometric",
|
||||
"low-poly": "low-poly",
|
||||
"origami": "origami",
|
||||
"modeling-compound": "modeling-compound",
|
||||
"cinematic": "cinematic",
|
||||
"3d-model": "3d-model",
|
||||
"pixel-art": "pixel-art",
|
||||
"tile-texture": "tile-texture",
|
||||
"stable-diffusion-xl-1024-v1-0": "stable-diffusion-xl-1024-v1-0",
|
||||
"stable-diffusion-768-v2-1": "stable-diffusion-768-v2-1",
|
||||
"stable-diffusion-512-v2-1": "stable-diffusion-512-v2-1",
|
||||
"stable-diffusion-768-v2-0": "stable-diffusion-768-v2-0",
|
||||
"stable-diffusion-512-v2-0": "stable-diffusion-512-v2-0",
|
||||
"stable-diffusion-v1-5": "stable-diffusion-v1-5",
|
||||
"stable-diffusion-v1": "stable-diffusion-v1",
|
||||
"GET": "GET",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "DELETE",
|
||||
"HEAD": "HEAD"
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"Generative AI video model based on the image model Stable Diffusion.": "Generatives AI-Videomodell basierend auf dem Bildmodell Stable Diffusion.",
|
||||
"API Key": "API-Schlüssel",
|
||||
"Please visit https://platform.stability.ai/docs/getting-started/authentication to get your API Key": "Bitte besuche https://platform.stability.ai/docs/getting-started/authentication um deinen API-Schlüssel zu erhalten",
|
||||
"Text to Image": "Text zu Bild",
|
||||
"Custom API Call": "Eigener API-Aufruf",
|
||||
"Generate an image using a text prompt": "Erzeugen eines Bildes mit einer Texteingabe",
|
||||
"Make a custom API call to a specific endpoint": "Einen benutzerdefinierten API-Aufruf an einen bestimmten Endpunkt machen",
|
||||
"Prompt": "Prompt",
|
||||
"cfg_scale": "cfg_skala",
|
||||
"height": "Höhe",
|
||||
"width": "width",
|
||||
"samples": "proben",
|
||||
"steps": "schritte",
|
||||
"weight": "gewicht",
|
||||
"clip_guidance_preset": "clip_guide_preset",
|
||||
"style_preset": "style_preset",
|
||||
"Engine ID": "Motor-ID",
|
||||
"Method": "Methode",
|
||||
"Headers": "Kopfzeilen",
|
||||
"Query Parameters": "Abfrageparameter",
|
||||
"Body": "Körper",
|
||||
"Response is Binary ?": "Antwort ist binär?",
|
||||
"No Error on Failure": "Kein Fehler bei Fehler",
|
||||
"Timeout (in seconds)": "Timeout (in Sekunden)",
|
||||
"The text to transform in image.": "Der Text, der in Bild transformiert werden soll.",
|
||||
"How strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt) (MIN:0; MAX:35)": "Wie streng der Diffusionsprozess an den Text der Eingabeaufforderung hält (höhere Werte halten das Bild näher an den Prompt) (MIN:0; MAX:35)",
|
||||
"Height of the image in pixels. Must be in increments of 64 and >= 128": "Höhe des Bildes in Pixeln. Muss in Inkrementen von 64 und >= 128 liegen",
|
||||
"Width of the image in pixels. Must be in increments of 64 and >= 128": "Breite des Bildes in Pixeln. Muss in Inkrementen von 64 und >= 128 sein",
|
||||
"Number of images to generate (MAX:10)": "Anzahl der zu erstellenden Bilder (MAX:10)",
|
||||
"Number of diffusion steps to run (MIN:10; MAX:150)": "Anzahl der zu ausführenden Diffusionsschritte (MIN:10; MAX:150)",
|
||||
"Pass in a style preset to guide the image model towards a particular style.": "Übergeben Sie eine Stilvorgabe, um das Bildmodell zu einem bestimmten Stil zu führen.",
|
||||
"Authorization headers are injected automatically from your connection.": "Autorisierungs-Header werden automatisch von Ihrer Verbindung injiziert.",
|
||||
"Enable for files like PDFs, images, etc..": "Aktivieren für Dateien wie PDFs, Bilder, etc..",
|
||||
"NONE": "KEIN",
|
||||
"FAST_BLUE": "Fläche",
|
||||
"FAST_GREEN": "FAST_GREEN",
|
||||
"SIMPLE": "SIMPLE",
|
||||
"SLOW": "SLOW",
|
||||
"SLOWER": "SLOWER",
|
||||
"SLOWEST": "SLOWEST",
|
||||
"enhance": "verbessern",
|
||||
"anime": "Anime",
|
||||
"photographic": "fotografisch",
|
||||
"digital-art": "digital-art",
|
||||
"comic-book": "comic-Buch",
|
||||
"fantasy-art": "fantasy-art",
|
||||
"line-art": "Line-Art",
|
||||
"analog-film": "analog-Film",
|
||||
"neon-punk": "neon-punk",
|
||||
"isometric": "isometrisch",
|
||||
"low-poly": "niedrig polisch",
|
||||
"origami": "origami",
|
||||
"modeling-compound": "modellierende Verbindung",
|
||||
"cinematic": "filmisch",
|
||||
"3d-model": "3D-Modell",
|
||||
"pixel-art": "pixel-art",
|
||||
"tile-texture": "Kacheltextur",
|
||||
"stable-diffusion-xl-1024-v1-0": "stable-diffusion-xl-1024-v1-0",
|
||||
"stable-diffusion-768-v2-1": "stable-diffusion-768-v2-1",
|
||||
"stable-diffusion-512-v2-1": "stable-diffusion-512-v2-1",
|
||||
"stable-diffusion-768-v2-0": "stable-diffusion-768-v2-0",
|
||||
"stable-diffusion-512-v2-0": "stable-diffusion-512-v2-0",
|
||||
"stable-diffusion-v1-5": "stable-diffusion-v1-5",
|
||||
"stable-diffusion-v1": "stable-diffusion-v1",
|
||||
"GET": "ERHALTEN",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "LÖSCHEN",
|
||||
"HEAD": "HEAD"
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"Generative AI video model based on the image model Stable Diffusion.": "Modelo de vídeo AI generativo basado en el modelo de imagen Stable Diffusion.",
|
||||
"API Key": "Clave API",
|
||||
"Please visit https://platform.stability.ai/docs/getting-started/authentication to get your API Key": "Por favor visita https://platform.stability.ai/docs/getting-started/authentication para obtener tu clave API",
|
||||
"Text to Image": "Texto a imagen",
|
||||
"Custom API Call": "Llamada API personalizada",
|
||||
"Generate an image using a text prompt": "Generar una imagen usando un mensaje de texto",
|
||||
"Make a custom API call to a specific endpoint": "Hacer una llamada API personalizada a un extremo específico",
|
||||
"Prompt": "Petición",
|
||||
"cfg_scale": "escala de cfg",
|
||||
"height": "altura",
|
||||
"width": "width",
|
||||
"samples": "muestras",
|
||||
"steps": "pasos",
|
||||
"weight": "peso",
|
||||
"clip_guidance_preset": "preselección de guía",
|
||||
"style_preset": "style_preset",
|
||||
"Engine ID": "ID del motor",
|
||||
"Method": "Método",
|
||||
"Headers": "Encabezados",
|
||||
"Query Parameters": "Parámetros de consulta",
|
||||
"Body": "Cuerpo",
|
||||
"Response is Binary ?": "¿Respuesta es binaria?",
|
||||
"No Error on Failure": "No hay ningún error en fallo",
|
||||
"Timeout (in seconds)": "Tiempo de espera (en segundos)",
|
||||
"The text to transform in image.": "El texto a transformar en la imagen.",
|
||||
"How strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt) (MIN:0; MAX:35)": "Cuán estrictamente el proceso de difusión se adhiere al texto del prompt (valores más altos mantienen la imagen más cercana a la indicación) (MIN:0; MAX:35)",
|
||||
"Height of the image in pixels. Must be in increments of 64 and >= 128": "Altura de la imagen en píxeles. Debe estar en incrementos de 64 y >= 128",
|
||||
"Width of the image in pixels. Must be in increments of 64 and >= 128": "Ancho de la imagen en píxeles. Debe estar en incrementos de 64 y >= 128",
|
||||
"Number of images to generate (MAX:10)": "Número de imágenes a generar (MAX:10)",
|
||||
"Number of diffusion steps to run (MIN:10; MAX:150)": "Número de pasos de difusión a ejecutar (MIN:10; MAX:150)",
|
||||
"Pass in a style preset to guide the image model towards a particular style.": "Pase un ajuste de estilo para guiar el modelo de imagen hacia un estilo particular.",
|
||||
"Authorization headers are injected automatically from your connection.": "Las cabeceras de autorización se inyectan automáticamente desde tu conexión.",
|
||||
"Enable for files like PDFs, images, etc..": "Activar para archivos como PDFs, imágenes, etc.",
|
||||
"NONE": "NINGUNA",
|
||||
"FAST_BLUE": "PLAYLUE",
|
||||
"FAST_GREEN": "FALL_GROUND",
|
||||
"SIMPLE": "SIMPLE",
|
||||
"SLOW": "MÁS",
|
||||
"SLOWER": "SLOWER",
|
||||
"SLOWEST": "ESPECIAL",
|
||||
"enhance": "mejorar",
|
||||
"anime": "anime",
|
||||
"photographic": "fotográfica",
|
||||
"digital-art": "arte-digital",
|
||||
"comic-book": "historia-libro",
|
||||
"fantasy-art": "fantasy-art",
|
||||
"line-art": "línea-arte",
|
||||
"analog-film": "película analógica",
|
||||
"neon-punk": "neon-punk",
|
||||
"isometric": "isométrica",
|
||||
"low-poly": "polio bajo",
|
||||
"origami": "origen",
|
||||
"modeling-compound": "modelado-compuesto",
|
||||
"cinematic": "cinema",
|
||||
"3d-model": "Modelo 3d-",
|
||||
"pixel-art": "arte de píxeles",
|
||||
"tile-texture": "textura del azulejo",
|
||||
"stable-diffusion-xl-1024-v1-0": "estable-diffusion-xl-1024-v1-0",
|
||||
"stable-diffusion-768-v2-1": "establo-diffusion-768-v2-1",
|
||||
"stable-diffusion-512-v2-1": "establo-difusión-512-v2-1",
|
||||
"stable-diffusion-768-v2-0": "estable-diffusion-768-v2-0",
|
||||
"stable-diffusion-512-v2-0": "establo-difusión-512-v2-0",
|
||||
"stable-diffusion-v1-5": "establo-difusión-v1-5",
|
||||
"stable-diffusion-v1": "establo-difusión-v1",
|
||||
"GET": "RECOGER",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "BORRAR",
|
||||
"HEAD": "LIMPIO"
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"Generative AI video model based on the image model Stable Diffusion.": "Modèle vidéo IA générique basé sur le modèle d'image Diffusion stable.",
|
||||
"API Key": "Clé API",
|
||||
"Please visit https://platform.stability.ai/docs/getting-started/authentication to get your API Key": "Veuillez visiter https://platform.stability.ai/docs/getting-started/authentication pour obtenir votre clé API",
|
||||
"Text to Image": "Texte à l'image",
|
||||
"Custom API Call": "Appel d'API personnalisé",
|
||||
"Generate an image using a text prompt": "Générer une image en utilisant une invite de texte",
|
||||
"Make a custom API call to a specific endpoint": "Passer un appel API personnalisé à un endpoint spécifique",
|
||||
"Prompt": "Prompt",
|
||||
"cfg_scale": "cfg_scale",
|
||||
"height": "Hauteur",
|
||||
"width": "width",
|
||||
"samples": "échantillons",
|
||||
"steps": "steps",
|
||||
"weight": "Poids",
|
||||
"clip_guidance_preset": "Préréglage de guidage",
|
||||
"style_preset": "style_preset",
|
||||
"Engine ID": "ID du moteur",
|
||||
"Method": "Méthode",
|
||||
"Headers": "En-têtes",
|
||||
"Query Parameters": "Paramètres de requête",
|
||||
"Body": "Corps",
|
||||
"Response is Binary ?": "La réponse est Binaire ?",
|
||||
"No Error on Failure": "Aucune erreur en cas d'échec",
|
||||
"Timeout (in seconds)": "Délai d'expiration (en secondes)",
|
||||
"The text to transform in image.": "Le texte à transformer en image.",
|
||||
"How strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt) (MIN:0; MAX:35)": "Dans quelle mesure le processus de diffusion adhère strictement au texte de l'invite (des valeurs plus élevées rapprochent votre image de votre prompt) (MIN:0; MAX:35)",
|
||||
"Height of the image in pixels. Must be in increments of 64 and >= 128": "Hauteur de l'image en pixels. Doit être par incréments de 64 et >= 128",
|
||||
"Width of the image in pixels. Must be in increments of 64 and >= 128": "Largeur de l'image en pixels. Doit être par incréments de 64 et >= 128",
|
||||
"Number of images to generate (MAX:10)": "Nombre d'images à générer (MAX:10)",
|
||||
"Number of diffusion steps to run (MIN:10; MAX:150)": "Nombre d'étapes de diffusion à exécuter (MIN:10; MAX:150)",
|
||||
"Pass in a style preset to guide the image model towards a particular style.": "Passez dans un préréglage de style pour guider le modèle d'image vers un style particulier.",
|
||||
"Authorization headers are injected automatically from your connection.": "Les en-têtes d'autorisation sont injectés automatiquement à partir de votre connexion.",
|
||||
"Enable for files like PDFs, images, etc..": "Activer pour les fichiers comme les PDFs, les images, etc.",
|
||||
"NONE": "AUCUN",
|
||||
"FAST_BLUE": "Le plus proche est le bleu.",
|
||||
"FAST_GREEN": "FAST_GREEN",
|
||||
"SIMPLE": "SIMPLE",
|
||||
"SLOW": "EFFACER",
|
||||
"SLOWER": "RACCOURS",
|
||||
"SLOWEST": "RACCOURS",
|
||||
"enhance": "Améliorer",
|
||||
"anime": "Animé",
|
||||
"photographic": "photographique",
|
||||
"digital-art": "numérique-art",
|
||||
"comic-book": "BD",
|
||||
"fantasy-art": "fantasy-art",
|
||||
"line-art": "art de ligne",
|
||||
"analog-film": "film analogique",
|
||||
"neon-punk": "néon-punk",
|
||||
"isometric": "isométrique",
|
||||
"low-poly": "faible poly",
|
||||
"origami": "origami",
|
||||
"modeling-compound": "modélisation-composé",
|
||||
"cinematic": "cinématique",
|
||||
"3d-model": "Modèle 3D",
|
||||
"pixel-art": "Pixel",
|
||||
"tile-texture": "texture-tuiles",
|
||||
"stable-diffusion-xl-1024-v1-0": "diffusion-stable-xl-1024-v1-0",
|
||||
"stable-diffusion-768-v2-1": "diffusion-stable-768-v2-1",
|
||||
"stable-diffusion-512-v2-1": "diffusion-stable-512-v2-1",
|
||||
"stable-diffusion-768-v2-0": "diffusion-stable-768-v2-0",
|
||||
"stable-diffusion-512-v2-0": "diffusion-stable-512-v2-0",
|
||||
"stable-diffusion-v1-5": "diffusion-stable-v1-5",
|
||||
"stable-diffusion-v1": "diffusion-stable-v1",
|
||||
"GET": "GET",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "DELETE",
|
||||
"HEAD": "HEAD"
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"Stability AI": "Stability AI",
|
||||
"Generative AI video model based on the image model Stable Diffusion.": "Generative AI video model based on the image model Stable Diffusion.",
|
||||
"API Key": "API Key",
|
||||
"Please visit https://platform.stability.ai/docs/getting-started/authentication to get your API Key": "Please visit https://platform.stability.ai/docs/getting-started/authentication to get your API Key",
|
||||
"Text to Image": "Text to Image",
|
||||
"Custom API Call": "Custom API Call",
|
||||
"Generate an image using a text prompt": "Generate an image using a text prompt",
|
||||
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
||||
"Prompt": "Prompt",
|
||||
"cfg_scale": "cfg_scale",
|
||||
"height": "height",
|
||||
"width": "width",
|
||||
"samples": "samples",
|
||||
"steps": "steps",
|
||||
"weight": "weight",
|
||||
"clip_guidance_preset": "clip_guidance_preset",
|
||||
"style_preset": "style_preset",
|
||||
"Engine ID": "Engine ID",
|
||||
"Method": "Method",
|
||||
"Headers": "Headers",
|
||||
"Query Parameters": "Query Parameters",
|
||||
"Body": "Body",
|
||||
"No Error on Failure": "No Error on Failure",
|
||||
"Timeout (in seconds)": "Timeout (in seconds)",
|
||||
"The text to transform in image.": "The text to transform in image.",
|
||||
"How strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt) (MIN:0; MAX:35)": "How strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt) (MIN:0; MAX:35)",
|
||||
"Height of the image in pixels. Must be in increments of 64 and >= 128": "Height of the image in pixels. Must be in increments of 64 and >= 128",
|
||||
"Width of the image in pixels. Must be in increments of 64 and >= 128": "Width of the image in pixels. Must be in increments of 64 and >= 128",
|
||||
"Number of images to generate (MAX:10)": "Number of images to generate (MAX:10)",
|
||||
"Number of diffusion steps to run (MIN:10; MAX:150)": "Number of diffusion steps to run (MIN:10; MAX:150)",
|
||||
"Pass in a style preset to guide the image model towards a particular style.": "Pass in a style preset to guide the image model towards a particular style.",
|
||||
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
||||
"NONE": "NONE",
|
||||
"FAST_BLUE": "FAST_BLUE",
|
||||
"FAST_GREEN": "FAST_GREEN",
|
||||
"SIMPLE": "SIMPLE",
|
||||
"SLOW": "SLOW",
|
||||
"SLOWER": "SLOWER",
|
||||
"SLOWEST": "SLOWEST",
|
||||
"enhance": "enhance",
|
||||
"anime": "anime",
|
||||
"photographic": "photographic",
|
||||
"digital-art": "digital-art",
|
||||
"comic-book": "comic-book",
|
||||
"fantasy-art": "fantasy-art",
|
||||
"line-art": "line-art",
|
||||
"analog-film": "analog-film",
|
||||
"neon-punk": "neon-punk",
|
||||
"isometric": "isometric",
|
||||
"low-poly": "low-poly",
|
||||
"origami": "origami",
|
||||
"modeling-compound": "modeling-compound",
|
||||
"cinematic": "cinematic",
|
||||
"3d-model": "3d-model",
|
||||
"pixel-art": "pixel-art",
|
||||
"tile-texture": "tile-texture",
|
||||
"stable-diffusion-xl-1024-v1-0": "stable-diffusion-xl-1024-v1-0",
|
||||
"stable-diffusion-768-v2-1": "stable-diffusion-768-v2-1",
|
||||
"stable-diffusion-512-v2-1": "stable-diffusion-512-v2-1",
|
||||
"stable-diffusion-768-v2-0": "stable-diffusion-768-v2-0",
|
||||
"stable-diffusion-512-v2-0": "stable-diffusion-512-v2-0",
|
||||
"stable-diffusion-v1-5": "stable-diffusion-v1-5",
|
||||
"stable-diffusion-v1": "stable-diffusion-v1",
|
||||
"GET": "GET",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "DELETE",
|
||||
"HEAD": "HEAD"
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"Stability AI": "Stability AI",
|
||||
"Generative AI video model based on the image model Stable Diffusion.": "Generative AI video model based on the image model Stable Diffusion.",
|
||||
"API Key": "API Key",
|
||||
"Please visit https://platform.stability.ai/docs/getting-started/authentication to get your API Key": "Please visit https://platform.stability.ai/docs/getting-started/authentication to get your API Key",
|
||||
"Text to Image": "Text to Image",
|
||||
"Custom API Call": "Custom API Call",
|
||||
"Generate an image using a text prompt": "Generate an image using a text prompt",
|
||||
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
||||
"Prompt": "Prompt",
|
||||
"cfg_scale": "cfg_scale",
|
||||
"height": "height",
|
||||
"width": "width",
|
||||
"samples": "samples",
|
||||
"steps": "steps",
|
||||
"weight": "weight",
|
||||
"clip_guidance_preset": "clip_guidance_preset",
|
||||
"style_preset": "style_preset",
|
||||
"Engine ID": "Engine ID",
|
||||
"Method": "Method",
|
||||
"Headers": "Headers",
|
||||
"Query Parameters": "Query Parameters",
|
||||
"Body": "Body",
|
||||
"No Error on Failure": "No Error on Failure",
|
||||
"Timeout (in seconds)": "Timeout (in seconds)",
|
||||
"The text to transform in image.": "The text to transform in image.",
|
||||
"How strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt) (MIN:0; MAX:35)": "How strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt) (MIN:0; MAX:35)",
|
||||
"Height of the image in pixels. Must be in increments of 64 and >= 128": "Height of the image in pixels. Must be in increments of 64 and >= 128",
|
||||
"Width of the image in pixels. Must be in increments of 64 and >= 128": "Width of the image in pixels. Must be in increments of 64 and >= 128",
|
||||
"Number of images to generate (MAX:10)": "Number of images to generate (MAX:10)",
|
||||
"Number of diffusion steps to run (MIN:10; MAX:150)": "Number of diffusion steps to run (MIN:10; MAX:150)",
|
||||
"Pass in a style preset to guide the image model towards a particular style.": "Pass in a style preset to guide the image model towards a particular style.",
|
||||
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
||||
"NONE": "NONE",
|
||||
"FAST_BLUE": "FAST_BLUE",
|
||||
"FAST_GREEN": "FAST_GREEN",
|
||||
"SIMPLE": "SIMPLE",
|
||||
"SLOW": "SLOW",
|
||||
"SLOWER": "SLOWER",
|
||||
"SLOWEST": "SLOWEST",
|
||||
"enhance": "enhance",
|
||||
"anime": "anime",
|
||||
"photographic": "photographic",
|
||||
"digital-art": "digital-art",
|
||||
"comic-book": "comic-book",
|
||||
"fantasy-art": "fantasy-art",
|
||||
"line-art": "line-art",
|
||||
"analog-film": "analog-film",
|
||||
"neon-punk": "neon-punk",
|
||||
"isometric": "isometric",
|
||||
"low-poly": "low-poly",
|
||||
"origami": "origami",
|
||||
"modeling-compound": "modeling-compound",
|
||||
"cinematic": "cinematic",
|
||||
"3d-model": "3d-model",
|
||||
"pixel-art": "pixel-art",
|
||||
"tile-texture": "tile-texture",
|
||||
"stable-diffusion-xl-1024-v1-0": "stable-diffusion-xl-1024-v1-0",
|
||||
"stable-diffusion-768-v2-1": "stable-diffusion-768-v2-1",
|
||||
"stable-diffusion-512-v2-1": "stable-diffusion-512-v2-1",
|
||||
"stable-diffusion-768-v2-0": "stable-diffusion-768-v2-0",
|
||||
"stable-diffusion-512-v2-0": "stable-diffusion-512-v2-0",
|
||||
"stable-diffusion-v1-5": "stable-diffusion-v1-5",
|
||||
"stable-diffusion-v1": "stable-diffusion-v1",
|
||||
"GET": "GET",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "DELETE",
|
||||
"HEAD": "HEAD"
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"Generative AI video model based on the image model Stable Diffusion.": "画像モデル安定拡散をベースにしたAIビデオモデル。",
|
||||
"API Key": "API キー",
|
||||
"Please visit https://platform.stability.ai/docs/getting-started/authentication to get your API Key": "API キーを取得するには、https://platform.stability.ai/docs/getting-started/authentication をご覧ください。",
|
||||
"Text to Image": "テキストから画像へ",
|
||||
"Custom API Call": "カスタムAPI通話",
|
||||
"Generate an image using a text prompt": "テキストプロンプトを使用して画像を生成します",
|
||||
"Make a custom API call to a specific endpoint": "特定のエンドポイントへのカスタム API コールを実行します。",
|
||||
"Prompt": "Prompt",
|
||||
"cfg_scale": "cfg_scale",
|
||||
"height": "高さ",
|
||||
"width": "width",
|
||||
"samples": "samples",
|
||||
"steps": "歩数",
|
||||
"weight": "重量",
|
||||
"clip_guidance_preset": "clip_guidance_preset",
|
||||
"style_preset": "style_preset",
|
||||
"Engine ID": "エンジンID",
|
||||
"Method": "方法",
|
||||
"Headers": "ヘッダー",
|
||||
"Query Parameters": "クエリパラメータ",
|
||||
"Body": "本文",
|
||||
"Response is Binary ?": "応答はバイナリですか?",
|
||||
"No Error on Failure": "失敗時にエラーはありません",
|
||||
"Timeout (in seconds)": "タイムアウト(秒)",
|
||||
"The text to transform in image.": "画像に変換するテキスト。",
|
||||
"How strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt) (MIN:0; MAX:35)": "拡散プロセスがどのように厳密にプロンプトテキストに付着するか(高値で画像をプロンプトに近づけます) (MIN:0; MAX:35)",
|
||||
"Height of the image in pixels. Must be in increments of 64 and >= 128": "画像の高さをピクセルで指定します。64以上、128以下で入力してください。",
|
||||
"Width of the image in pixels. Must be in increments of 64 and >= 128": "画像の幅をピクセルで指定します。64 と > = 128 の単位でなければなりません",
|
||||
"Number of images to generate (MAX:10)": "生成する画像の数 (MAX:10)",
|
||||
"Number of diffusion steps to run (MIN:10; MAX:150)": "実行する拡散ステップの数 (MIN:10; MAX:150)",
|
||||
"Pass in a style preset to guide the image model towards a particular style.": "画像モデルを特定のスタイルに向かって導くために、スタイルプリセットを渡します。",
|
||||
"Authorization headers are injected automatically from your connection.": "認証ヘッダは接続から自動的に注入されます。",
|
||||
"Enable for files like PDFs, images, etc..": "PDF、画像などのファイルを有効にします。",
|
||||
"NONE": "なし",
|
||||
"FAST_BLUE": "高速ブルー",
|
||||
"FAST_GREEN": "FAST_GREEN",
|
||||
"SIMPLE": "簡単な",
|
||||
"SLOW": "Slow",
|
||||
"SLOWER": "SLOWER",
|
||||
"SLOWEST": "最小値",
|
||||
"enhance": "拡張",
|
||||
"anime": "アニメーション",
|
||||
"photographic": "写真",
|
||||
"digital-art": "digital-art",
|
||||
"comic-book": "コミックブック",
|
||||
"fantasy-art": "fantasy-art",
|
||||
"line-art": "ライン アート",
|
||||
"analog-film": "アナログフィルム",
|
||||
"neon-punk": "ネオンパンク",
|
||||
"isometric": "等角図",
|
||||
"low-poly": "低ポリー",
|
||||
"origami": "origami",
|
||||
"modeling-compound": "modeling-compound",
|
||||
"cinematic": "シネマティック",
|
||||
"3d-model": "3dモデル",
|
||||
"pixel-art": "ピクセルアート",
|
||||
"tile-texture": "タイルのテクスチャ設定",
|
||||
"stable-diffusion-xl-1024-v1-0": "stable-diffusion-xl-1024 v1-0",
|
||||
"stable-diffusion-768-v2-1": "stable-diffusion-768-v2-1",
|
||||
"stable-diffusion-512-v2-1": "stable-diffusion-512-v2-1",
|
||||
"stable-diffusion-768-v2-0": "stable-diffusion-768-v2-0",
|
||||
"stable-diffusion-512-v2-0": "stable-diffusion-512-v2-0",
|
||||
"stable-diffusion-v1-5": "stable-diffusion-v1-5",
|
||||
"stable-diffusion-v1": "stable-diffusion-v1",
|
||||
"GET": "取得",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "削除",
|
||||
"HEAD": "頭"
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"Generative AI video model based on the image model Stable Diffusion.": "Generatief AI videomodel gebaseerd op het afbeeldingsmodel Stabiele Diffusie.",
|
||||
"API Key": "API Sleutel",
|
||||
"Please visit https://platform.stability.ai/docs/getting-started/authentication to get your API Key": "Bezoek https://platform.stability.ai/docs/getting-started/authenticatie om uw API Key te krijgen",
|
||||
"Text to Image": "Tekst naar afbeelding",
|
||||
"Custom API Call": "Custom API Call",
|
||||
"Generate an image using a text prompt": "Een afbeelding genereren met behulp van een tekstprompt",
|
||||
"Make a custom API call to a specific endpoint": "Maak een aangepaste API call naar een specifiek eindpunt",
|
||||
"Prompt": "Prompt",
|
||||
"cfg_scale": "cfş-schaal",
|
||||
"height": "hoogte",
|
||||
"width": "width",
|
||||
"samples": "monsters",
|
||||
"steps": "stappen",
|
||||
"weight": "gewicht",
|
||||
"clip_guidance_preset": "clip_guidance_preset",
|
||||
"style_preset": "style_preset",
|
||||
"Engine ID": "Motor ID",
|
||||
"Method": "Methode",
|
||||
"Headers": "Kopteksten",
|
||||
"Query Parameters": "Query parameters",
|
||||
"Body": "Lichaam",
|
||||
"Response is Binary ?": "Antwoord is binair?",
|
||||
"No Error on Failure": "Geen fout bij fout",
|
||||
"Timeout (in seconds)": "Time-out (in seconden)",
|
||||
"The text to transform in image.": "De tekst om te zetten in afbeelding.",
|
||||
"How strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt) (MIN:0; MAX:35)": "Hoe strikt het diffusieproces zich houdt aan de prompte tekst (hogere waarden houden uw afbeelding dichter bij uw prompt) (MIN:0; MAX:35)",
|
||||
"Height of the image in pixels. Must be in increments of 64 and >= 128": "Hoogte van de afbeelding in pixels. Moet in stappen van 64 en > = 128 zijn.",
|
||||
"Width of the image in pixels. Must be in increments of 64 and >= 128": "Breedte van de afbeelding in pixels. Moet in stappen van 64 en > = 128 zijn.",
|
||||
"Number of images to generate (MAX:10)": "Aantal te genereren afbeeldingen (MAX:10)",
|
||||
"Number of diffusion steps to run (MIN:10; MAX:150)": "Aantal diffusie stappen uit te voeren (MIN: 10; MAX: 150)",
|
||||
"Pass in a style preset to guide the image model towards a particular style.": "Geef een voorinstelling in de stijl om het afbeeldingsmodel naar een bepaalde stijl te leiden.",
|
||||
"Authorization headers are injected automatically from your connection.": "Autorisatie headers worden automatisch geïnjecteerd vanuit uw verbinding.",
|
||||
"Enable for files like PDFs, images, etc..": "Inschakelen voor bestanden zoals PDF's, afbeeldingen etc..",
|
||||
"NONE": "GEEN",
|
||||
"FAST_BLUE": "FAST_BLUUW",
|
||||
"FAST_GREEN": "VIP_FRIEND_POPUP_BODY",
|
||||
"SIMPLE": "EERDERE",
|
||||
"SLOW": "SLAG",
|
||||
"SLOWER": "SLOWER",
|
||||
"SLOWEST": "SLOWEST",
|
||||
"enhance": "verbeteren",
|
||||
"anime": "anime",
|
||||
"photographic": "fotografisch",
|
||||
"digital-art": "digitaal-kunst",
|
||||
"comic-book": "stripboek",
|
||||
"fantasy-art": "fantasy-art",
|
||||
"line-art": "line-kunst",
|
||||
"analog-film": "analogische film",
|
||||
"neon-punk": "Neonpunk",
|
||||
"isometric": "isometrisch",
|
||||
"low-poly": "laag",
|
||||
"origami": "origami",
|
||||
"modeling-compound": "modellering-samenstelling",
|
||||
"cinematic": "cinematische",
|
||||
"3d-model": "3d-model",
|
||||
"pixel-art": "pixel-kunst",
|
||||
"tile-texture": "tegeltextuur",
|
||||
"stable-diffusion-xl-1024-v1-0": "stabiele-diffusion-xl-1024-v1-0",
|
||||
"stable-diffusion-768-v2-1": "stabiele-diffusion-768-v2-1",
|
||||
"stable-diffusion-512-v2-1": "stabiele-diffusion-512-v2-1",
|
||||
"stable-diffusion-768-v2-0": "stabiele-diffusion-768-v2-0",
|
||||
"stable-diffusion-512-v2-0": "stabiele-diffusion-512-v2-0",
|
||||
"stable-diffusion-v1-5": "stabiele-diffusion-v1-5",
|
||||
"stable-diffusion-v1": "stabiel-diffusion-v1",
|
||||
"GET": "KRIJG",
|
||||
"POST": "POSTE",
|
||||
"PATCH": "BEKIJK",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "VERWIJDEREN",
|
||||
"HEAD": "HOOFD"
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"Generative AI video model based on the image model Stable Diffusion.": "Modelo de vídeo ATI gerativo baseado no modelo de imagem de Difusão Estável.",
|
||||
"API Key": "Chave de API",
|
||||
"Please visit https://platform.stability.ai/docs/getting-started/authentication to get your API Key": "Visite https://platform.stability.ai/docs/getting-started/authentication para obter sua chave API",
|
||||
"Text to Image": "Texto para Imagem",
|
||||
"Custom API Call": "Chamada de API personalizada",
|
||||
"Generate an image using a text prompt": "Gerar uma imagem usando um prompt de texto",
|
||||
"Make a custom API call to a specific endpoint": "Faça uma chamada de API personalizada para um ponto de extremidade específico",
|
||||
"Prompt": "Aviso",
|
||||
"cfg_scale": "escala_cc",
|
||||
"height": "Altura",
|
||||
"width": "width",
|
||||
"samples": "amostras",
|
||||
"steps": "passos",
|
||||
"weight": "Peso",
|
||||
"clip_guidance_preset": "orientação_do_clip_predefinição",
|
||||
"style_preset": "style_preset",
|
||||
"Engine ID": "ID do motor",
|
||||
"Method": "Método",
|
||||
"Headers": "Cabeçalhos",
|
||||
"Query Parameters": "Parâmetros da consulta",
|
||||
"Body": "Conteúdo",
|
||||
"Response is Binary ?": "A resposta é binária ?",
|
||||
"No Error on Failure": "Nenhum erro no Failure",
|
||||
"Timeout (in seconds)": "Tempo limite (em segundos)",
|
||||
"The text to transform in image.": "O texto para transformar na imagem.",
|
||||
"How strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt) (MIN:0; MAX:35)": "O quão estritamente o processo de difusão segue o texto do prompt (valores maiores mantêm sua imagem mais perto de seu prompt) (MIN:0; MAX:35)",
|
||||
"Height of the image in pixels. Must be in increments of 64 and >= 128": "Altura da imagem em pixels. Deve ser em incrementos de 64 e >= 128",
|
||||
"Width of the image in pixels. Must be in increments of 64 and >= 128": "Largura da imagem em pixels. Deve estar em incrementos de 64 e >= 128",
|
||||
"Number of images to generate (MAX:10)": "Número de imagens a gerar (MAX:10)",
|
||||
"Number of diffusion steps to run (MIN:10; MAX:150)": "Número de passos de difusão para executar (MIN:10; MAX:150)",
|
||||
"Pass in a style preset to guide the image model towards a particular style.": "Passe uma predefinição de estilo para guiar o modelo da imagem em direção a um estilo específico.",
|
||||
"Authorization headers are injected automatically from your connection.": "Os cabeçalhos de autorização são inseridos automaticamente a partir da sua conexão.",
|
||||
"Enable for files like PDFs, images, etc..": "Habilitar para arquivos como PDFs, imagens, etc..",
|
||||
"NONE": "NADA",
|
||||
"FAST_BLUE": "EDIT_DESCRIPTION",
|
||||
"FAST_GREEN": "PLAYLIST_DEACTIVATE_TEXT",
|
||||
"SIMPLE": "SIMPLEO",
|
||||
"SLOW": "LIGAR",
|
||||
"SLOWER": "MUITO",
|
||||
"SLOWEST": "MENOS",
|
||||
"enhance": "melhore",
|
||||
"anime": "anime",
|
||||
"photographic": "fotografia",
|
||||
"digital-art": "Arte digital",
|
||||
"comic-book": "quadrinho-livro",
|
||||
"fantasy-art": "fantasy-art",
|
||||
"line-art": "arta-linha",
|
||||
"analog-film": "filme-analógico",
|
||||
"neon-punk": "punk",
|
||||
"isometric": "isométrico",
|
||||
"low-poly": "poly baixa",
|
||||
"origami": "origami",
|
||||
"modeling-compound": "composto-modelo",
|
||||
"cinematic": "cinemático",
|
||||
"3d-model": "3d-modelo",
|
||||
"pixel-art": "pixel-arte",
|
||||
"tile-texture": "textura",
|
||||
"stable-diffusion-xl-1024-v1-0": "stable-diffusion-xl-1024-v1-0",
|
||||
"stable-diffusion-768-v2-1": "stable-diffusion-768-v2-1",
|
||||
"stable-diffusion-512-v2-1": "stable-diffusion-512-v2-1",
|
||||
"stable-diffusion-768-v2-0": "stable-diffusion-768-v2-0",
|
||||
"stable-diffusion-512-v2-0": "stable-diffusion-512-v2-0",
|
||||
"stable-diffusion-v1-5": "estável-diffusion-v1-5",
|
||||
"stable-diffusion-v1": "estável-diffusion-v1",
|
||||
"GET": "OBTER",
|
||||
"POST": "POSTAR",
|
||||
"PATCH": "COMPRAR",
|
||||
"PUT": "COLOCAR",
|
||||
"DELETE": "EXCLUIR",
|
||||
"HEAD": "CABEÇA"
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"Stability AI": "ИИ стабильности",
|
||||
"Generative AI video model based on the image model Stable Diffusion.": "Генерация видеомодели ИИ на основе модели Стабильной Диффузии изображения.",
|
||||
"API Key": "Ключ API",
|
||||
"Please visit https://platform.stability.ai/docs/getting-started/authentication to get your API Key": "Пожалуйста, посетите https://platform.stability.ai/docs/getting-started/authentication для получения API Key",
|
||||
"Text to Image": "Текст на изображение",
|
||||
"Custom API Call": "Пользовательский вызов API",
|
||||
"Generate an image using a text prompt": "Создать изображение с помощью текстовой подсказки",
|
||||
"Make a custom API call to a specific endpoint": "Сделать пользовательский API вызов к определенной конечной точке",
|
||||
"Prompt": "Prompt",
|
||||
"cfg_scale": "масштабирование",
|
||||
"height": "высота",
|
||||
"width": "width",
|
||||
"samples": "образцы",
|
||||
"steps": "шаги",
|
||||
"weight": "вес",
|
||||
"clip_guidance_preset": "пресет clip_guidance_",
|
||||
"style_preset": "style_preset",
|
||||
"Engine ID": "ID движка",
|
||||
"Method": "Метод",
|
||||
"Headers": "Заголовки",
|
||||
"Query Parameters": "Параметры запроса",
|
||||
"Body": "Тело",
|
||||
"No Error on Failure": "Нет ошибок при ошибке",
|
||||
"Timeout (in seconds)": "Таймаут (в секундах)",
|
||||
"The text to transform in image.": "Текст для преобразования в изображении.",
|
||||
"How strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt) (MIN:0; MAX:35)": "Как строго процесс рассеивания придерживается текста подсказки (более высокие значения приближают ваше изображение к запросу) (MIN:0; MAX:35)",
|
||||
"Height of the image in pixels. Must be in increments of 64 and >= 128": "Высота изображения в пикселях. Должно быть от 64 до >= 128",
|
||||
"Width of the image in pixels. Must be in increments of 64 and >= 128": "Ширина изображения в пикселях. Должно быть от 64 до >= 128",
|
||||
"Number of images to generate (MAX:10)": "Количество изображений для генерации (MAX:10)",
|
||||
"Number of diffusion steps to run (MIN:10; MAX:150)": "Количество шагов рассеивания (MIN:10; MAX:150)",
|
||||
"Pass in a style preset to guide the image model towards a particular style.": "Пройдите по шаблону стиля, чтобы направить модель изображения к определенному стилю.",
|
||||
"Authorization headers are injected automatically from your connection.": "Заголовки авторизации включаются автоматически из вашего соединения.",
|
||||
"NONE": "НЕТ",
|
||||
"FAST_BLUE": "FAST_BTN",
|
||||
"FAST_GREEN": "FAST_GREEN",
|
||||
"SIMPLE": "ПРОСТОЙ",
|
||||
"SLOW": "ЗНАЧЕНИЕ",
|
||||
"SLOWER": "ГЛАВА",
|
||||
"SLOWEST": "ГОРЯЧАЯ",
|
||||
"enhance": "улучшить",
|
||||
"anime": "аниме",
|
||||
"photographic": "фотограф",
|
||||
"digital-art": "цифровой арт",
|
||||
"comic-book": "книга комиксов",
|
||||
"fantasy-art": "fantasy-art",
|
||||
"line-art": "линейный арт",
|
||||
"analog-film": "аналоговая пленка",
|
||||
"neon-punk": "нео-панк",
|
||||
"isometric": "изометрическая",
|
||||
"low-poly": "низкий полис",
|
||||
"origami": "оригами",
|
||||
"modeling-compound": "моделирование-составные",
|
||||
"cinematic": "кинотеатр",
|
||||
"3d-model": "3d-модель",
|
||||
"pixel-art": "пиксель-арт",
|
||||
"tile-texture": "тайл-текстура",
|
||||
"stable-diffusion-xl-1024-v1-0": "стойкая диффузия-xl-1024-v1-0",
|
||||
"stable-diffusion-768-v2-1": "стойкая диффузия-768-v2-1",
|
||||
"stable-diffusion-512-v2-1": "стойкая диффузия-512-v2-1",
|
||||
"stable-diffusion-768-v2-0": "стойкая диффузия-768-v2-0",
|
||||
"stable-diffusion-512-v2-0": "стойкая диффузия-512-v2-0",
|
||||
"stable-diffusion-v1-5": "стойкая диффузия v1-5",
|
||||
"stable-diffusion-v1": "стойкая диффузия v1",
|
||||
"GET": "ПОЛУЧИТЬ",
|
||||
"POST": "ПОСТ",
|
||||
"PATCH": "ПАТЧ",
|
||||
"PUT": "ПОКУПИТЬ",
|
||||
"DELETE": "УДАЛИТЬ",
|
||||
"HEAD": "HEAD"
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"Generative AI video model based on the image model Stable Diffusion.": "Generative AI video model based on the image model Stable Diffusion.",
|
||||
"API Key": "API Key",
|
||||
"Please visit https://platform.stability.ai/docs/getting-started/authentication to get your API Key": "Please visit https://platform.stability.ai/docs/getting-started/authentication to get your API Key",
|
||||
"Text to Image": "Text to Image",
|
||||
"Custom API Call": "Custom API Call",
|
||||
"Generate an image using a text prompt": "Generate an image using a text prompt",
|
||||
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
||||
"Prompt": "Prompt",
|
||||
"cfg_scale": "cfg_scale",
|
||||
"height": "height",
|
||||
"width": "width",
|
||||
"samples": "samples",
|
||||
"steps": "steps",
|
||||
"weight": "weight",
|
||||
"clip_guidance_preset": "clip_guidance_preset",
|
||||
"style_preset": "style_preset",
|
||||
"Engine ID": "Engine ID",
|
||||
"Method": "Method",
|
||||
"Headers": "Headers",
|
||||
"Query Parameters": "Query Parameters",
|
||||
"Body": "Body",
|
||||
"Response is Binary ?": "Response is Binary ?",
|
||||
"No Error on Failure": "No Error on Failure",
|
||||
"Timeout (in seconds)": "Timeout (in seconds)",
|
||||
"The text to transform in image.": "The text to transform in image.",
|
||||
"How strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt) (MIN:0; MAX:35)": "How strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt) (MIN:0; MAX:35)",
|
||||
"Height of the image in pixels. Must be in increments of 64 and >= 128": "Height of the image in pixels. Must be in increments of 64 and >= 128",
|
||||
"Width of the image in pixels. Must be in increments of 64 and >= 128": "Width of the image in pixels. Must be in increments of 64 and >= 128",
|
||||
"Number of images to generate (MAX:10)": "Number of images to generate (MAX:10)",
|
||||
"Number of diffusion steps to run (MIN:10; MAX:150)": "Number of diffusion steps to run (MIN:10; MAX:150)",
|
||||
"Pass in a style preset to guide the image model towards a particular style.": "Pass in a style preset to guide the image model towards a particular style.",
|
||||
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
||||
"Enable for files like PDFs, images, etc..": "Enable for files like PDFs, images, etc..",
|
||||
"NONE": "NONE",
|
||||
"FAST_BLUE": "FAST_BLUE",
|
||||
"FAST_GREEN": "FAST_GREEN",
|
||||
"SIMPLE": "SIMPLE",
|
||||
"SLOW": "SLOW",
|
||||
"SLOWER": "SLOWER",
|
||||
"SLOWEST": "SLOWEST",
|
||||
"enhance": "enhance",
|
||||
"anime": "anime",
|
||||
"photographic": "photographic",
|
||||
"digital-art": "digital-art",
|
||||
"comic-book": "comic-book",
|
||||
"fantasy-art": "fantasy-art",
|
||||
"line-art": "line-art",
|
||||
"analog-film": "analog-film",
|
||||
"neon-punk": "neon-punk",
|
||||
"isometric": "isometric",
|
||||
"low-poly": "low-poly",
|
||||
"origami": "origami",
|
||||
"modeling-compound": "modeling-compound",
|
||||
"cinematic": "cinematic",
|
||||
"3d-model": "3d-model",
|
||||
"pixel-art": "pixel-art",
|
||||
"tile-texture": "tile-texture",
|
||||
"stable-diffusion-xl-1024-v1-0": "stable-diffusion-xl-1024-v1-0",
|
||||
"stable-diffusion-768-v2-1": "stable-diffusion-768-v2-1",
|
||||
"stable-diffusion-512-v2-1": "stable-diffusion-512-v2-1",
|
||||
"stable-diffusion-768-v2-0": "stable-diffusion-768-v2-0",
|
||||
"stable-diffusion-512-v2-0": "stable-diffusion-512-v2-0",
|
||||
"stable-diffusion-v1-5": "stable-diffusion-v1-5",
|
||||
"stable-diffusion-v1": "stable-diffusion-v1",
|
||||
"GET": "GET",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "DELETE",
|
||||
"HEAD": "HEAD"
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"Stability AI": "Stability AI",
|
||||
"Generative AI video model based on the image model Stable Diffusion.": "Generative AI video model based on the image model Stable Diffusion.",
|
||||
"API Key": "API Key",
|
||||
"Please visit https://platform.stability.ai/docs/getting-started/authentication to get your API Key": "Please visit https://platform.stability.ai/docs/getting-started/authentication to get your API Key",
|
||||
"Text to Image": "Text to Image",
|
||||
"Custom API Call": "Custom API Call",
|
||||
"Generate an image using a text prompt": "Generate an image using a text prompt",
|
||||
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
||||
"Prompt": "Prompt",
|
||||
"cfg_scale": "cfg_scale",
|
||||
"height": "height",
|
||||
"width": "width",
|
||||
"samples": "samples",
|
||||
"steps": "bước",
|
||||
"weight": "weight",
|
||||
"clip_guidance_preset": "clip_guidance_preset",
|
||||
"style_preset": "style_preset",
|
||||
"Engine ID": "Engine ID",
|
||||
"Method": "Method",
|
||||
"Headers": "Headers",
|
||||
"Query Parameters": "Query Parameters",
|
||||
"Body": "Body",
|
||||
"No Error on Failure": "No Error on Failure",
|
||||
"Timeout (in seconds)": "Timeout (in seconds)",
|
||||
"The text to transform in image.": "The text to transform in image.",
|
||||
"How strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt) (MIN:0; MAX:35)": "How strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt) (MIN:0; MAX:35)",
|
||||
"Height of the image in pixels. Must be in increments of 64 and >= 128": "Height of the image in pixels. Must be in increments of 64 and >= 128",
|
||||
"Width of the image in pixels. Must be in increments of 64 and >= 128": "Width of the image in pixels. Must be in increments of 64 and >= 128",
|
||||
"Number of images to generate (MAX:10)": "Number of images to generate (MAX:10)",
|
||||
"Number of diffusion steps to run (MIN:10; MAX:150)": "Number of diffusion steps to run (MIN:10; MAX:150)",
|
||||
"Pass in a style preset to guide the image model towards a particular style.": "Pass in a style preset to guide the image model towards a particular style.",
|
||||
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
||||
"NONE": "NONE",
|
||||
"FAST_BLUE": "FAST_BLUE",
|
||||
"FAST_GREEN": "FAST_GREEN",
|
||||
"SIMPLE": "SIMPLE",
|
||||
"SLOW": "SLOW",
|
||||
"SLOWER": "SLOWER",
|
||||
"SLOWEST": "SLOWEST",
|
||||
"enhance": "enhance",
|
||||
"anime": "anime",
|
||||
"photographic": "photographic",
|
||||
"digital-art": "digital-art",
|
||||
"comic-book": "comic-book",
|
||||
"fantasy-art": "fantasy-art",
|
||||
"line-art": "line-art",
|
||||
"analog-film": "analog-film",
|
||||
"neon-punk": "neon-punk",
|
||||
"isometric": "isometric",
|
||||
"low-poly": "low-poly",
|
||||
"origami": "origami",
|
||||
"modeling-compound": "modeling-compound",
|
||||
"cinematic": "cinematic",
|
||||
"3d-model": "3d-model",
|
||||
"pixel-art": "pixel-art",
|
||||
"tile-texture": "tile-texture",
|
||||
"stable-diffusion-xl-1024-v1-0": "stable-diffusion-xl-1024-v1-0",
|
||||
"stable-diffusion-768-v2-1": "stable-diffusion-768-v2-1",
|
||||
"stable-diffusion-512-v2-1": "stable-diffusion-512-v2-1",
|
||||
"stable-diffusion-768-v2-0": "stable-diffusion-768-v2-0",
|
||||
"stable-diffusion-512-v2-0": "stable-diffusion-512-v2-0",
|
||||
"stable-diffusion-v1-5": "stable-diffusion-v1-5",
|
||||
"stable-diffusion-v1": "stable-diffusion-v1",
|
||||
"GET": "GET",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "DELETE",
|
||||
"HEAD": "HEAD"
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"Generative AI video model based on the image model Stable Diffusion.": "Generative AI video model based on the image model Stable Diffusion.",
|
||||
"API Key": "API 密钥",
|
||||
"Please visit https://platform.stability.ai/docs/getting-started/authentication to get your API Key": "Please visit https://platform.stability.ai/docs/getting-started/authentication to get your API Key",
|
||||
"Text to Image": "Text to Image",
|
||||
"Custom API Call": "自定义 API 呼叫",
|
||||
"Generate an image using a text prompt": "Generate an image using a text prompt",
|
||||
"Make a custom API call to a specific endpoint": "将一个自定义 API 调用到一个特定的终点",
|
||||
"Prompt": "Prompt",
|
||||
"cfg_scale": "cfg_scale",
|
||||
"height": "height",
|
||||
"width": "width",
|
||||
"samples": "samples",
|
||||
"steps": "steps",
|
||||
"weight": "weight",
|
||||
"clip_guidance_preset": "clip_guidance_preset",
|
||||
"style_preset": "style_preset",
|
||||
"Engine ID": "Engine ID",
|
||||
"Method": "方法",
|
||||
"Headers": "信头",
|
||||
"Query Parameters": "查询参数",
|
||||
"Body": "正文内容",
|
||||
"Response is Binary ?": "Response is Binary ?",
|
||||
"No Error on Failure": "失败时没有错误",
|
||||
"Timeout (in seconds)": "超时(秒)",
|
||||
"The text to transform in image.": "The text to transform in image.",
|
||||
"How strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt) (MIN:0; MAX:35)": "How strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt) (MIN:0; MAX:35)",
|
||||
"Height of the image in pixels. Must be in increments of 64 and >= 128": "Height of the image in pixels. Must be in increments of 64 and >= 128",
|
||||
"Width of the image in pixels. Must be in increments of 64 and >= 128": "Width of the image in pixels. Must be in increments of 64 and >= 128",
|
||||
"Number of images to generate (MAX:10)": "Number of images to generate (MAX:10)",
|
||||
"Number of diffusion steps to run (MIN:10; MAX:150)": "Number of diffusion steps to run (MIN:10; MAX:150)",
|
||||
"Pass in a style preset to guide the image model towards a particular style.": "Pass in a style preset to guide the image model towards a particular style.",
|
||||
"Authorization headers are injected automatically from your connection.": "授权头自动从您的连接中注入。",
|
||||
"Enable for files like PDFs, images, etc..": "Enable for files like PDFs, images, etc..",
|
||||
"NONE": "NONE",
|
||||
"FAST_BLUE": "FAST_BLUE",
|
||||
"FAST_GREEN": "FAST_GREEN",
|
||||
"SIMPLE": "SIMPLE",
|
||||
"SLOW": "SLOW",
|
||||
"SLOWER": "SLOWER",
|
||||
"SLOWEST": "SLOWEST",
|
||||
"enhance": "enhance",
|
||||
"anime": "anime",
|
||||
"photographic": "photographic",
|
||||
"digital-art": "digital-art",
|
||||
"comic-book": "comic-book",
|
||||
"fantasy-art": "fantasy-art",
|
||||
"line-art": "line-art",
|
||||
"analog-film": "analog-film",
|
||||
"neon-punk": "neon-punk",
|
||||
"isometric": "isometric",
|
||||
"low-poly": "low-poly",
|
||||
"origami": "origami",
|
||||
"modeling-compound": "modeling-compound",
|
||||
"cinematic": "cinematic",
|
||||
"3d-model": "3d-model",
|
||||
"pixel-art": "pixel-art",
|
||||
"tile-texture": "tile-texture",
|
||||
"stable-diffusion-xl-1024-v1-0": "stable-diffusion-xl-1024-v1-0",
|
||||
"stable-diffusion-768-v2-1": "stable-diffusion-768-v2-1",
|
||||
"stable-diffusion-512-v2-1": "stable-diffusion-512-v2-1",
|
||||
"stable-diffusion-768-v2-0": "stable-diffusion-768-v2-0",
|
||||
"stable-diffusion-512-v2-0": "stable-diffusion-512-v2-0",
|
||||
"stable-diffusion-v1-5": "stable-diffusion-v1-5",
|
||||
"stable-diffusion-v1": "stable-diffusion-v1",
|
||||
"GET": "获取",
|
||||
"POST": "帖子",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "弹出",
|
||||
"DELETE": "删除",
|
||||
"HEAD": "黑色"
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
import { createCustomApiCallAction } from '@activepieces/pieces-common';
|
||||
import {
|
||||
PieceAuth,
|
||||
Property,
|
||||
createPiece,
|
||||
} from '@activepieces/pieces-framework';
|
||||
import { PieceCategory } from '@activepieces/shared';
|
||||
import { textToImage } from './lib/actions/text-to-image';
|
||||
|
||||
export const stabilityAiAuth = PieceAuth.CustomAuth({
|
||||
description: `Please visit https://platform.stability.ai/docs/getting-started/authentication to get your API Key`,
|
||||
props: {
|
||||
api_key: Property.ShortText({
|
||||
displayName: 'API Key',
|
||||
required: true,
|
||||
}),
|
||||
},
|
||||
required: true,
|
||||
});
|
||||
|
||||
export const stabilityAi = createPiece({
|
||||
displayName: 'Stability AI',
|
||||
description:
|
||||
'Generative AI video model based on the image model Stable Diffusion.',
|
||||
|
||||
minimumSupportedRelease: '0.30.0',
|
||||
logoUrl: 'https://cdn.activepieces.com/pieces/stability-ai.png',
|
||||
categories: [PieceCategory.ARTIFICIAL_INTELLIGENCE],
|
||||
authors: ["Willianwg","camilou","kishanprmr","MoShizzle","AbdulTheActivePiecer","khaledmashaly","abuaboud"],
|
||||
auth: stabilityAiAuth,
|
||||
actions: [
|
||||
textToImage,
|
||||
createCustomApiCallAction({
|
||||
baseUrl: () => 'https://api.stability.ai/v1',
|
||||
auth: stabilityAiAuth,
|
||||
authMapping: async (auth) => ({
|
||||
Authorization: `Bearer ${auth.props.api_key}`,
|
||||
}),
|
||||
}),
|
||||
],
|
||||
triggers: [],
|
||||
});
|
||||
@@ -0,0 +1,286 @@
|
||||
import { createAction, Property } from '@activepieces/pieces-framework';
|
||||
import {
|
||||
httpClient,
|
||||
HttpMethod,
|
||||
HttpRequest,
|
||||
} from '@activepieces/pieces-common';
|
||||
import { stabilityAiAuth } from '../..';
|
||||
|
||||
export const textToImage = createAction({
|
||||
auth: stabilityAiAuth,
|
||||
name: 'text-to-image',
|
||||
displayName: 'Text to Image',
|
||||
description: 'Generate an image using a text prompt',
|
||||
props: {
|
||||
prompt: Property.ShortText({
|
||||
displayName: 'Prompt',
|
||||
required: true,
|
||||
description: 'The text to transform in image.',
|
||||
}),
|
||||
cfg_scale: Property.Number({
|
||||
displayName: 'cfg_scale',
|
||||
description:
|
||||
'How strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt) (MIN:0; MAX:35)',
|
||||
required: false,
|
||||
defaultValue: 7,
|
||||
}),
|
||||
height: Property.Number({
|
||||
displayName: 'height',
|
||||
description:
|
||||
'Height of the image in pixels. Must be in increments of 64 and >= 128',
|
||||
required: false,
|
||||
}),
|
||||
width: Property.Number({
|
||||
displayName: 'width',
|
||||
description:
|
||||
'Width of the image in pixels. Must be in increments of 64 and >= 128',
|
||||
required: false,
|
||||
}),
|
||||
samples: Property.ShortText({
|
||||
displayName: 'samples',
|
||||
description: 'Number of images to generate (MAX:10)',
|
||||
required: false,
|
||||
}),
|
||||
steps: Property.Number({
|
||||
displayName: 'steps',
|
||||
description: 'Number of diffusion steps to run (MIN:10; MAX:150)',
|
||||
required: false,
|
||||
}),
|
||||
weight: Property.Number({
|
||||
displayName: 'weight',
|
||||
defaultValue: 1,
|
||||
required: false,
|
||||
}),
|
||||
clip_guidance_preset: Property.StaticDropdown({
|
||||
displayName: 'clip_guidance_preset',
|
||||
required: false,
|
||||
options: {
|
||||
options: [
|
||||
{
|
||||
label: 'NONE',
|
||||
value: 'NONE',
|
||||
},
|
||||
{
|
||||
label: 'FAST_BLUE',
|
||||
value: 'FAST_BLUE',
|
||||
},
|
||||
{
|
||||
label: 'FAST_GREEN',
|
||||
value: 'FAST_GREEN',
|
||||
},
|
||||
{
|
||||
label: 'SIMPLE',
|
||||
value: 'SIMPLE',
|
||||
},
|
||||
{
|
||||
label: 'SLOW',
|
||||
value: 'SLOW',
|
||||
},
|
||||
{
|
||||
label: 'SLOWER',
|
||||
value: 'SLOWER',
|
||||
},
|
||||
{
|
||||
label: 'SLOWEST',
|
||||
value: 'SLOWEST',
|
||||
},
|
||||
],
|
||||
},
|
||||
}),
|
||||
style_preset: Property.StaticDropdown({
|
||||
displayName: 'style_preset',
|
||||
required: false,
|
||||
description:
|
||||
'Pass in a style preset to guide the image model towards a particular style.',
|
||||
options: {
|
||||
options: [
|
||||
{
|
||||
label: 'enhance',
|
||||
value: 'enhance',
|
||||
},
|
||||
{
|
||||
label: 'anime',
|
||||
value: 'anime',
|
||||
},
|
||||
{
|
||||
label: 'photographic',
|
||||
value: 'photographic',
|
||||
},
|
||||
{
|
||||
label: 'digital-art',
|
||||
value: 'digital-art',
|
||||
},
|
||||
{
|
||||
label: 'comic-book',
|
||||
value: 'comic-book',
|
||||
},
|
||||
{
|
||||
label: 'fantasy-art',
|
||||
value: 'fantasy-art',
|
||||
},
|
||||
{
|
||||
label: 'line-art',
|
||||
value: 'line-art',
|
||||
},
|
||||
{
|
||||
label: 'analog-film',
|
||||
value: 'analog-film',
|
||||
},
|
||||
{
|
||||
label: 'neon-punk',
|
||||
value: 'neon-punk',
|
||||
},
|
||||
{
|
||||
label: 'isometric',
|
||||
value: 'isometric',
|
||||
},
|
||||
{
|
||||
label: 'low-poly',
|
||||
value: 'low-poly',
|
||||
},
|
||||
{
|
||||
label: 'origami',
|
||||
value: 'origami',
|
||||
},
|
||||
{
|
||||
label: 'modeling-compound',
|
||||
value: 'modeling-compound',
|
||||
},
|
||||
{
|
||||
label: 'cinematic',
|
||||
value: 'cinematic',
|
||||
},
|
||||
{
|
||||
label: '3d-model',
|
||||
value: '3d-model',
|
||||
},
|
||||
{
|
||||
label: 'pixel-art',
|
||||
value: 'pixel-art',
|
||||
},
|
||||
{
|
||||
label: 'tile-texture',
|
||||
value: 'tile-texture',
|
||||
},
|
||||
],
|
||||
},
|
||||
}),
|
||||
engine_id: Property.StaticDropdown({
|
||||
displayName: 'Engine ID',
|
||||
required: true,
|
||||
options: {
|
||||
options: [
|
||||
{
|
||||
label: 'stable-diffusion-xl-1024-v1-0',
|
||||
value: 'stable-diffusion-xl-1024-v1-0',
|
||||
},
|
||||
{
|
||||
label: 'stable-diffusion-768-v2-1',
|
||||
value: 'stable-diffusion-768-v2-1',
|
||||
},
|
||||
{
|
||||
label: 'stable-diffusion-512-v2-1',
|
||||
value: 'stable-diffusion-512-v2-1',
|
||||
},
|
||||
{
|
||||
label: 'stable-diffusion-768-v2-0',
|
||||
value: 'stable-diffusion-768-v2-0',
|
||||
},
|
||||
{
|
||||
label: 'stable-diffusion-512-v2-0',
|
||||
value: 'stable-diffusion-512-v2-0',
|
||||
},
|
||||
{
|
||||
label: 'stable-diffusion-v1-5',
|
||||
value: 'stable-diffusion-v1-5',
|
||||
},
|
||||
{
|
||||
label: 'stable-diffusion-v1',
|
||||
value: 'stable-diffusion-v1',
|
||||
},
|
||||
],
|
||||
},
|
||||
}),
|
||||
},
|
||||
async run(context) {
|
||||
const {
|
||||
prompt,
|
||||
cfg_scale,
|
||||
clip_guidance_preset,
|
||||
height,
|
||||
width,
|
||||
samples,
|
||||
steps,
|
||||
style_preset,
|
||||
engine_id,
|
||||
weight,
|
||||
} = context.propsValue;
|
||||
|
||||
const engineId = engine_id || 'stable-diffusion-v1-5';
|
||||
const apiHost = 'https://api.stability.ai';
|
||||
|
||||
const apiKey = context.auth.props.api_key;
|
||||
|
||||
const requestBody = {
|
||||
text_prompts: [
|
||||
{
|
||||
text: prompt,
|
||||
weight: Number(weight) || 1,
|
||||
},
|
||||
],
|
||||
cfg_scale: Number(cfg_scale) || 7,
|
||||
clip_guidance_preset: clip_guidance_preset || 'NONE',
|
||||
height: Number(height) || getDefaultSize(engine_id),
|
||||
width: Number(width) || getDefaultSize(engine_id),
|
||||
samples: Number(samples) || 1,
|
||||
steps: Number(steps) || 50,
|
||||
style_preset,
|
||||
};
|
||||
|
||||
const request: HttpRequest<Record<string, unknown>> = {
|
||||
method: HttpMethod.POST,
|
||||
url: `${apiHost}/v1/generation/${engineId}/text-to-image`,
|
||||
headers: {
|
||||
Authorization: `Bearer ${apiKey}`,
|
||||
Accept: 'application/json',
|
||||
},
|
||||
body: requestBody,
|
||||
};
|
||||
|
||||
const { body } = await httpClient.sendRequest<{
|
||||
artifacts: { base64: string }[];
|
||||
}>(request);
|
||||
|
||||
return Promise.all(
|
||||
body.artifacts.map((artifact) =>
|
||||
context.files
|
||||
.write({
|
||||
fileName: `image-${Date.now()}.png`,
|
||||
data: Buffer.from(artifact.base64, 'base64'),
|
||||
})
|
||||
.then((file) => ({ image: file }))
|
||||
)
|
||||
);
|
||||
},
|
||||
});
|
||||
|
||||
function getDefaultSize(engineId: string) {
|
||||
switch (engineId) {
|
||||
case 'stable-diffusion-xl-1024-v1-0':
|
||||
return 1024;
|
||||
case 'stable-diffusion-768-v2-1':
|
||||
return 768;
|
||||
case 'stable-diffusion-512-v2-1':
|
||||
return 512;
|
||||
case 'stable-diffusion-768-v2-0':
|
||||
return 768;
|
||||
case 'stable-diffusion-512-v2-0':
|
||||
return 512;
|
||||
case 'stable-diffusion-v1-5':
|
||||
return 512;
|
||||
case 'stable-diffusion-v1':
|
||||
return 512;
|
||||
default:
|
||||
return 512;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"extends": "../../../../tsconfig.base.json",
|
||||
"files": [],
|
||||
"include": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.lib.json"
|
||||
}
|
||||
],
|
||||
"compilerOptions": {
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"strict": true,
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"outDir": "../../../../dist/out-tsc",
|
||||
"declaration": true,
|
||||
"types": ["node"]
|
||||
},
|
||||
"exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"],
|
||||
"include": ["src/**/*.ts"]
|
||||
}
|
||||
Reference in New Issue
Block a user