From 64d02ffb5a049cce4fe00fc957818b49011c5d7d Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 5 Nov 2024 15:25:42 +0000 Subject: [PATCH] Add ideogram models --- schema_to_node.py | 2 +- schemas/ideogram-ai_ideogram-v2-turbo.json | 660 +++++++++++++++++++++ schemas/ideogram-ai_ideogram-v2.json | 660 +++++++++++++++++++++ supported_models.json | 2 + 4 files changed, 1323 insertions(+), 1 deletion(-) create mode 100644 schemas/ideogram-ai_ideogram-v2-turbo.json create mode 100644 schemas/ideogram-ai_ideogram-v2.json diff --git a/schema_to_node.py b/schema_to_node.py index 846cfda..1d93d2a 100644 --- a/schema_to_node.py +++ b/schema_to_node.py @@ -28,7 +28,7 @@ def convert_to_comfyui_input_type( return "VIDEO" elif is_type(default_example_input[input_name], AUDIO_EXTENSIONS): return "AUDIO" - elif "image" in input_name.lower(): + elif any(x in input_name.lower() for x in ["image", "mask"]): return "IMAGE" elif "audio" in input_name.lower(): return "AUDIO" diff --git a/schemas/ideogram-ai_ideogram-v2-turbo.json b/schemas/ideogram-ai_ideogram-v2-turbo.json new file mode 100644 index 0000000..99e88dc --- /dev/null +++ b/schemas/ideogram-ai_ideogram-v2-turbo.json @@ -0,0 +1,660 @@ +{ + "url": "https://replicate.com/ideogram-ai/ideogram-v2-turbo", + "owner": "ideogram-ai", + "name": "ideogram-v2-turbo", + "description": "A fast image model with state of the art inpainting, prompt comprehension and text rendering.", + "visibility": "public", + "github_url": null, + "paper_url": "https://ideogram.ai/", + "license_url": "https://about.ideogram.ai/legal/api-tos", + "run_count": 0, + "cover_image_url": "https://tjzk.replicate.delivery/models_models_featured_image/8b1df940-d741-4446-beb2-0d72c66abb91/replicate-prediction-f_iX48w8f.png", + "default_example": { + "id": "fkgz67vb7nrga0cjph091f1jg8", + "model": "replicate/ideogram-v2-turbo-internal", + "version": "128ad940e4e6f7281021cb8b1adf9a6b8eab3f5f1abc3a94c149774980735c4f", + "status": "succeeded", + "input": { + "prompt": "An illustration of a gold running shoe with the text \"Run AI with an API\" written on the shoe. The shoe is placed on a pink background. The text is white and bold. The overall image has a modern and techy vibe, with elements of speed.", + "resolution": "None", + "style_type": "None", + "aspect_ratio": "1:1", + "magic_prompt_option": "Auto", + "image": "https://replicate.delivery/czjl/9aabtkgKeV2HS6bASFV9uEvkufPMZlE2MelytHKnUs4yeTlOB/R8_ideogram.png", + "mask": "https://replicate.delivery/czjl/9aabtkgKeV2HS6bASFV9uEvkufPMZlE2MelytHKnUs4yeTlOB/R8_ideogram.png" + }, + "output": "https://replicate.delivery/czjl/9aabtkgKeV2HS6bASFV9uEvkufPMZlE2MelytHKnUs4yeTlOB/R8_ideogram.png", + "logs": "Using seed: 365\nRunning prediction... \nGenerating...\nPrompt used: An illustration of a gold running shoe with the text \"Run AI with an API\" written on the shoe. The shoe is placed on a pink background. The text is white and bold. The overall image has a modern and techy vibe, with elements of speed.\nImage generation took 11.19 seconds", + "error": null, + "metrics": { + "image_count": 1, + "predict_time": 12.361202155, + "total_time": 12.370253 + }, + "created_at": "2024-10-22T12:42:53.629000Z", + "started_at": "2024-10-22T12:42:53.638050Z", + "completed_at": "2024-10-22T12:43:05.999253Z", + "urls": { + "get": "https://api.replicate.com/v1/predictions/fkgz67vb7nrga0cjph091f1jg8", + "cancel": "https://api.replicate.com/v1/predictions/fkgz67vb7nrga0cjph091f1jg8/cancel" + } + }, + "latest_version": { + "id": "fbb188a06a69327a5daa9d82162b31528823d918705aefeeebd17856f856cfac", + "created_at": "2024-10-22T09:30:05.893763+00:00", + "cog_version": "0.10.0-alpha25", + "openapi_schema": { + "info": { + "title": "Cog", + "version": "0.1.0" + }, + "paths": { + "/": { + "get": { + "summary": "Root", + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "title": "Response Root Get" + } + } + }, + "description": "Successful Response" + } + }, + "operationId": "root__get" + } + }, + "/ready": { + "get": { + "summary": "Ready", + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "title": "Response Ready Ready Get" + } + } + }, + "description": "Successful Response" + } + }, + "operationId": "ready_ready_get" + } + }, + "/shutdown": { + "post": { + "summary": "Start Shutdown", + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "title": "Response Start Shutdown Shutdown Post" + } + } + }, + "description": "Successful Response" + } + }, + "operationId": "start_shutdown_shutdown_post" + } + }, + "/predictions": { + "post": { + "summary": "Predict", + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PredictionResponse" + } + } + }, + "description": "Successful Response" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "parameters": [ + { + "in": "header", + "name": "prefer", + "schema": { + "type": "string", + "title": "Prefer" + }, + "required": false + } + ], + "description": "Run a single prediction on the model", + "operationId": "predict_predictions_post", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PredictionRequest" + } + } + } + } + } + }, + "/health-check": { + "get": { + "summary": "Healthcheck", + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "title": "Response Healthcheck Health Check Get" + } + } + }, + "description": "Successful Response" + } + }, + "operationId": "healthcheck_health_check_get" + } + }, + "/predictions/{prediction_id}": { + "put": { + "summary": "Predict Idempotent", + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PredictionResponse" + } + } + }, + "description": "Successful Response" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "parameters": [ + { + "in": "path", + "name": "prediction_id", + "schema": { + "type": "string", + "title": "Prediction ID" + }, + "required": true + }, + { + "in": "header", + "name": "prefer", + "schema": { + "type": "string", + "title": "Prefer" + }, + "required": false + } + ], + "description": "Run a single prediction on the model (idempotent creation).", + "operationId": "predict_idempotent_predictions__prediction_id__put", + "requestBody": { + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/PredictionRequest" + } + ], + "title": "Prediction Request" + } + } + }, + "required": true + } + } + }, + "/predictions/{prediction_id}/cancel": { + "post": { + "summary": "Cancel", + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "title": "Response Cancel Predictions Prediction Id Cancel Post" + } + } + }, + "description": "Successful Response" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "parameters": [ + { + "in": "path", + "name": "prediction_id", + "schema": { + "type": "string", + "title": "Prediction ID" + }, + "required": true + } + ], + "description": "Cancel a running prediction", + "operationId": "cancel_predictions__prediction_id__cancel_post" + } + } + }, + "openapi": "3.0.2", + "components": { + "schemas": { + "Input": { + "type": "object", + "title": "Input", + "required": [ + "prompt" + ], + "properties": { + "mask": { + "type": "string", + "title": "Mask", + "format": "uri", + "x-order": 6, + "description": "A black and white image. Black pixels are inpainted, white pixels are preserved. The mask will be resized to match the image size." + }, + "seed": { + "type": "integer", + "title": "Seed", + "x-order": 8, + "description": "Random seed. Set for reproducible generation" + }, + "image": { + "type": "string", + "title": "Image", + "format": "uri", + "x-order": 5, + "description": "An image file to use for inpainting." + }, + "prompt": { + "type": "string", + "title": "Prompt", + "x-order": 0, + "description": "Text prompt for image generation" + }, + "resolution": { + "allOf": [ + { + "$ref": "#/components/schemas/resolution" + } + ], + "default": "None", + "x-order": 3, + "description": "Resolution. Overrides aspect ratio. Ignored if an inpainting image is given." + }, + "style_type": { + "allOf": [ + { + "$ref": "#/components/schemas/style_type" + } + ], + "default": "None", + "x-order": 7, + "description": "The styles help define the specific aesthetic of the image you want to generate." + }, + "aspect_ratio": { + "allOf": [ + { + "$ref": "#/components/schemas/aspect_ratio" + } + ], + "default": "1:1", + "x-order": 2, + "description": "Aspect ratio. Ignored if a resolution or inpainting image is given." + }, + "negative_prompt": { + "type": "string", + "title": "Negative Prompt", + "x-order": 1, + "description": "Things you do not want to see in the generated image." + }, + "magic_prompt_option": { + "allOf": [ + { + "$ref": "#/components/schemas/magic_prompt_option" + } + ], + "default": "Auto", + "x-order": 4, + "description": "Magic Prompt will interpret your prompt and optimize it to maximize variety and quality of the images generated. You can also use it to write prompts in different languages." + } + } + }, + "Output": { + "type": "string", + "title": "Output", + "format": "uri" + }, + "Status": { + "enum": [ + "starting", + "processing", + "succeeded", + "canceled", + "failed" + ], + "type": "string", + "title": "Status", + "description": "An enumeration." + }, + "resolution": { + "enum": [ + "None", + "512x1536", + "576x1408", + "576x1472", + "576x1536", + "640x1024", + "640x1344", + "640x1408", + "640x1472", + "640x1536", + "704x1152", + "704x1216", + "704x1280", + "704x1344", + "704x1408", + "704x1472", + "720x1280", + "736x1312", + "768x1024", + "768x1088", + "768x1152", + "768x1216", + "768x1232", + "768x1280", + "768x1344", + "832x960", + "832x1024", + "832x1088", + "832x1152", + "832x1216", + "832x1248", + "864x1152", + "896x960", + "896x1024", + "896x1088", + "896x1120", + "896x1152", + "960x832", + "960x896", + "960x1024", + "960x1088", + "1024x640", + "1024x768", + "1024x832", + "1024x896", + "1024x960", + "1024x1024", + "1088x768", + "1088x832", + "1088x896", + "1088x960", + "1120x896", + "1152x704", + "1152x768", + "1152x832", + "1152x864", + "1152x896", + "1216x704", + "1216x768", + "1216x832", + "1232x768", + "1248x832", + "1280x704", + "1280x720", + "1280x768", + "1280x800", + "1312x736", + "1344x640", + "1344x704", + "1344x768", + "1408x576", + "1408x640", + "1408x704", + "1472x576", + "1472x640", + "1472x704", + "1536x512", + "1536x576", + "1536x640" + ], + "type": "string", + "title": "resolution", + "description": "An enumeration." + }, + "style_type": { + "enum": [ + "None", + "Auto", + "General", + "Realistic", + "Design", + "Render 3D", + "Anime" + ], + "type": "string", + "title": "style_type", + "description": "An enumeration." + }, + "WebhookEvent": { + "enum": [ + "start", + "output", + "logs", + "completed" + ], + "type": "string", + "title": "WebhookEvent", + "description": "An enumeration." + }, + "aspect_ratio": { + "enum": [ + "1:1", + "16:9", + "9:16", + "4:3", + "3:4", + "3:2", + "2:3", + "16:10", + "10:16", + "3:1", + "1:3" + ], + "type": "string", + "title": "aspect_ratio", + "description": "An enumeration." + }, + "ValidationError": { + "type": "object", + "title": "ValidationError", + "required": [ + "loc", + "msg", + "type" + ], + "properties": { + "loc": { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "integer" + } + ] + }, + "title": "Location" + }, + "msg": { + "type": "string", + "title": "Message" + }, + "type": { + "type": "string", + "title": "Error Type" + } + } + }, + "PredictionRequest": { + "type": "object", + "title": "PredictionRequest", + "properties": { + "id": { + "type": "string", + "title": "Id" + }, + "input": { + "$ref": "#/components/schemas/Input" + }, + "webhook": { + "type": "string", + "title": "Webhook", + "format": "uri", + "maxLength": 65536, + "minLength": 1 + }, + "created_at": { + "type": "string", + "title": "Created At", + "format": "date-time" + }, + "output_file_prefix": { + "type": "string", + "title": "Output File Prefix" + }, + "webhook_events_filter": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WebhookEvent" + }, + "default": [ + "start", + "output", + "logs", + "completed" + ] + } + } + }, + "PredictionResponse": { + "type": "object", + "title": "PredictionResponse", + "properties": { + "id": { + "type": "string", + "title": "Id" + }, + "logs": { + "type": "string", + "title": "Logs", + "default": "" + }, + "error": { + "type": "string", + "title": "Error" + }, + "input": { + "$ref": "#/components/schemas/Input" + }, + "output": { + "$ref": "#/components/schemas/Output" + }, + "status": { + "$ref": "#/components/schemas/Status" + }, + "metrics": { + "type": "object", + "title": "Metrics" + }, + "version": { + "type": "string", + "title": "Version" + }, + "created_at": { + "type": "string", + "title": "Created At", + "format": "date-time" + }, + "started_at": { + "type": "string", + "title": "Started At", + "format": "date-time" + }, + "completed_at": { + "type": "string", + "title": "Completed At", + "format": "date-time" + } + } + }, + "HTTPValidationError": { + "type": "object", + "title": "HTTPValidationError", + "properties": { + "detail": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ValidationError" + }, + "title": "Detail" + } + } + }, + "magic_prompt_option": { + "enum": [ + "Auto", + "On", + "Off" + ], + "type": "string", + "title": "magic_prompt_option", + "description": "An enumeration." + } + } + } + } + } +} diff --git a/schemas/ideogram-ai_ideogram-v2.json b/schemas/ideogram-ai_ideogram-v2.json new file mode 100644 index 0000000..3598fda --- /dev/null +++ b/schemas/ideogram-ai_ideogram-v2.json @@ -0,0 +1,660 @@ +{ + "url": "https://replicate.com/ideogram-ai/ideogram-v2", + "owner": "ideogram-ai", + "name": "ideogram-v2", + "description": "An excellent image model with state of the art inpainting, prompt comprehension and text rendering", + "visibility": "public", + "github_url": null, + "paper_url": "https://ideogram.ai/", + "license_url": "https://about.ideogram.ai/legal/api-tos", + "run_count": 0, + "cover_image_url": "https://tjzk.replicate.delivery/models_models_featured_image/71c982a3-27f0-42a6-ad6a-769f25097c08/replicate-prediction-s_VROPz1s.png", + "default_example": { + "id": "shd9sgbgbdrge0cjpgzbsztztr", + "model": "replicate/ideogram-v2-internal", + "version": "b0c6eeefcefc40a997fa1787500782b6a7a9a99ae40f79d71e2c83daf7be5d13", + "status": "succeeded", + "input": { + "prompt": "An illustration of a black running shoe with the text \"Run AI with an API\" written on the shoe. The shoe is placed on a blue background. The text is white and bold. The overall image has a modern and techy vibe.", + "resolution": "None", + "style_type": "None", + "aspect_ratio": "16:9", + "magic_prompt_option": "Auto", + "image": "https://replicate.delivery/czjl/9aabtkgKeV2HS6bASFV9uEvkufPMZlE2MelytHKnUs4yeTlOB/R8_ideogram.png", + "mask": "https://replicate.delivery/czjl/9aabtkgKeV2HS6bASFV9uEvkufPMZlE2MelytHKnUs4yeTlOB/R8_ideogram.png" + }, + "output": "https://replicate.delivery/czjl/wPuHfFHPOGxqbC3r1rJbEomny4eprgwRVpjIP7pN7oKf6pSnA/R8_ideogram.png", + "logs": "Using seed: 27236\nRunning prediction... \nGenerating...\nPrompt used: An illustration of a black running shoe with the text \"Run AI with an API\" written on the shoe. The shoe is placed on a blue background. The text is white and bold. The overall image has a modern and techy vibe.\nImage generation took 18.96 seconds", + "error": null, + "metrics": { + "image_count": 1, + "predict_time": 19.641495926, + "total_time": 19.65047 + }, + "created_at": "2024-10-22T12:40:43.867000Z", + "started_at": "2024-10-22T12:40:43.875974Z", + "completed_at": "2024-10-22T12:41:03.517470Z", + "urls": { + "get": "https://api.replicate.com/v1/predictions/shd9sgbgbdrge0cjpgzbsztztr", + "cancel": "https://api.replicate.com/v1/predictions/shd9sgbgbdrge0cjpgzbsztztr/cancel" + } + }, + "latest_version": { + "id": "d07f7f3ad03f2ec100edeaa91e26ac731d7d00ec369e6a475b80c04bd1101d5d", + "created_at": "2024-10-22T09:27:30.780981+00:00", + "cog_version": "0.10.0-alpha25", + "openapi_schema": { + "info": { + "title": "Cog", + "version": "0.1.0" + }, + "paths": { + "/": { + "get": { + "summary": "Root", + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "title": "Response Root Get" + } + } + }, + "description": "Successful Response" + } + }, + "operationId": "root__get" + } + }, + "/ready": { + "get": { + "summary": "Ready", + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "title": "Response Ready Ready Get" + } + } + }, + "description": "Successful Response" + } + }, + "operationId": "ready_ready_get" + } + }, + "/shutdown": { + "post": { + "summary": "Start Shutdown", + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "title": "Response Start Shutdown Shutdown Post" + } + } + }, + "description": "Successful Response" + } + }, + "operationId": "start_shutdown_shutdown_post" + } + }, + "/predictions": { + "post": { + "summary": "Predict", + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PredictionResponse" + } + } + }, + "description": "Successful Response" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "parameters": [ + { + "in": "header", + "name": "prefer", + "schema": { + "type": "string", + "title": "Prefer" + }, + "required": false + } + ], + "description": "Run a single prediction on the model", + "operationId": "predict_predictions_post", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PredictionRequest" + } + } + } + } + } + }, + "/health-check": { + "get": { + "summary": "Healthcheck", + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "title": "Response Healthcheck Health Check Get" + } + } + }, + "description": "Successful Response" + } + }, + "operationId": "healthcheck_health_check_get" + } + }, + "/predictions/{prediction_id}": { + "put": { + "summary": "Predict Idempotent", + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PredictionResponse" + } + } + }, + "description": "Successful Response" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "parameters": [ + { + "in": "path", + "name": "prediction_id", + "schema": { + "type": "string", + "title": "Prediction ID" + }, + "required": true + }, + { + "in": "header", + "name": "prefer", + "schema": { + "type": "string", + "title": "Prefer" + }, + "required": false + } + ], + "description": "Run a single prediction on the model (idempotent creation).", + "operationId": "predict_idempotent_predictions__prediction_id__put", + "requestBody": { + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/PredictionRequest" + } + ], + "title": "Prediction Request" + } + } + }, + "required": true + } + } + }, + "/predictions/{prediction_id}/cancel": { + "post": { + "summary": "Cancel", + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "title": "Response Cancel Predictions Prediction Id Cancel Post" + } + } + }, + "description": "Successful Response" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "parameters": [ + { + "in": "path", + "name": "prediction_id", + "schema": { + "type": "string", + "title": "Prediction ID" + }, + "required": true + } + ], + "description": "Cancel a running prediction", + "operationId": "cancel_predictions__prediction_id__cancel_post" + } + } + }, + "openapi": "3.0.2", + "components": { + "schemas": { + "Input": { + "type": "object", + "title": "Input", + "required": [ + "prompt" + ], + "properties": { + "mask": { + "type": "string", + "title": "Mask", + "format": "uri", + "x-order": 6, + "description": "A black and white image. Black pixels are inpainted, white pixels are preserved. The mask will be resized to match the image size." + }, + "seed": { + "type": "integer", + "title": "Seed", + "x-order": 8, + "description": "Random seed. Set for reproducible generation" + }, + "image": { + "type": "string", + "title": "Image", + "format": "uri", + "x-order": 5, + "description": "An image file to use for inpainting." + }, + "prompt": { + "type": "string", + "title": "Prompt", + "x-order": 0, + "description": "Text prompt for image generation" + }, + "resolution": { + "allOf": [ + { + "$ref": "#/components/schemas/resolution" + } + ], + "default": "None", + "x-order": 3, + "description": "Resolution. Overrides aspect ratio. Ignored if an inpainting image is given." + }, + "style_type": { + "allOf": [ + { + "$ref": "#/components/schemas/style_type" + } + ], + "default": "None", + "x-order": 7, + "description": "The styles help define the specific aesthetic of the image you want to generate." + }, + "aspect_ratio": { + "allOf": [ + { + "$ref": "#/components/schemas/aspect_ratio" + } + ], + "default": "1:1", + "x-order": 2, + "description": "Aspect ratio. Ignored if a resolution or inpainting image is given." + }, + "negative_prompt": { + "type": "string", + "title": "Negative Prompt", + "x-order": 1, + "description": "Things you do not want to see in the generated image." + }, + "magic_prompt_option": { + "allOf": [ + { + "$ref": "#/components/schemas/magic_prompt_option" + } + ], + "default": "Auto", + "x-order": 4, + "description": "Magic Prompt will interpret your prompt and optimize it to maximize variety and quality of the images generated. You can also use it to write prompts in different languages." + } + } + }, + "Output": { + "type": "string", + "title": "Output", + "format": "uri" + }, + "Status": { + "enum": [ + "starting", + "processing", + "succeeded", + "canceled", + "failed" + ], + "type": "string", + "title": "Status", + "description": "An enumeration." + }, + "resolution": { + "enum": [ + "None", + "512x1536", + "576x1408", + "576x1472", + "576x1536", + "640x1024", + "640x1344", + "640x1408", + "640x1472", + "640x1536", + "704x1152", + "704x1216", + "704x1280", + "704x1344", + "704x1408", + "704x1472", + "720x1280", + "736x1312", + "768x1024", + "768x1088", + "768x1152", + "768x1216", + "768x1232", + "768x1280", + "768x1344", + "832x960", + "832x1024", + "832x1088", + "832x1152", + "832x1216", + "832x1248", + "864x1152", + "896x960", + "896x1024", + "896x1088", + "896x1120", + "896x1152", + "960x832", + "960x896", + "960x1024", + "960x1088", + "1024x640", + "1024x768", + "1024x832", + "1024x896", + "1024x960", + "1024x1024", + "1088x768", + "1088x832", + "1088x896", + "1088x960", + "1120x896", + "1152x704", + "1152x768", + "1152x832", + "1152x864", + "1152x896", + "1216x704", + "1216x768", + "1216x832", + "1232x768", + "1248x832", + "1280x704", + "1280x720", + "1280x768", + "1280x800", + "1312x736", + "1344x640", + "1344x704", + "1344x768", + "1408x576", + "1408x640", + "1408x704", + "1472x576", + "1472x640", + "1472x704", + "1536x512", + "1536x576", + "1536x640" + ], + "type": "string", + "title": "resolution", + "description": "An enumeration." + }, + "style_type": { + "enum": [ + "None", + "Auto", + "General", + "Realistic", + "Design", + "Render 3D", + "Anime" + ], + "type": "string", + "title": "style_type", + "description": "An enumeration." + }, + "WebhookEvent": { + "enum": [ + "start", + "output", + "logs", + "completed" + ], + "type": "string", + "title": "WebhookEvent", + "description": "An enumeration." + }, + "aspect_ratio": { + "enum": [ + "1:1", + "16:9", + "9:16", + "4:3", + "3:4", + "3:2", + "2:3", + "16:10", + "10:16", + "3:1", + "1:3" + ], + "type": "string", + "title": "aspect_ratio", + "description": "An enumeration." + }, + "ValidationError": { + "type": "object", + "title": "ValidationError", + "required": [ + "loc", + "msg", + "type" + ], + "properties": { + "loc": { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "integer" + } + ] + }, + "title": "Location" + }, + "msg": { + "type": "string", + "title": "Message" + }, + "type": { + "type": "string", + "title": "Error Type" + } + } + }, + "PredictionRequest": { + "type": "object", + "title": "PredictionRequest", + "properties": { + "id": { + "type": "string", + "title": "Id" + }, + "input": { + "$ref": "#/components/schemas/Input" + }, + "webhook": { + "type": "string", + "title": "Webhook", + "format": "uri", + "maxLength": 65536, + "minLength": 1 + }, + "created_at": { + "type": "string", + "title": "Created At", + "format": "date-time" + }, + "output_file_prefix": { + "type": "string", + "title": "Output File Prefix" + }, + "webhook_events_filter": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WebhookEvent" + }, + "default": [ + "start", + "output", + "logs", + "completed" + ] + } + } + }, + "PredictionResponse": { + "type": "object", + "title": "PredictionResponse", + "properties": { + "id": { + "type": "string", + "title": "Id" + }, + "logs": { + "type": "string", + "title": "Logs", + "default": "" + }, + "error": { + "type": "string", + "title": "Error" + }, + "input": { + "$ref": "#/components/schemas/Input" + }, + "output": { + "$ref": "#/components/schemas/Output" + }, + "status": { + "$ref": "#/components/schemas/Status" + }, + "metrics": { + "type": "object", + "title": "Metrics" + }, + "version": { + "type": "string", + "title": "Version" + }, + "created_at": { + "type": "string", + "title": "Created At", + "format": "date-time" + }, + "started_at": { + "type": "string", + "title": "Started At", + "format": "date-time" + }, + "completed_at": { + "type": "string", + "title": "Completed At", + "format": "date-time" + } + } + }, + "HTTPValidationError": { + "type": "object", + "title": "HTTPValidationError", + "properties": { + "detail": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ValidationError" + }, + "title": "Detail" + } + } + }, + "magic_prompt_option": { + "enum": [ + "Auto", + "On", + "Off" + ], + "type": "string", + "title": "magic_prompt_option", + "description": "An enumeration." + } + } + } + } + } +} diff --git a/supported_models.json b/supported_models.json index 0e34935..3cbb35f 100644 --- a/supported_models.json +++ b/supported_models.json @@ -25,6 +25,8 @@ "fofr/sd3-with-chaos", "fofr/style-transfer", "fofr/ultrapixel", + "ideogram-ai/ideogram-v2-turbo", + "ideogram-ai/ideogram-v2", "lucataco/hunyuandit-v1.1", "lucataco/llama-3-vision-alpha", "lucataco/magnet",