diff --git a/schemas/black-forest-labs_flux-1.1-pro-ultra-finetuned.json b/schemas/black-forest-labs_flux-1.1-pro-ultra-finetuned.json new file mode 100644 index 0000000..344f68f --- /dev/null +++ b/schemas/black-forest-labs_flux-1.1-pro-ultra-finetuned.json @@ -0,0 +1,350 @@ +{ + "url": "https://replicate.com/black-forest-labs/flux-1.1-pro-ultra-finetuned", + "owner": "black-forest-labs", + "name": "flux-1.1-pro-ultra-finetuned", + "description": "Inference model for FLUX 1.1 [pro] Ultra using custom `finetune_id`. Supports 4MP images and raw mode for realism", + "visibility": "public", + "github_url": null, + "paper_url": "https://blackforestlabs.ai/flux-1-1-ultra/", + "license_url": "https://replicate.com/black-forest-labs/flux-pro#license", + "run_count": 0, + "cover_image_url": "https://tjzk.replicate.delivery/models_models_cover_image/c15b72ab-9626-436d-acdd-b53e4b1c9444/20250429_1820_Flux_Pro_Text_Alte.webp", + "default_example": { + "id": "3jcypqx8tnrm80cpg8ab35wbhm", + "model": "black-forest-labs/flux-1.1-pro-ultra-finetuned", + "version": "hidden", + "status": "succeeded", + "input": { + "raw": false, + "prompt": "A formula one CYBERCAB car", + "finetune_id": "fc14d7bf-95bd-4dde-92c1-2dd7317721f6", + "aspect_ratio": "3:2", + "output_format": "jpg", + "safety_tolerance": 2, + "finetune_strength": 1, + "image_prompt_strength": 0.1 + }, + "output": "https://replicate.delivery/xezq/BPqfMaZuhJUKO6zPMLAMKDjo4TBVuK0Kfr8QLzDLIxp5ypnUA/tmpfuuoj5f9.jpg", + "logs": "Running prediction... \n\n================ Training Details ================\nTrigger Word: CYBERCAB\n\nOther Details:\n Learning Rate: 1e-05\n Iterations: 100\n LoRA Rank: 32\n Mode: general\n Priority: quality\n Finetune Type: full\n Trained: 2025-01-17_13-48-43\n==================================================\nUsing seed: 40495\nGenerating image...\nGenerated image in 14.9sec\nDownloaded image in 0.11sec", + "error": null, + "metrics": { + "image_count": 1, + "predict_time": 15.155538535, + "total_time": 15.160785 + }, + "created_at": "2025-04-29T15:05:14.197000Z", + "started_at": "2025-04-29T15:05:14.202247Z", + "completed_at": "2025-04-29T15:05:29.357785Z", + "urls": { + "stream": "https://stream.replicate.com/v1/files/bcwr-zbsb2gbmafykf64sbyfwbq5hxbnnzdi6jw36haipmpnokb4zpkeq", + "get": "https://api.replicate.com/v1/predictions/3jcypqx8tnrm80cpg8ab35wbhm", + "cancel": "https://api.replicate.com/v1/predictions/3jcypqx8tnrm80cpg8ab35wbhm/cancel" + } + }, + "latest_version": { + "id": "df93e57884eed71af473d8fc6ebad4c49384aff50592fa2cfa4c9ebf735bcdde", + "created_at": "2025-06-03T12:25:47.475786+00:00", + "cog_version": "0.15.2", + "openapi_schema": { + "info": { + "title": "Cog", + "version": "0.1.0" + }, + "paths": {}, + "openapi": "3.0.2", + "components": { + "schemas": { + "Input": { + "type": "object", + "title": "Input", + "required": [ + "prompt", + "finetune_id" + ], + "properties": { + "raw": { + "type": "boolean", + "title": "Raw", + "default": false, + "x-order": 8, + "description": "Generate less processed, more natural-looking images" + }, + "seed": { + "type": "integer", + "title": "Seed", + "x-order": 7, + "description": "Random seed. Set for reproducible generation" + }, + "prompt": { + "type": "string", + "title": "Prompt", + "x-order": 0, + "description": "Text prompt for image generation" + }, + "finetune_id": { + "type": "string", + "title": "Finetune Id", + "x-order": 1, + "description": "Finetune ID for making images using a previously trained fine-tune. Only IDs from trainings made using Replicate's Flux Pro fine-tuning model are supported." + }, + "aspect_ratio": { + "allOf": [ + { + "$ref": "#/components/schemas/aspect_ratio" + } + ], + "default": "1:1", + "x-order": 5, + "description": "Aspect ratio for the generated image" + }, + "image_prompt": { + "type": "string", + "title": "Image Prompt", + "format": "uri", + "x-order": 3, + "description": "Image to use with Flux Redux. This is used together with the text prompt to guide the generation towards the composition of the image_prompt. Must be jpeg, png, gif, or webp." + }, + "output_format": { + "allOf": [ + { + "$ref": "#/components/schemas/output_format" + } + ], + "default": "jpg", + "x-order": 9, + "description": "Format of the output images." + }, + "safety_tolerance": { + "type": "integer", + "title": "Safety Tolerance", + "default": 2, + "maximum": 6, + "minimum": 1, + "x-order": 6, + "description": "Safety tolerance, 1 is most strict and 6 is most permissive" + }, + "finetune_strength": { + "type": "number", + "title": "Finetune Strength", + "default": 1, + "maximum": 2, + "minimum": 0, + "x-order": 2, + "description": "Controls finetune influence" + }, + "image_prompt_strength": { + "type": "number", + "title": "Image Prompt Strength", + "default": 0.1, + "maximum": 1, + "minimum": 0, + "x-order": 4, + "description": "Blend between the prompt and the image prompt." + } + } + }, + "Output": { + "type": "string", + "title": "Output", + "format": "uri" + }, + "Status": { + "enum": [ + "starting", + "processing", + "succeeded", + "canceled", + "failed" + ], + "type": "string", + "title": "Status", + "description": "An enumeration." + }, + "WebhookEvent": { + "enum": [ + "start", + "output", + "logs", + "completed" + ], + "type": "string", + "title": "WebhookEvent", + "description": "An enumeration." + }, + "aspect_ratio": { + "enum": [ + "21:9", + "16:9", + "3:2", + "4:3", + "5:4", + "1:1", + "4:5", + "3:4", + "2:3", + "9:16", + "9:21" + ], + "type": "string", + "title": "aspect_ratio", + "description": "An enumeration." + }, + "output_format": { + "enum": [ + "jpg", + "png" + ], + "type": "string", + "title": "output_format", + "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" + }, + "context": { + "type": "object", + "title": "Context", + "additionalProperties": { + "type": "string" + } + }, + "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" + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/schemas/black-forest-labs_flux-1.1-pro-ultra.json b/schemas/black-forest-labs_flux-1.1-pro-ultra.json new file mode 100644 index 0000000..c962435 --- /dev/null +++ b/schemas/black-forest-labs_flux-1.1-pro-ultra.json @@ -0,0 +1,325 @@ +{ + "url": "https://replicate.com/black-forest-labs/flux-1.1-pro-ultra", + "owner": "black-forest-labs", + "name": "flux-1.1-pro-ultra", + "description": "FLUX1.1 [pro] in ultra and raw modes. Images are up to 4 megapixels. Use raw mode for realism.", + "visibility": "public", + "github_url": null, + "paper_url": "https://blackforestlabs.ai/flux-1-1-ultra/", + "license_url": "https://replicate.com/black-forest-labs/flux-pro#license", + "run_count": 0, + "cover_image_url": "https://tjzk.replicate.delivery/models_models_featured_image/8121c76b-fbff-41d9-834d-c70dea9d2191/flux-ultra-cover.jpg", + "default_example": { + "id": "dyq83qfxv9rg80ckcmbvpwv91r", + "model": "black-forest-labs/flux-1.1-pro-ultra", + "version": "hidden", + "status": "succeeded", + "input": { + "raw": false, + "prompt": "a majestic snow-capped mountain peak bathed in a warm glow of the setting sun", + "aspect_ratio": "3:2", + "output_format": "jpg", + "safety_tolerance": 2, + "image_prompt_strength": 0.1 + }, + "output": "https://replicate.delivery/czjl/jqtNvxYHcnLELpszvkVf0APhMkBnwzrdo205RaVB7MttqU6JA/tmppokfymld.jpg", + "logs": "Running prediction... \nUsing seed: 14351\nGenerating image...\nGenerated image in 8.0sec\nDownloaded image in 0.13sec", + "error": null, + "metrics": { + "image_count": 1, + "predict_time": 8.132732037, + "total_time": 8.141538 + }, + "created_at": "2024-11-25T20:51:31.418000Z", + "started_at": "2024-11-25T20:51:31.426806Z", + "completed_at": "2024-11-25T20:51:39.559538Z", + "urls": { + "stream": "https://stream.replicate.com/v1/files/fddq-iy2aaylhwyx75okovamhaia3wfv644cf2vkghgpwqqzls6246tzq", + "get": "https://api.replicate.com/v1/predictions/dyq83qfxv9rg80ckcmbvpwv91r", + "cancel": "https://api.replicate.com/v1/predictions/dyq83qfxv9rg80ckcmbvpwv91r/cancel" + } + }, + "latest_version": { + "id": "c6e5086a542c99e7e523a83d3017654e8618fe64ef427c772a1def05bb599f0c", + "created_at": "2025-03-31T12:46:38.338040+00:00", + "cog_version": "0.14.3", + "openapi_schema": { + "info": { + "title": "Cog", + "version": "0.1.0" + }, + "paths": {}, + "openapi": "3.0.2", + "components": { + "schemas": { + "Input": { + "type": "object", + "title": "Input", + "required": [ + "prompt" + ], + "properties": { + "raw": { + "type": "boolean", + "title": "Raw", + "default": false, + "x-order": 6, + "description": "Generate less processed, more natural-looking images" + }, + "seed": { + "type": "integer", + "title": "Seed", + "x-order": 5, + "description": "Random seed. Set for reproducible generation" + }, + "prompt": { + "type": "string", + "title": "Prompt", + "x-order": 0, + "description": "Text prompt for image generation" + }, + "aspect_ratio": { + "allOf": [ + { + "$ref": "#/components/schemas/aspect_ratio" + } + ], + "default": "1:1", + "x-order": 3, + "description": "Aspect ratio for the generated image" + }, + "image_prompt": { + "type": "string", + "title": "Image Prompt", + "format": "uri", + "x-order": 1, + "description": "Image to use with Flux Redux. This is used together with the text prompt to guide the generation towards the composition of the image_prompt. Must be jpeg, png, gif, or webp." + }, + "output_format": { + "allOf": [ + { + "$ref": "#/components/schemas/output_format" + } + ], + "default": "jpg", + "x-order": 7, + "description": "Format of the output images." + }, + "safety_tolerance": { + "type": "integer", + "title": "Safety Tolerance", + "default": 2, + "maximum": 6, + "minimum": 1, + "x-order": 4, + "description": "Safety tolerance, 1 is most strict and 6 is most permissive" + }, + "image_prompt_strength": { + "type": "number", + "title": "Image Prompt Strength", + "default": 0.1, + "maximum": 1, + "minimum": 0, + "x-order": 2, + "description": "Blend between the prompt and the image prompt." + } + } + }, + "Output": { + "type": "string", + "title": "Output", + "format": "uri" + }, + "Status": { + "enum": [ + "starting", + "processing", + "succeeded", + "canceled", + "failed" + ], + "type": "string", + "title": "Status", + "description": "An enumeration." + }, + "WebhookEvent": { + "enum": [ + "start", + "output", + "logs", + "completed" + ], + "type": "string", + "title": "WebhookEvent", + "description": "An enumeration." + }, + "aspect_ratio": { + "enum": [ + "21:9", + "16:9", + "3:2", + "4:3", + "5:4", + "1:1", + "4:5", + "3:4", + "2:3", + "9:16", + "9:21" + ], + "type": "string", + "title": "aspect_ratio", + "description": "An enumeration." + }, + "output_format": { + "enum": [ + "jpg", + "png" + ], + "type": "string", + "title": "output_format", + "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" + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/schemas/black-forest-labs_flux-canny-dev.json b/schemas/black-forest-labs_flux-canny-dev.json new file mode 100644 index 0000000..8133ffa --- /dev/null +++ b/schemas/black-forest-labs_flux-canny-dev.json @@ -0,0 +1,552 @@ +{ + "url": "https://replicate.com/black-forest-labs/flux-canny-dev", + "owner": "black-forest-labs", + "name": "flux-canny-dev", + "description": "Open-weight edge-guided image generation. Control structure and composition using Canny edge detection.", + "visibility": "public", + "github_url": null, + "paper_url": null, + "license_url": "https://github.com/black-forest-labs/flux/blob/main/model_licenses/LICENSE-FLUX1-dev", + "run_count": 0, + "cover_image_url": "https://tjzk.replicate.delivery/models_models_cover_image/788cf228-ae38-473a-a992-1e650aab0519/flux-canny-dev.jpg", + "default_example": { + "id": "d9v5nwg7xsrma0ck9x4a8z0g18", + "model": "black-forest-labs/flux-canny-dev", + "version": "81b6707d19bcb0b94c34b76fab4c63bcbf5ecb1f6cab43cadc3f86b9a0a53cca", + "status": "succeeded", + "input": { + "prompt": "A red vintage convertible driving through an old town", + "guidance": 30, + "megapixels": "1", + "num_outputs": 1, + "control_image": "https://replicate.delivery/pbxt/M0mUcvKOwNSS4axvv7LAngBAR5Iuv2GsIcnSKdpQRJA62f8G/Screenshot%202024-11-21%20at%2016.08.20.png", + "output_format": "webp", + "output_quality": 80, + "num_inference_steps": 28 + }, + "output": [ + "https://replicate.delivery/xezq/4bt5HoegzYR9EKqv70zsBoHnhFkcaB9Yk1naaQJai6rtfPzTA/out-0.webp" + ], + "logs": "running bf16 model, fp8 disabled\nUsing seed: 25823\n0it [00:00, ?it/s]\n1it [00:00, 8.11it/s]\n2it [00:00, 5.66it/s]\n3it [00:00, 5.15it/s]\n4it [00:00, 4.94it/s]\n5it [00:00, 4.74it/s]\n6it [00:01, 4.69it/s]\n7it [00:01, 4.66it/s]\n8it [00:01, 4.65it/s]\n9it [00:01, 4.64it/s]\n10it [00:02, 4.61it/s]\n11it [00:02, 4.61it/s]\n12it [00:02, 4.61it/s]\n13it [00:02, 4.61it/s]\n14it [00:02, 4.59it/s]\n15it [00:03, 4.59it/s]\n16it [00:03, 4.59it/s]\n17it [00:03, 4.60it/s]\n18it [00:03, 4.60it/s]\n19it [00:04, 4.58it/s]\n20it [00:04, 4.58it/s]\n21it [00:04, 4.59it/s]\n22it [00:04, 4.60it/s]\n23it [00:04, 4.61it/s]\n24it [00:05, 4.59it/s]\n25it [00:05, 4.59it/s]\n26it [00:05, 4.59it/s]\n27it [00:05, 4.60it/s]\n28it [00:06, 4.59it/s]\n28it [00:06, 4.67it/s]\nTotal safe images: 1 out of 1", + "error": null, + "metrics": { + "image_count": 1, + "predict_time": 6.611810817, + "total_time": 6.619277 + }, + "created_at": "2024-11-21T15:12:20.974000Z", + "started_at": "2024-11-21T15:12:20.981466Z", + "completed_at": "2024-11-21T15:12:27.593277Z", + "urls": { + "stream": "https://stream.replicate.com/v1/files/bcwr-rxxzhmhyoia3wetm2bu2vgsqfgoy3q7d2nhua3spprualor3nk4q", + "get": "https://api.replicate.com/v1/predictions/d9v5nwg7xsrma0ck9x4a8z0g18", + "cancel": "https://api.replicate.com/v1/predictions/d9v5nwg7xsrma0ck9x4a8z0g18/cancel" + } + }, + "latest_version": { + "id": "33ba5ec347347b22d091ba1b063221a71d140007d1491622061b5d2f5eae1445", + "created_at": "2024-11-21T13:33:26.290592+00:00", + "cog_version": "0.9.21", + "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" + } + }, + "/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", + "control_image" + ], + "properties": { + "seed": { + "type": "integer", + "title": "Seed", + "x-order": 5, + "description": "Random seed. Set for reproducible generation" + }, + "prompt": { + "type": "string", + "title": "Prompt", + "x-order": 0, + "description": "Prompt for generated image" + }, + "guidance": { + "type": "number", + "title": "Guidance", + "default": 30, + "maximum": 100, + "minimum": 0, + "x-order": 4, + "description": "Guidance for generated image" + }, + "megapixels": { + "allOf": [ + { + "$ref": "#/components/schemas/megapixels" + } + ], + "default": "1", + "x-order": 9, + "description": "Approximate number of megapixels for generated image. Use match_input to match the size of the input (with an upper limit of 1440x1440 pixels)" + }, + "num_outputs": { + "type": "integer", + "title": "Num Outputs", + "default": 1, + "maximum": 4, + "minimum": 1, + "x-order": 2, + "description": "Number of outputs to generate" + }, + "control_image": { + "type": "string", + "title": "Control Image", + "format": "uri", + "x-order": 1, + "description": "Image used to control the generation. The canny edge detection will be automatically generated." + }, + "output_format": { + "allOf": [ + { + "$ref": "#/components/schemas/output_format" + } + ], + "default": "webp", + "x-order": 6, + "description": "Format of the output images" + }, + "output_quality": { + "type": "integer", + "title": "Output Quality", + "default": 80, + "maximum": 100, + "minimum": 0, + "x-order": 7, + "description": "Quality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs" + }, + "num_inference_steps": { + "type": "integer", + "title": "Num Inference Steps", + "default": 28, + "maximum": 50, + "minimum": 1, + "x-order": 3, + "description": "Number of denoising steps. Recommended range is 28-50, and lower number of steps produce lower quality outputs, faster." + }, + "disable_safety_checker": { + "type": "boolean", + "title": "Disable Safety Checker", + "default": false, + "x-order": 8, + "description": "Disable safety checker for generated images." + } + } + }, + "Output": { + "type": "array", + "items": { + "type": "string", + "format": "uri" + }, + "title": "Output" + }, + "Status": { + "enum": [ + "starting", + "processing", + "succeeded", + "canceled", + "failed" + ], + "type": "string", + "title": "Status", + "description": "An enumeration." + }, + "megapixels": { + "enum": [ + "1", + "0.25", + "match_input" + ], + "type": "string", + "title": "megapixels", + "description": "An enumeration." + }, + "WebhookEvent": { + "enum": [ + "start", + "output", + "logs", + "completed" + ], + "type": "string", + "title": "WebhookEvent", + "description": "An enumeration." + }, + "output_format": { + "enum": [ + "webp", + "jpg", + "png" + ], + "type": "string", + "title": "output_format", + "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" + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/schemas/black-forest-labs_flux-canny-pro.json b/schemas/black-forest-labs_flux-canny-pro.json new file mode 100644 index 0000000..e3f850a --- /dev/null +++ b/schemas/black-forest-labs_flux-canny-pro.json @@ -0,0 +1,534 @@ +{ + "url": "https://replicate.com/black-forest-labs/flux-canny-pro", + "owner": "black-forest-labs", + "name": "flux-canny-pro", + "description": "Professional edge-guided image generation. Control structure and composition using Canny edge detection", + "visibility": "public", + "github_url": null, + "paper_url": null, + "license_url": "https://replicate.com/black-forest-labs/flux-canny-pro#license", + "run_count": 0, + "cover_image_url": "https://tjzk.replicate.delivery/models_models_featured_image/4c07cacc-d206-4587-9357-8e4e81cd761a/https___replicate.deli_lsMxQWe.jpg", + "default_example": { + "id": "py9k3fdpjhrg80ck9svtzs31mw", + "model": "black-forest-labs/flux-canny-pro", + "version": "a2750efea69468f91ab96215343d44dda478e0a91d8822863760b469ad7bc587", + "status": "succeeded", + "input": { + "steps": 28, + "prompt": "a photo of a car on a city street", + "guidance": 25, + "control_image": "https://replicate.delivery/pbxt/M0j11UQhwUWoxUQ9hJCOaALsAHTeoPZcGGtUf6n3BJxtKHul/output-14.webp", + "output_format": "jpg", + "safety_tolerance": 2, + "prompt_upsampling": false + }, + "output": "https://replicate.delivery/czjl/yRS3V6IYC877GF3DnejR0WJvcz5eg6LTlbE3cJPC6CJQqMzTA/tmp8gs0wfw3.jpg", + "logs": "Using seed: 53733\nRunning prediction... \nGenerating image...\nGenerated image in 14.5sec\nDownloaded image in 1.40sec", + "error": null, + "metrics": { + "image_count": 1, + "predict_time": 16.036791085, + "total_time": 16.044827 + }, + "created_at": "2024-11-21T11:24:48.660000Z", + "started_at": "2024-11-21T11:24:48.668036Z", + "completed_at": "2024-11-21T11:25:04.704827Z", + "urls": { + "stream": "https://stream.replicate.com/v1/files/fddq-foxc6zmifshy4725kufggyzl7frq3li2yve6qt24tzeq2txszq3q", + "get": "https://api.replicate.com/v1/predictions/py9k3fdpjhrg80ck9svtzs31mw", + "cancel": "https://api.replicate.com/v1/predictions/py9k3fdpjhrg80ck9svtzs31mw/cancel" + } + }, + "latest_version": { + "id": "b0a59442583d6a8946e4766836f11b8d3fc516fe847c22cf11309c5f0a792111", + "created_at": "2024-11-25T15:39:30.251229+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", + "control_image" + ], + "properties": { + "seed": { + "type": "integer", + "title": "Seed", + "x-order": 2, + "description": "Random seed. Set for reproducible generation" + }, + "steps": { + "type": "integer", + "title": "Steps", + "default": 50, + "maximum": 50, + "minimum": 15, + "x-order": 3, + "description": "Number of diffusion steps. Higher values yield finer details but increase processing time." + }, + "prompt": { + "type": "string", + "title": "Prompt", + "x-order": 0, + "description": "Text prompt for image generation" + }, + "guidance": { + "type": "number", + "title": "Guidance", + "default": 30, + "maximum": 50, + "minimum": 1, + "x-order": 5, + "description": "Controls the balance between adherence to the text as well as image prompt and image quality/diversity. Higher values make the output more closely match the prompt but may reduce overall image quality. Lower values allow for more creative freedom but might produce results less relevant to the prompt." + }, + "control_image": { + "type": "string", + "title": "Control Image", + "format": "uri", + "x-order": 1, + "description": "Image to use as control input. Must be jpeg, png, gif, or webp." + }, + "output_format": { + "allOf": [ + { + "$ref": "#/components/schemas/output_format" + } + ], + "default": "jpg", + "x-order": 7, + "description": "Format of the output images." + }, + "safety_tolerance": { + "type": "integer", + "title": "Safety Tolerance", + "default": 2, + "maximum": 6, + "minimum": 1, + "x-order": 6, + "description": "Safety tolerance, 1 is most strict and 6 is most permissive" + }, + "prompt_upsampling": { + "type": "boolean", + "title": "Prompt Upsampling", + "default": false, + "x-order": 4, + "description": "Automatically modify the prompt for more creative generation" + } + } + }, + "Output": { + "type": "string", + "title": "Output", + "format": "uri" + }, + "Status": { + "enum": [ + "starting", + "processing", + "succeeded", + "canceled", + "failed" + ], + "type": "string", + "title": "Status", + "description": "An enumeration." + }, + "WebhookEvent": { + "enum": [ + "start", + "output", + "logs", + "completed" + ], + "type": "string", + "title": "WebhookEvent", + "description": "An enumeration." + }, + "output_format": { + "enum": [ + "jpg", + "png" + ], + "type": "string", + "title": "output_format", + "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" + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/schemas/black-forest-labs_flux-depth-dev.json b/schemas/black-forest-labs_flux-depth-dev.json new file mode 100644 index 0000000..459288b --- /dev/null +++ b/schemas/black-forest-labs_flux-depth-dev.json @@ -0,0 +1,552 @@ +{ + "url": "https://replicate.com/black-forest-labs/flux-depth-dev", + "owner": "black-forest-labs", + "name": "flux-depth-dev", + "description": "Open-weight depth-aware image generation. Edit images while preserving spatial relationships.", + "visibility": "public", + "github_url": null, + "paper_url": null, + "license_url": "https://github.com/black-forest-labs/flux/blob/main/model_licenses/LICENSE-FLUX1-dev", + "run_count": 0, + "cover_image_url": "https://tjzk.replicate.delivery/models_models_cover_image/4cfef8f5-5fcb-413c-bdaa-d6d4f41e5930/flux-depth-dev.jpg", + "default_example": { + "id": "bfpjneq0f1rme0ck9wy8xdj014", + "model": "black-forest-labs/flux-depth-dev", + "version": "a12dd4e72fcefa5a7deb871c63f2a4afe89dccf36bbd7a7fadaedb75568b86a2", + "status": "succeeded", + "input": { + "prompt": "A tropical beach", + "guidance": 10, + "megapixels": "1", + "num_outputs": 1, + "control_image": "https://replicate.delivery/pbxt/M0mJ4lphqO0HOGDb7jwYb4nMjmn0fh3joS0PxeQ90TPN0Skb/IMG_2270.jpg", + "output_format": "webp", + "output_quality": 80, + "num_inference_steps": 28 + }, + "output": [ + "https://replicate.delivery/xezq/JnlhyMG4GD6uEpGsfoXVG7wc8pIvQ3UtfRRhyef2aXkQQfZeE/out-0.webp" + ], + "logs": "running bf16 model, fp8 disabled\nUsing seed: 58064\n0it [00:00, ?it/s]\n1it [00:00, 6.69it/s]\n2it [00:00, 5.43it/s]\n3it [00:00, 5.12it/s]\n4it [00:00, 4.98it/s]\n5it [00:00, 4.89it/s]\n6it [00:01, 4.82it/s]\n7it [00:01, 4.79it/s]\n8it [00:01, 4.78it/s]\n9it [00:01, 4.78it/s]\n10it [00:02, 4.76it/s]\n11it [00:02, 4.75it/s]\n12it [00:02, 4.75it/s]\n13it [00:02, 4.76it/s]\n14it [00:02, 4.76it/s]\n15it [00:03, 4.74it/s]\n16it [00:03, 4.73it/s]\n17it [00:03, 4.74it/s]\n18it [00:03, 4.74it/s]\n19it [00:03, 4.75it/s]\n20it [00:04, 4.75it/s]\n21it [00:04, 4.74it/s]\n22it [00:04, 4.74it/s]\n23it [00:04, 4.74it/s]\n24it [00:04, 4.74it/s]\n25it [00:05, 4.74it/s]\n26it [00:05, 4.74it/s]\n27it [00:05, 4.74it/s]\n28it [00:05, 4.75it/s]\n28it [00:05, 4.80it/s]\nTotal safe images: 1 out of 1", + "error": null, + "metrics": { + "image_count": 1, + "predict_time": 10.590404969, + "total_time": 10.601146 + }, + "created_at": "2024-11-21T15:00:09.976000Z", + "started_at": "2024-11-21T15:00:09.986741Z", + "completed_at": "2024-11-21T15:00:20.577146Z", + "urls": { + "stream": "https://stream.replicate.com/v1/files/bcwr-7brw2myhdndib5siqoz6hdynxdx7pnke4y5dmcb5uy62qdqqcddq", + "get": "https://api.replicate.com/v1/predictions/bfpjneq0f1rme0ck9wy8xdj014", + "cancel": "https://api.replicate.com/v1/predictions/bfpjneq0f1rme0ck9wy8xdj014/cancel" + } + }, + "latest_version": { + "id": "6c9c6d40f94361ad4e4aa537e3165770a83254c7f8e93f4b72c9c04287a4e4f5", + "created_at": "2024-11-21T13:35:57.732973+00:00", + "cog_version": "0.9.21", + "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" + } + }, + "/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", + "control_image" + ], + "properties": { + "seed": { + "type": "integer", + "title": "Seed", + "x-order": 5, + "description": "Random seed. Set for reproducible generation" + }, + "prompt": { + "type": "string", + "title": "Prompt", + "x-order": 0, + "description": "Prompt for generated image" + }, + "guidance": { + "type": "number", + "title": "Guidance", + "default": 10, + "maximum": 100, + "minimum": 0, + "x-order": 4, + "description": "Guidance for generated image" + }, + "megapixels": { + "allOf": [ + { + "$ref": "#/components/schemas/megapixels" + } + ], + "default": "1", + "x-order": 9, + "description": "Approximate number of megapixels for generated image. Use match_input to match the size of the input (with an upper limit of 1440x1440 pixels)" + }, + "num_outputs": { + "type": "integer", + "title": "Num Outputs", + "default": 1, + "maximum": 4, + "minimum": 1, + "x-order": 2, + "description": "Number of outputs to generate" + }, + "control_image": { + "type": "string", + "title": "Control Image", + "format": "uri", + "x-order": 1, + "description": "Image used to control the generation. The depth map will be automatically generated." + }, + "output_format": { + "allOf": [ + { + "$ref": "#/components/schemas/output_format" + } + ], + "default": "webp", + "x-order": 6, + "description": "Format of the output images" + }, + "output_quality": { + "type": "integer", + "title": "Output Quality", + "default": 80, + "maximum": 100, + "minimum": 0, + "x-order": 7, + "description": "Quality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs" + }, + "num_inference_steps": { + "type": "integer", + "title": "Num Inference Steps", + "default": 28, + "maximum": 50, + "minimum": 1, + "x-order": 3, + "description": "Number of denoising steps. Recommended range is 28-50, and lower number of steps produce lower quality outputs, faster." + }, + "disable_safety_checker": { + "type": "boolean", + "title": "Disable Safety Checker", + "default": false, + "x-order": 8, + "description": "Disable safety checker for generated images." + } + } + }, + "Output": { + "type": "array", + "items": { + "type": "string", + "format": "uri" + }, + "title": "Output" + }, + "Status": { + "enum": [ + "starting", + "processing", + "succeeded", + "canceled", + "failed" + ], + "type": "string", + "title": "Status", + "description": "An enumeration." + }, + "megapixels": { + "enum": [ + "1", + "0.25", + "match_input" + ], + "type": "string", + "title": "megapixels", + "description": "An enumeration." + }, + "WebhookEvent": { + "enum": [ + "start", + "output", + "logs", + "completed" + ], + "type": "string", + "title": "WebhookEvent", + "description": "An enumeration." + }, + "output_format": { + "enum": [ + "webp", + "jpg", + "png" + ], + "type": "string", + "title": "output_format", + "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" + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/schemas/black-forest-labs_flux-depth-pro.json b/schemas/black-forest-labs_flux-depth-pro.json new file mode 100644 index 0000000..561c036 --- /dev/null +++ b/schemas/black-forest-labs_flux-depth-pro.json @@ -0,0 +1,534 @@ +{ + "url": "https://replicate.com/black-forest-labs/flux-depth-pro", + "owner": "black-forest-labs", + "name": "flux-depth-pro", + "description": "Professional depth-aware image generation. Edit images while preserving spatial relationships.", + "visibility": "public", + "github_url": null, + "paper_url": null, + "license_url": "https://replicate.com/black-forest-labs/flux-depth-pro#license", + "run_count": 0, + "cover_image_url": "https://tjzk.replicate.delivery/models_models_cover_image/e365ecff-4023-49f8-96ba-abd710c4bdd9/https___replicate.deliver_xWYu8lC.jpg", + "default_example": { + "id": "vvnr81nssdrg80ck9ssbhw7fkc", + "model": "black-forest-labs/flux-depth-pro", + "version": "51e1ce15b7daba582cff14aada2f03d7ac490f9ee7425cb10c82b9884ac7af74", + "status": "succeeded", + "input": { + "steps": 50, + "prompt": "abstract 3D render with the word \"DEPTH\"", + "guidance": 7, + "control_image": "https://replicate.delivery/pbxt/M0ivr5QCMktmdUi3t0TFrKtw3DSPenPTU5NAOEKjTfW98HaB/https___replicate.delivery_czjl_z4gE33oPjuLPB91f9eO5Np4zaqwm20UYPOZhjpTfXRJVzYmnA_tmppi3by3z7.jpg", + "output_format": "jpg", + "safety_tolerance": 2, + "prompt_upsampling": false + }, + "output": "https://replicate.delivery/czjl/YmnJr3uJFwaLHpyE2YQZEsGD6DsN3h6opElksQJ4UUzUJz8E/tmp_zp5p3b2.jpg", + "logs": "Using seed: 57786\nRunning prediction... \nGenerating image...\nGenerated image in 23.7sec\nDownloaded image in 1.65sec", + "error": null, + "metrics": { + "image_count": 1, + "predict_time": 25.565086614, + "total_time": 25.57423 + }, + "created_at": "2024-11-21T11:19:21.803000Z", + "started_at": "2024-11-21T11:19:21.812143Z", + "completed_at": "2024-11-21T11:19:47.377230Z", + "urls": { + "stream": "https://stream.replicate.com/v1/files/fddq-lwepnb4bb32saq4cqh2rbpks6gvf2gtblsuqackz5bwyobhg7eiq", + "get": "https://api.replicate.com/v1/predictions/vvnr81nssdrg80ck9ssbhw7fkc", + "cancel": "https://api.replicate.com/v1/predictions/vvnr81nssdrg80ck9ssbhw7fkc/cancel" + } + }, + "latest_version": { + "id": "c86388b54d5d9eea8c9cfb70a7ee0d40a55c7a3010ecec8e14c21c9bd64d3af8", + "created_at": "2024-11-25T15:40:17.244514+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", + "control_image" + ], + "properties": { + "seed": { + "type": "integer", + "title": "Seed", + "x-order": 2, + "description": "Random seed. Set for reproducible generation" + }, + "steps": { + "type": "integer", + "title": "Steps", + "default": 50, + "maximum": 50, + "minimum": 15, + "x-order": 3, + "description": "Number of diffusion steps. Higher values yield finer details but increase processing time." + }, + "prompt": { + "type": "string", + "title": "Prompt", + "x-order": 0, + "description": "Text prompt for image generation" + }, + "guidance": { + "type": "number", + "title": "Guidance", + "default": 10, + "maximum": 50, + "minimum": 1, + "x-order": 5, + "description": "Controls the balance between adherence to the text as well as image prompt and image quality/diversity. Higher values make the output more closely match the prompt but may reduce overall image quality. Lower values allow for more creative freedom but might produce results less relevant to the prompt." + }, + "control_image": { + "type": "string", + "title": "Control Image", + "format": "uri", + "x-order": 1, + "description": "Image to use as control input. Must be jpeg, png, gif, or webp." + }, + "output_format": { + "allOf": [ + { + "$ref": "#/components/schemas/output_format" + } + ], + "default": "jpg", + "x-order": 7, + "description": "Format of the output images." + }, + "safety_tolerance": { + "type": "integer", + "title": "Safety Tolerance", + "default": 2, + "maximum": 6, + "minimum": 1, + "x-order": 6, + "description": "Safety tolerance, 1 is most strict and 6 is most permissive" + }, + "prompt_upsampling": { + "type": "boolean", + "title": "Prompt Upsampling", + "default": false, + "x-order": 4, + "description": "Automatically modify the prompt for more creative generation" + } + } + }, + "Output": { + "type": "string", + "title": "Output", + "format": "uri" + }, + "Status": { + "enum": [ + "starting", + "processing", + "succeeded", + "canceled", + "failed" + ], + "type": "string", + "title": "Status", + "description": "An enumeration." + }, + "WebhookEvent": { + "enum": [ + "start", + "output", + "logs", + "completed" + ], + "type": "string", + "title": "WebhookEvent", + "description": "An enumeration." + }, + "output_format": { + "enum": [ + "jpg", + "png" + ], + "type": "string", + "title": "output_format", + "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" + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/schemas/black-forest-labs_flux-fill-dev.json b/schemas/black-forest-labs_flux-fill-dev.json new file mode 100644 index 0000000..dfefa6e --- /dev/null +++ b/schemas/black-forest-labs_flux-fill-dev.json @@ -0,0 +1,559 @@ +{ + "url": "https://replicate.com/black-forest-labs/flux-fill-dev", + "owner": "black-forest-labs", + "name": "flux-fill-dev", + "description": "Open-weight inpainting model for editing and extending images. Guidance-distilled from FLUX.1 Fill [pro].", + "visibility": "public", + "github_url": null, + "paper_url": null, + "license_url": "https://github.com/black-forest-labs/flux/blob/main/model_licenses/LICENSE-FLUX1-dev", + "run_count": 0, + "cover_image_url": "https://tjzk.replicate.delivery/models_models_cover_image/b109cc9e-f3c2-4899-8428-df46a988c3f0/https___replicate.deliver_tmlMO9j.jpg", + "default_example": { + "id": "nbhx3kj26srm80ck9rwbscz1q0", + "model": "black-forest-labs/flux-fill-dev", + "version": "871893dd5c29737ee18252f66c802505a00791c30fc07d9c9289618d8f9a9718", + "status": "succeeded", + "input": { + "mask": "https://replicate.delivery/pbxt/M0hxLu8a1YBcybWuumSsfoEec8ooer6JZ2fR28vuM1U0CN9m/74b40bb1-364a-461a-bec5-200a38c7bc87.png", + "image": "https://replicate.delivery/pbxt/M0hxMJeO7wFCMr7QYNZsjRxzHhz6ntlLllMteRQNsRD7f3Nf/flux-fill-dev.webp", + "prompt": "a spaceship", + "guidance": 30, + "num_outputs": 1, + "output_format": "webp", + "output_quality": 80, + "num_inference_steps": 28 + }, + "output": [ + "https://replicate.delivery/xezq/XAOCdYKsGYZ9FNTeeEQPbl8DM9eoDf050jLfSAZMuWVYJdZeE/out-0.webp" + ], + "logs": "running bf16 model, fp8 disabled\nUsing seed: 12554\nInput image size: 1024x1024\nInput image size set to: 1024x1024\n0it [00:00, ?it/s]\n1it [00:00, 6.43it/s]\n2it [00:00, 5.21it/s]\n3it [00:00, 4.91it/s]\n4it [00:00, 4.78it/s]\n5it [00:01, 4.71it/s]\n6it [00:01, 4.67it/s]\n7it [00:01, 4.63it/s]\n8it [00:01, 4.62it/s]\n9it [00:01, 4.61it/s]\n10it [00:02, 4.60it/s]\n11it [00:02, 4.60it/s]\n12it [00:02, 4.60it/s]\n13it [00:02, 4.59it/s]\n14it [00:02, 4.59it/s]\n15it [00:03, 4.59it/s]\n16it [00:03, 4.59it/s]\n17it [00:03, 4.58it/s]\n18it [00:03, 4.58it/s]\n19it [00:04, 4.57it/s]\n20it [00:04, 4.57it/s]\n21it [00:04, 4.57it/s]\n22it [00:04, 4.57it/s]\n23it [00:04, 4.57it/s]\n24it [00:05, 4.57it/s]\n25it [00:05, 4.58it/s]\n26it [00:05, 4.58it/s]\n27it [00:05, 4.58it/s]\n28it [00:06, 4.57it/s]\n28it [00:06, 4.63it/s]\nTotal safe images: 1 out of 1", + "error": null, + "metrics": { + "image_count": 1, + "predict_time": 9.544116396, + "total_time": 9.554881 + }, + "created_at": "2024-11-21T10:15:30.102000Z", + "started_at": "2024-11-21T10:15:30.112765Z", + "completed_at": "2024-11-21T10:15:39.656881Z", + "urls": { + "stream": "https://stream.replicate.com/v1/files/bcwr-ocdi6wafsezivgg6gtokmxu4rhvv4bhdhbx6vsomy7p2s5jxrq5q", + "get": "https://api.replicate.com/v1/predictions/nbhx3kj26srm80ck9rwbscz1q0", + "cancel": "https://api.replicate.com/v1/predictions/nbhx3kj26srm80ck9rwbscz1q0/cancel" + } + }, + "latest_version": { + "id": "a66f7be50c6ab5c9fca9af82a73034a5413143fd18f28e0aab5657b116123180", + "created_at": "2024-11-21T13:30:27.071078+00:00", + "cog_version": "0.9.21", + "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" + } + }, + "/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", + "image" + ], + "properties": { + "mask": { + "type": "string", + "title": "Mask", + "format": "uri", + "x-order": 2, + "description": "A black-and-white image that describes the part of the image to inpaint. Black areas will be preserved while white areas will be inpainted." + }, + "seed": { + "type": "integer", + "title": "Seed", + "x-order": 6, + "description": "Random seed. Set for reproducible generation" + }, + "image": { + "type": "string", + "title": "Image", + "format": "uri", + "x-order": 1, + "description": "The image to inpaint. Can contain alpha mask. If the image width or height are not multiples of 32, they will be scaled to the closest multiple of 32. If the image dimensions don't fit within 1440x1440, it will be scaled down to fit." + }, + "prompt": { + "type": "string", + "title": "Prompt", + "x-order": 0, + "description": "Prompt for generated image" + }, + "guidance": { + "type": "number", + "title": "Guidance", + "default": 30, + "maximum": 100, + "minimum": 0, + "x-order": 5, + "description": "Guidance for generated image" + }, + "megapixels": { + "allOf": [ + { + "$ref": "#/components/schemas/megapixels" + } + ], + "default": "1", + "x-order": 7, + "description": "Approximate number of megapixels for generated image. Use match_input to match the size of the input (with an upper limit of 1440x1440 pixels)" + }, + "num_outputs": { + "type": "integer", + "title": "Num Outputs", + "default": 1, + "maximum": 4, + "minimum": 1, + "x-order": 3, + "description": "Number of outputs to generate" + }, + "output_format": { + "allOf": [ + { + "$ref": "#/components/schemas/output_format" + } + ], + "default": "webp", + "x-order": 8, + "description": "Format of the output images" + }, + "output_quality": { + "type": "integer", + "title": "Output Quality", + "default": 80, + "maximum": 100, + "minimum": 0, + "x-order": 9, + "description": "Quality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs" + }, + "num_inference_steps": { + "type": "integer", + "title": "Num Inference Steps", + "default": 28, + "maximum": 50, + "minimum": 1, + "x-order": 4, + "description": "Number of denoising steps. Recommended range is 28-50, and lower number of steps produce lower quality outputs, faster." + }, + "disable_safety_checker": { + "type": "boolean", + "title": "Disable Safety Checker", + "default": false, + "x-order": 10, + "description": "Disable safety checker for generated images." + } + } + }, + "Output": { + "type": "array", + "items": { + "type": "string", + "format": "uri" + }, + "title": "Output" + }, + "Status": { + "enum": [ + "starting", + "processing", + "succeeded", + "canceled", + "failed" + ], + "type": "string", + "title": "Status", + "description": "An enumeration." + }, + "megapixels": { + "enum": [ + "1", + "0.25", + "match_input" + ], + "type": "string", + "title": "megapixels", + "description": "An enumeration." + }, + "WebhookEvent": { + "enum": [ + "start", + "output", + "logs", + "completed" + ], + "type": "string", + "title": "WebhookEvent", + "description": "An enumeration." + }, + "output_format": { + "enum": [ + "webp", + "jpg", + "png" + ], + "type": "string", + "title": "output_format", + "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" + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/schemas/black-forest-labs_flux-fill-pro.json b/schemas/black-forest-labs_flux-fill-pro.json new file mode 100644 index 0000000..08695f5 --- /dev/null +++ b/schemas/black-forest-labs_flux-fill-pro.json @@ -0,0 +1,542 @@ +{ + "url": "https://replicate.com/black-forest-labs/flux-fill-pro", + "owner": "black-forest-labs", + "name": "flux-fill-pro", + "description": "Professional inpainting and outpainting model with state-of-the-art performance. Edit or extend images with natural, seamless results.", + "visibility": "public", + "github_url": null, + "paper_url": null, + "license_url": "https://replicate.com/black-forest-labs/flux-fill-pro#license", + "run_count": 0, + "cover_image_url": "https://tjzk.replicate.delivery/models_models_featured_image/13571f4b-d677-404f-bff0-ad44da9d5fa0/https___replicate.deli_llwvezd.jpg", + "default_example": { + "id": "re6v81wt5srg80ck9qt82f8rrr", + "model": "black-forest-labs/flux-fill-pro", + "version": "a806bd8e44101af3641b8df37ce010c0c698673591032996618f2d2fc998bfad", + "status": "succeeded", + "input": { + "mask": "https://replicate.delivery/pbxt/M0gpLCYdCLbnhcz95Poy66q30XW9VSCN65DoDQ8IzdzlQonw/kill-bill-mask.png", + "image": "https://replicate.delivery/pbxt/M0gpKVE9wmEtOQFNDOpwz1uGs0u6nK2NcE85IihwlN0ZEnMF/kill-bill-poster.jpg", + "steps": 50, + "prompt": "movie poster says \"FLUX FILL\"", + "guidance": 3, + "output_format": "jpg", + "safety_tolerance": 2, + "prompt_upsampling": false + }, + "output": "https://replicate.delivery/czjl/xYw7Hzrneekwuk34N4yCTwEseVGmZ4Auofl3fgezk8PheRl5JA/tmpczng69kq.jpg", + "logs": "Using seed: 23628\nRunning prediction... \nGenerating image...\nGenerated image in 9.0sec\nDownloaded image in 1.14sec", + "error": null, + "metrics": { + "image_count": 1, + "predict_time": 10.385547055, + "total_time": 10.393524 + }, + "created_at": "2024-11-21T09:01:36.174000Z", + "started_at": "2024-11-21T09:01:36.181977Z", + "completed_at": "2024-11-21T09:01:46.567524Z", + "urls": { + "stream": "https://stream.replicate.com/v1/files/fddq-bhz3quatsagg6mdanr6exdtpyewwpge3jvlkme546eqtjmky6p6q", + "get": "https://api.replicate.com/v1/predictions/re6v81wt5srg80ck9qt82f8rrr", + "cancel": "https://api.replicate.com/v1/predictions/re6v81wt5srg80ck9qt82f8rrr/cancel" + } + }, + "latest_version": { + "id": "73176b190b79b8e68d5c58430795879ff6115d9d3a57c2f47c5db444723326a0", + "created_at": "2024-11-25T15:38:43.682357+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", + "image" + ], + "properties": { + "mask": { + "type": "string", + "title": "Mask", + "format": "uri", + "x-order": 2, + "description": "A black-and-white image that describes the part of the image to inpaint. Black areas will be preserved while white areas will be inpainted. Must have the same size as image. Optional if you provide an alpha mask in the original image. Must be jpeg, png, gif, or webp." + }, + "seed": { + "type": "integer", + "title": "Seed", + "x-order": 3, + "description": "Random seed. Set for reproducible generation" + }, + "image": { + "type": "string", + "title": "Image", + "format": "uri", + "x-order": 1, + "description": "The image to inpaint. Can contain an alpha mask. Must be jpeg, png, gif, or webp." + }, + "steps": { + "type": "integer", + "title": "Steps", + "default": 50, + "maximum": 50, + "minimum": 1, + "x-order": 4, + "description": "Number of diffusion steps. Higher values yield finer details but increase processing time." + }, + "prompt": { + "type": "string", + "title": "Prompt", + "x-order": 0, + "description": "Text prompt for image generation" + }, + "guidance": { + "type": "number", + "title": "Guidance", + "default": 3, + "maximum": 5, + "minimum": 2, + "x-order": 6, + "description": "Controls the balance between adherence to the text prompt and image quality/diversity. Higher values make the output more closely match the prompt but may reduce overall image quality. Lower values allow for more creative freedom but might produce results less relevant to the prompt." + }, + "output_format": { + "allOf": [ + { + "$ref": "#/components/schemas/output_format" + } + ], + "default": "jpg", + "x-order": 8, + "description": "Format of the output images." + }, + "safety_tolerance": { + "type": "integer", + "title": "Safety Tolerance", + "default": 2, + "maximum": 6, + "minimum": 1, + "x-order": 7, + "description": "Safety tolerance, 1 is most strict and 6 is most permissive" + }, + "prompt_upsampling": { + "type": "boolean", + "title": "Prompt Upsampling", + "default": false, + "x-order": 5, + "description": "Automatically modify the prompt for more creative generation" + } + } + }, + "Output": { + "type": "string", + "title": "Output", + "format": "uri" + }, + "Status": { + "enum": [ + "starting", + "processing", + "succeeded", + "canceled", + "failed" + ], + "type": "string", + "title": "Status", + "description": "An enumeration." + }, + "WebhookEvent": { + "enum": [ + "start", + "output", + "logs", + "completed" + ], + "type": "string", + "title": "WebhookEvent", + "description": "An enumeration." + }, + "output_format": { + "enum": [ + "jpg", + "png" + ], + "type": "string", + "title": "output_format", + "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" + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/schemas/black-forest-labs_flux-kontext-max.json b/schemas/black-forest-labs_flux-kontext-max.json new file mode 100644 index 0000000..a47692c --- /dev/null +++ b/schemas/black-forest-labs_flux-kontext-max.json @@ -0,0 +1,320 @@ +{ + "url": "https://replicate.com/black-forest-labs/flux-kontext-max", + "owner": "black-forest-labs", + "name": "flux-kontext-max", + "description": "A premium text-based image editing model that delivers maximum performance and improved typography generation for transforming images through natural language prompts", + "visibility": "public", + "github_url": null, + "paper_url": null, + "license_url": null, + "run_count": 0, + "cover_image_url": "https://tjzk.replicate.delivery/models_models_featured_image/debc1069-7e6b-48a7-a71b-489cc7cf1323/replicate-prediction-np382f6t.webp", + "default_example": { + "id": "s5ny1abwn5rma0cq6ysbzw0re8", + "model": "black-forest-labs/flux-kontext-max", + "version": "hidden", + "status": "succeeded", + "input": { + "prompt": "Make the letters 3D, floating in space on a city street", + "input_image": "https://replicate.delivery/xezq/XfwWjHJ7HfrmXE6ukuLVEpXWfeQ3PQeRI5mApuLXRxST7XMmC/tmpc91tlq20.png", + "aspect_ratio": "match_input_image", + "output_format": "jpg", + "safety_tolerance": 2 + }, + "output": "https://replicate.delivery/xezq/Mbbd8Tx2YfRYXSEmLgblTzGtj4ZurpgPjLui6jAqfXLasRzUA/tmpkav_ivyd.jpg", + "logs": "Using seed: 558658691\nGenerating...\nGenerated image in 4.7sec\nDownloading 149928 bytes\nDownloaded 0.14MB in 0.14sec", + "error": null, + "metrics": { + "image_count": 1, + "predict_time": 4.921643012, + "total_time": 4.929729 + }, + "created_at": "2025-06-03T21:28:53.673000Z", + "started_at": "2025-06-03T21:28:53.681086Z", + "completed_at": "2025-06-03T21:28:58.602729Z", + "urls": { + "stream": "https://stream.replicate.com/v1/files/bcwr-xpekfj5uhysb2iyghdmeoezon5ywfblxkpmvujt6ujnmeobb475a", + "get": "https://api.replicate.com/v1/predictions/s5ny1abwn5rma0cq6ysbzw0re8", + "cancel": "https://api.replicate.com/v1/predictions/s5ny1abwn5rma0cq6ysbzw0re8/cancel" + } + }, + "latest_version": { + "id": "317b27292eda8dda72eae6b6d24b2d74d2a247d626e22c39bb60d4bdf83cc52b", + "created_at": "2025-06-03T13:53:27.703429+00:00", + "cog_version": "0.15.2", + "openapi_schema": { + "info": { + "title": "Cog", + "version": "0.1.0" + }, + "paths": {}, + "openapi": "3.0.2", + "components": { + "schemas": { + "Input": { + "type": "object", + "title": "Input", + "required": [ + "prompt" + ], + "properties": { + "seed": { + "type": "integer", + "title": "Seed", + "x-order": 3, + "nullable": true, + "description": "Random seed. Set for reproducible generation" + }, + "prompt": { + "type": "string", + "title": "Prompt", + "x-order": 0, + "description": "Text description of what you want to generate, or the instruction on how to edit the given image." + }, + "input_image": { + "type": "string", + "title": "Input Image", + "format": "uri", + "x-order": 1, + "nullable": true, + "description": "Image to use as reference. Must be jpeg, png, gif, or webp." + }, + "aspect_ratio": { + "allOf": [ + { + "$ref": "#/components/schemas/aspect_ratio" + } + ], + "default": "match_input_image", + "x-order": 2, + "description": "Aspect ratio of the generated image. Use 'match_input_image' to match the aspect ratio of the input image." + }, + "output_format": { + "allOf": [ + { + "$ref": "#/components/schemas/output_format" + } + ], + "default": "png", + "x-order": 4, + "description": "Output format for the generated image" + }, + "safety_tolerance": { + "type": "integer", + "title": "Safety Tolerance", + "default": 2, + "maximum": 6, + "minimum": 0, + "x-order": 5, + "description": "Safety tolerance, 0 is most strict and 6 is most permissive. 2 is currently the maximum allowed when input images are used." + } + } + }, + "Output": { + "type": "string", + "title": "Output", + "format": "uri" + }, + "Status": { + "enum": [ + "starting", + "processing", + "succeeded", + "canceled", + "failed" + ], + "type": "string", + "title": "Status", + "description": "An enumeration." + }, + "WebhookEvent": { + "enum": [ + "start", + "output", + "logs", + "completed" + ], + "type": "string", + "title": "WebhookEvent", + "description": "An enumeration." + }, + "aspect_ratio": { + "enum": [ + "match_input_image", + "1:1", + "16:9", + "9:16", + "4:3", + "3:4", + "3:2", + "2:3", + "4:5", + "5:4", + "21:9", + "9:21", + "2:1", + "1:2" + ], + "type": "string", + "title": "aspect_ratio", + "description": "An enumeration." + }, + "output_format": { + "enum": [ + "jpg", + "png" + ], + "type": "string", + "title": "output_format", + "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" + }, + "context": { + "type": "object", + "title": "Context", + "additionalProperties": { + "type": "string" + } + }, + "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" + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/schemas/black-forest-labs_flux-kontext-pro.json b/schemas/black-forest-labs_flux-kontext-pro.json new file mode 100644 index 0000000..d3d7fe3 --- /dev/null +++ b/schemas/black-forest-labs_flux-kontext-pro.json @@ -0,0 +1,320 @@ +{ + "url": "https://replicate.com/black-forest-labs/flux-kontext-pro", + "owner": "black-forest-labs", + "name": "flux-kontext-pro", + "description": "A state-of-the-art text-based image editing model that delivers high-quality outputs with excellent prompt following and consistent results for transforming images through natural language", + "visibility": "public", + "github_url": null, + "paper_url": null, + "license_url": null, + "run_count": 0, + "cover_image_url": "https://tjzk.replicate.delivery/models_models_featured_image/e74eecd6-daf1-4050-9f04-36313bd6f007/two-people-cropped.webp", + "default_example": { + "id": "ks1w6tyk9nrma0cq6ycacv92xm", + "model": "black-forest-labs/flux-kontext-pro", + "version": "hidden", + "status": "succeeded", + "input": { + "prompt": "Make this a 90s cartoon", + "input_image": "https://replicate.delivery/pbxt/N55l5TWGh8mSlNzW8usReoaNhGbFwvLeZR3TX1NL4pd2Wtfv/replicate-prediction-f2d25rg6gnrma0cq257vdw2n4c.png", + "aspect_ratio": "match_input_image", + "output_format": "jpg", + "safety_tolerance": 2 + }, + "output": "https://replicate.delivery/xezq/83OKs6yfdoT5YCpfREnrFFbqLbfWbus8Q0e06fQ0BAMDRKamC/tmpu3nqollf.jpg", + "logs": "Using seed: 1944901477\nGenerating...\nGenerated image in 4.2sec\nDownloading 207029 bytes\nDownloaded 0.20MB in 0.14sec", + "error": null, + "metrics": { + "image_count": 1, + "predict_time": 4.372377316, + "total_time": 4.402262 + }, + "created_at": "2025-06-03T21:00:51.917000Z", + "started_at": "2025-06-03T21:00:51.946885Z", + "completed_at": "2025-06-03T21:00:56.319262Z", + "urls": { + "stream": "https://stream.replicate.com/v1/files/bcwr-53lhpegfrlvp2okti2n2ctaam2fuilck6mmi35jvdikz32r3mfkq", + "get": "https://api.replicate.com/v1/predictions/ks1w6tyk9nrma0cq6ycacv92xm", + "cancel": "https://api.replicate.com/v1/predictions/ks1w6tyk9nrma0cq6ycacv92xm/cancel" + } + }, + "latest_version": { + "id": "15589a1a9e6b240d246752fc688267b847db4858910cc390794703384b6a5443", + "created_at": "2025-06-03T14:09:34.544634+00:00", + "cog_version": "0.15.2", + "openapi_schema": { + "info": { + "title": "Cog", + "version": "0.1.0" + }, + "paths": {}, + "openapi": "3.0.2", + "components": { + "schemas": { + "Input": { + "type": "object", + "title": "Input", + "required": [ + "prompt" + ], + "properties": { + "seed": { + "type": "integer", + "title": "Seed", + "x-order": 3, + "nullable": true, + "description": "Random seed. Set for reproducible generation" + }, + "prompt": { + "type": "string", + "title": "Prompt", + "x-order": 0, + "description": "Text description of what you want to generate, or the instruction on how to edit the given image." + }, + "input_image": { + "type": "string", + "title": "Input Image", + "format": "uri", + "x-order": 1, + "nullable": true, + "description": "Image to use as reference. Must be jpeg, png, gif, or webp." + }, + "aspect_ratio": { + "allOf": [ + { + "$ref": "#/components/schemas/aspect_ratio" + } + ], + "default": "match_input_image", + "x-order": 2, + "description": "Aspect ratio of the generated image. Use 'match_input_image' to match the aspect ratio of the input image." + }, + "output_format": { + "allOf": [ + { + "$ref": "#/components/schemas/output_format" + } + ], + "default": "png", + "x-order": 4, + "description": "Output format for the generated image" + }, + "safety_tolerance": { + "type": "integer", + "title": "Safety Tolerance", + "default": 2, + "maximum": 6, + "minimum": 0, + "x-order": 5, + "description": "Safety tolerance, 0 is most strict and 6 is most permissive. 2 is currently the maximum allowed when input images are used." + } + } + }, + "Output": { + "type": "string", + "title": "Output", + "format": "uri" + }, + "Status": { + "enum": [ + "starting", + "processing", + "succeeded", + "canceled", + "failed" + ], + "type": "string", + "title": "Status", + "description": "An enumeration." + }, + "WebhookEvent": { + "enum": [ + "start", + "output", + "logs", + "completed" + ], + "type": "string", + "title": "WebhookEvent", + "description": "An enumeration." + }, + "aspect_ratio": { + "enum": [ + "match_input_image", + "1:1", + "16:9", + "9:16", + "4:3", + "3:4", + "3:2", + "2:3", + "4:5", + "5:4", + "21:9", + "9:21", + "2:1", + "1:2" + ], + "type": "string", + "title": "aspect_ratio", + "description": "An enumeration." + }, + "output_format": { + "enum": [ + "jpg", + "png" + ], + "type": "string", + "title": "output_format", + "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" + }, + "context": { + "type": "object", + "title": "Context", + "additionalProperties": { + "type": "string" + } + }, + "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" + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/schemas/black-forest-labs_flux-pro-finetuned.json b/schemas/black-forest-labs_flux-pro-finetuned.json new file mode 100644 index 0000000..eafbb4f --- /dev/null +++ b/schemas/black-forest-labs_flux-pro-finetuned.json @@ -0,0 +1,375 @@ +{ + "url": "https://replicate.com/black-forest-labs/flux-pro-finetuned", + "owner": "black-forest-labs", + "name": "flux-pro-finetuned", + "description": "Inference model for FLUX.1 [pro] using custom `finetune_id`", + "visibility": "public", + "github_url": null, + "paper_url": null, + "license_url": "https://replicate.com/black-forest-labs/flux-pro#license", + "run_count": 0, + "cover_image_url": "https://tjzk.replicate.delivery/models_models_cover_image/f311118a-a8c4-4aa5-abb0-40a347ec4bad/flux-pro-finetuned-cover.webp", + "default_example": { + "id": "sjcjsnbm2nrma0cq6pj9w62nqw", + "model": "black-forest-labs/flux-pro-finetuned", + "version": "hidden", + "status": "succeeded", + "input": { + "steps": 40, + "prompt": "A formula one CYBERCAB car", + "guidance": 3, + "finetune_id": "fc14d7bf-95bd-4dde-92c1-2dd7317721f6", + "aspect_ratio": "3:2", + "output_format": "jpg", + "safety_tolerance": 2, + "finetune_strength": 1, + "prompt_upsampling": false + }, + "output": "https://replicate.delivery/xezq/1tqX4qNG67ZANNXKauc0CVReVmclyKe53FazX2mqnJC6RJzUA/tmpspn25fph.jpg", + "logs": "Running prediction... \n\n================ Training Details ================\nTrigger Word: CYBERCAB\n\nOther Details:\n Learning Rate: 1e-05\n Iterations: 100\n LoRA Rank: 32\n Mode: general\n Priority: quality\n Finetune Type: full\n Trained: 2025-01-17_13-48-43\n==================================================\nUsing seed: 17313\nGenerating image...\nGenerated image in 14.9sec\nDownloaded image in 0.32sec", + "error": null, + "metrics": { + "image_count": 1, + "predict_time": 15.436660591, + "total_time": 15.461466 + }, + "created_at": "2025-06-03T11:54:19.541000Z", + "started_at": "2025-06-03T11:54:19.565806Z", + "completed_at": "2025-06-03T11:54:35.002466Z", + "urls": { + "stream": "https://stream.replicate.com/v1/files/bcwr-5qauwenuj7nw2ptsgx2nyffnixiyewfierjagi6gryswvnlsna6q", + "get": "https://api.replicate.com/v1/predictions/sjcjsnbm2nrma0cq6pj9w62nqw", + "cancel": "https://api.replicate.com/v1/predictions/sjcjsnbm2nrma0cq6pj9w62nqw/cancel" + } + }, + "latest_version": { + "id": "fffbc699c16b5e64eb0605071852bd6f0a5de8a50cc8f6e698cd15e3e01ee310", + "created_at": "2025-06-03T12:20:26.617055+00:00", + "cog_version": "0.15.2", + "openapi_schema": { + "info": { + "title": "Cog", + "version": "0.1.0" + }, + "paths": {}, + "openapi": "3.0.2", + "components": { + "schemas": { + "Input": { + "type": "object", + "title": "Input", + "required": [ + "prompt", + "finetune_id" + ], + "properties": { + "seed": { + "type": "integer", + "title": "Seed", + "x-order": 11, + "description": "Random seed. Set for reproducible generation" + }, + "steps": { + "type": "integer", + "title": "Steps", + "default": 40, + "maximum": 50, + "minimum": 1, + "x-order": 8, + "description": "Number of diffusion steps" + }, + "width": { + "type": "integer", + "title": "Width", + "maximum": 1440, + "minimum": 256, + "x-order": 5, + "description": "Width of the generated image in text-to-image mode. Only used when aspect_ratio=custom. Must be a multiple of 32 (if it's not, it will be rounded to nearest multiple of 32). Note: Ignored in img2img and inpainting modes." + }, + "height": { + "type": "integer", + "title": "Height", + "maximum": 1440, + "minimum": 256, + "x-order": 6, + "description": "Height of the generated image in text-to-image mode. Only used when aspect_ratio=custom. Must be a multiple of 32 (if it's not, it will be rounded to nearest multiple of 32). Note: Ignored in img2img and inpainting modes." + }, + "prompt": { + "type": "string", + "title": "Prompt", + "x-order": 0, + "description": "Text prompt for image generation" + }, + "guidance": { + "type": "number", + "title": "Guidance", + "default": 3, + "maximum": 5, + "minimum": 2, + "x-order": 9, + "description": "Controls the balance between adherence to the text prompt and image quality/diversity. Higher values make the output more closely match the prompt but may reduce overall image quality. Lower values allow for more creative freedom but might produce results less relevant to the prompt." + }, + "finetune_id": { + "type": "string", + "title": "Finetune Id", + "x-order": 1, + "description": "Finetune ID for making images using a previously trained fine-tune. Only IDs from trainings made using Replicate's Flux Pro fine-tuning model are supported." + }, + "aspect_ratio": { + "allOf": [ + { + "$ref": "#/components/schemas/aspect_ratio" + } + ], + "default": "1:1", + "x-order": 4, + "description": "Aspect ratio for the generated image" + }, + "image_prompt": { + "type": "string", + "title": "Image Prompt", + "format": "uri", + "x-order": 3, + "description": "Image to use with Flux Redux. This is used together with the text prompt to guide the generation towards the composition of the image_prompt. Must be jpeg, png, gif, or webp." + }, + "output_format": { + "allOf": [ + { + "$ref": "#/components/schemas/output_format" + } + ], + "default": "jpg", + "x-order": 12, + "description": "Format of the output images." + }, + "safety_tolerance": { + "type": "integer", + "title": "Safety Tolerance", + "default": 2, + "maximum": 6, + "minimum": 1, + "x-order": 10, + "description": "Safety tolerance, 1 is most strict and 6 is most permissive" + }, + "finetune_strength": { + "type": "number", + "title": "Finetune Strength", + "default": 1, + "maximum": 2, + "minimum": 0, + "x-order": 2, + "description": "Controls finetune influence" + }, + "prompt_upsampling": { + "type": "boolean", + "title": "Prompt Upsampling", + "default": false, + "x-order": 7, + "description": "Automatically modify the prompt for more creative generation" + } + } + }, + "Output": { + "type": "string", + "title": "Output", + "format": "uri" + }, + "Status": { + "enum": [ + "starting", + "processing", + "succeeded", + "canceled", + "failed" + ], + "type": "string", + "title": "Status", + "description": "An enumeration." + }, + "WebhookEvent": { + "enum": [ + "start", + "output", + "logs", + "completed" + ], + "type": "string", + "title": "WebhookEvent", + "description": "An enumeration." + }, + "aspect_ratio": { + "enum": [ + "custom", + "1:1", + "16:9", + "3:2", + "2:3", + "4:5", + "5:4", + "9:16", + "3:4", + "4:3" + ], + "type": "string", + "title": "aspect_ratio", + "description": "An enumeration." + }, + "output_format": { + "enum": [ + "jpg", + "png" + ], + "type": "string", + "title": "output_format", + "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" + }, + "context": { + "type": "object", + "title": "Context", + "additionalProperties": { + "type": "string" + } + }, + "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" + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/schemas/black-forest-labs_flux-pro-trainer.json b/schemas/black-forest-labs_flux-pro-trainer.json new file mode 100644 index 0000000..736bba3 --- /dev/null +++ b/schemas/black-forest-labs_flux-pro-trainer.json @@ -0,0 +1,377 @@ +{ + "url": "https://replicate.com/black-forest-labs/flux-pro-trainer", + "owner": "black-forest-labs", + "name": "flux-pro-trainer", + "description": "Train FLUX.1 [pro] and FLUX 1.1 [pro] Ultra. Upload images to create a custom finetune_id to use with the inference model", + "visibility": "public", + "github_url": null, + "paper_url": "https://blackforestlabs.ai/flux-1-1-ultra/", + "license_url": "https://replicate.com/black-forest-labs/flux-pro#license", + "run_count": 0, + "cover_image_url": "https://tjzk.replicate.delivery/models_models_featured_image/480d9c6c-ef76-4416-8011-a80bca99df6f/trainer-cover.webp", + "default_example": { + "id": "0dfc7pwdaxrme0cpg86sqf1ky0", + "model": "black-forest-labs/flux-pro-trainer", + "version": "hidden", + "status": "succeeded", + "input": { + "mode": "general", + "priority": "quality", + "lora_rank": 32, + "captioning": "captioning-disabled", + "input_images": "https://replicate.delivery/pbxt/MvDQOp1uNVTNjYxI9wnvyqXNMumlUzQdBFFPvkqNyIkkG1Rn/ABSRTBNGS.zip", + "trigger_word": "ABSRTBNGS", + "finetune_type": "full", + "training_steps": 300 + }, + "output": "f07345cb-4d18-4461-aa6f-179566153d28", + "logs": "Starting fine-tuning...\n\nInput zip size: 2.0MB\nOptimized zip size: 0.7MB\n{'finetune_id': 'f07345cb-4d18-4461-aa6f-179566153d28', 'polling_url': 'https://api.us1.bfl.ai/v1/get_result?id=f07345cb-4d18-4461-aa6f-179566153d28'}\nFine-tuning...\n\nStill processing...\n\nStill processing...\n\nStill processing...\n\nStill processing...\n\nStill processing...\n\nStill processing...\n\nStill processing...\n\nStill processing...\n\nFine-tuning completed in 679.8sec\n\nFine tuning completed. Use your finetune ID f07345cb-4d18-4461-aa6f-179566153d28 to create images with your training.", + "error": null, + "metrics": { + "predict_time": 680.353265239, + "total_time": 680.37157 + }, + "created_at": "2025-04-29T14:57:28.407000Z", + "started_at": "2025-04-29T14:57:28.425304Z", + "completed_at": "2025-04-29T15:08:48.778570Z", + "urls": { + "get": "https://api.replicate.com/v1/predictions/0dfc7pwdaxrme0cpg86sqf1ky0", + "cancel": "https://api.replicate.com/v1/predictions/0dfc7pwdaxrme0cpg86sqf1ky0/cancel" + } + }, + "latest_version": { + "id": "04e652c9c01dcae177b3e3e716aecf3d4f6a671c9533e3fa4b5ae7617a694fe4", + "created_at": "2025-04-29T14:38:46.875425+00:00", + "cog_version": "0.14.7", + "openapi_schema": { + "info": { + "title": "Cog", + "version": "0.1.0" + }, + "paths": {}, + "openapi": "3.0.2", + "components": { + "schemas": { + "mode": { + "enum": [ + "general", + "character", + "style", + "product" + ], + "type": "string", + "title": "mode", + "description": "An enumeration." + }, + "Input": { + "type": "object", + "title": "Input", + "properties": { + "mode": { + "allOf": [ + { + "$ref": "#/components/schemas/mode" + } + ], + "default": "general", + "x-order": 3, + "description": "Mode for the fine-tuned model" + }, + "priority": { + "allOf": [ + { + "$ref": "#/components/schemas/priority" + } + ], + "default": "quality", + "x-order": 6, + "description": "Priority of the fine-tuning process" + }, + "lora_rank": { + "allOf": [ + { + "$ref": "#/components/schemas/lora_rank" + } + ], + "default": 32, + "x-order": 8, + "description": "Rank of the fine-tuned model" + }, + "captioning": { + "allOf": [ + { + "$ref": "#/components/schemas/captioning" + } + ], + "default": "automatic", + "x-order": 5, + "description": "Whether to enable captioning during fine-tuning. Automatic turns on captioning if any images are missing caption files." + }, + "input_images": { + "type": "string", + "title": "Input Images", + "format": "uri", + "x-order": 0, + "description": "A zip file containing the images that will be used for training. We recommend a minimum of 10 images. If you include captions, include them as one .txt file per image, e.g. my-photo.jpg should have a caption file named my-photo.txt. If you don't include captions, you can turn on captioning." + }, + "trigger_word": { + "type": "string", + "title": "Trigger Word", + "default": "TOK", + "x-order": 2, + "description": "The trigger word refers to the object, style or concept you are training on. Pick a string that isn't a real word, like TOK or something related to what's being trained, like CYBRPNK. The trigger word you specify here will be associated with all images during training. Then when you use your LoRA, you can include the trigger word in prompts to help activate the LoRA." + }, + "finetune_type": { + "allOf": [ + { + "$ref": "#/components/schemas/finetune_type" + } + ], + "default": "full", + "x-order": 7, + "description": "Type of fine-tuning" + }, + "learning_rate": { + "type": "number", + "title": "Learning Rate", + "maximum": 0.5, + "minimum": 1e-07, + "x-order": 4, + "description": "Learning rate for fine-tuning. If not provided, defaults to 1e-5 for full fine-tuning and 1e-4 for lora fine-tuning" + }, + "training_steps": { + "allOf": [ + { + "$ref": "#/components/schemas/training_steps" + } + ], + "default": 300, + "x-order": 1, + "description": "Number of training steps for the fine-tuning process." + } + } + }, + "Output": { + "type": "string", + "title": "Output" + }, + "Status": { + "enum": [ + "starting", + "processing", + "succeeded", + "canceled", + "failed" + ], + "type": "string", + "title": "Status", + "description": "An enumeration." + }, + "priority": { + "enum": [ + "speed", + "quality", + "high_res_only" + ], + "type": "string", + "title": "priority", + "description": "An enumeration." + }, + "lora_rank": { + "enum": [ + 16, + 32 + ], + "type": "integer", + "title": "lora_rank", + "description": "An enumeration." + }, + "captioning": { + "enum": [ + "automatic", + "captioning-enabled", + "captioning-disabled" + ], + "type": "string", + "title": "captioning", + "description": "An enumeration." + }, + "WebhookEvent": { + "enum": [ + "start", + "output", + "logs", + "completed" + ], + "type": "string", + "title": "WebhookEvent", + "description": "An enumeration." + }, + "finetune_type": { + "enum": [ + "lora", + "full" + ], + "type": "string", + "title": "finetune_type", + "description": "An enumeration." + }, + "training_steps": { + "enum": [ + 149, + 300, + 400, + 500, + 600, + 700, + 800, + 900, + 1000 + ], + "type": "integer", + "title": "training_steps", + "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" + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/schemas/black-forest-labs_flux-redux-dev.json b/schemas/black-forest-labs_flux-redux-dev.json new file mode 100644 index 0000000..26d00c5 --- /dev/null +++ b/schemas/black-forest-labs_flux-redux-dev.json @@ -0,0 +1,569 @@ +{ + "url": "https://replicate.com/black-forest-labs/flux-redux-dev", + "owner": "black-forest-labs", + "name": "flux-redux-dev", + "description": "Open-weight image variation model. Create new versions while preserving key elements of your original.", + "visibility": "public", + "github_url": null, + "paper_url": null, + "license_url": "https://github.com/black-forest-labs/flux/blob/main/model_licenses/LICENSE-FLUX1-dev", + "run_count": 0, + "cover_image_url": "https://tjzk.replicate.delivery/models_models_featured_image/daff59ba-540d-4111-a969-9119ee814f26/redux-cover.jpg", + "default_example": { + "id": "syf1t20h0hrmc0ck9x8rbdjybc", + "model": "black-forest-labs/flux-redux-dev", + "version": "df70f0bb7bb2e67417eebd79db0a9958c51c87d16cba6dc618903103b04ccd4c", + "status": "succeeded", + "input": { + "guidance": 3, + "megapixels": "1", + "num_outputs": 1, + "redux_image": "https://replicate.delivery/pbxt/M0mdz2nXiUmhpfLswjNdEHT3IhGtclUz7Q1sCw3XiHXzUugT/0_ZjYSm_q36J4KChdn.webp", + "aspect_ratio": "4:3", + "output_format": "webp", + "output_quality": 80, + "num_inference_steps": 28 + }, + "output": [ + "https://replicate.delivery/xezq/Oaex1FdP2ayjUSrbBrYA1WXnGJlu2ESnk71anWxs4OGWEo5JA/out-0.webp" + ], + "logs": "running bf16 model, fp8 disabled\nUsing seed: 61735\n0it [00:00, ?it/s]\n1it [00:00, 6.93it/s]\n2it [00:00, 4.80it/s]\n3it [00:00, 4.38it/s]\n4it [00:00, 4.18it/s]\n5it [00:01, 4.06it/s]\n6it [00:01, 4.02it/s]\n7it [00:01, 4.00it/s]\n8it [00:01, 3.97it/s]\n9it [00:02, 3.94it/s]\n10it [00:02, 3.93it/s]\n11it [00:02, 3.94it/s]\n12it [00:02, 3.93it/s]\n13it [00:03, 3.92it/s]\n14it [00:03, 3.92it/s]\n15it [00:03, 3.92it/s]\n16it [00:03, 3.92it/s]\n17it [00:04, 3.91it/s]\n18it [00:04, 3.92it/s]\n19it [00:04, 3.92it/s]\n20it [00:04, 3.91it/s]\n21it [00:05, 3.91it/s]\n22it [00:05, 3.91it/s]\n23it [00:05, 3.92it/s]\n24it [00:06, 3.92it/s]\n25it [00:06, 3.91it/s]\n26it [00:06, 3.92it/s]\n27it [00:06, 3.91it/s]\n28it [00:07, 3.91it/s]\n28it [00:07, 3.98it/s]\nTotal safe images: 1 out of 1", + "error": null, + "metrics": { + "image_count": 1, + "predict_time": 7.522483329, + "total_time": 7.530364 + }, + "created_at": "2024-11-21T15:22:13.124000Z", + "started_at": "2024-11-21T15:22:13.131880Z", + "completed_at": "2024-11-21T15:22:20.654364Z", + "urls": { + "stream": "https://stream.replicate.com/v1/files/bcwr-oy3eifiybhx5ctwbbpkrx457d2pvmwzp47jsxxvfojeh6n4pu4fa", + "get": "https://api.replicate.com/v1/predictions/syf1t20h0hrmc0ck9x8rbdjybc", + "cancel": "https://api.replicate.com/v1/predictions/syf1t20h0hrmc0ck9x8rbdjybc/cancel" + } + }, + "latest_version": { + "id": "0e522c0b709bd26a0727a7b7c38391e50cef5ef4016550c93fdd29a72d147981", + "created_at": "2024-11-21T07:09:26.194976+00:00", + "cog_version": "0.9.21", + "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" + } + }, + "/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", + "properties": { + "seed": { + "type": "integer", + "title": "Seed", + "x-order": 5, + "description": "Random seed. Set for reproducible generation" + }, + "guidance": { + "type": "number", + "title": "Guidance", + "default": 3, + "maximum": 10, + "minimum": 0, + "x-order": 4, + "description": "Guidance for generated image" + }, + "megapixels": { + "allOf": [ + { + "$ref": "#/components/schemas/megapixels" + } + ], + "default": "1", + "x-order": 9, + "description": "Approximate number of megapixels for generated image" + }, + "num_outputs": { + "type": "integer", + "title": "Num Outputs", + "default": 1, + "maximum": 4, + "minimum": 1, + "x-order": 2, + "description": "Number of outputs to generate" + }, + "redux_image": { + "type": "string", + "title": "Redux Image", + "format": "uri", + "x-order": 0, + "description": "Input image to condition your output on. This replaces prompt for FLUX.1 Redux models" + }, + "aspect_ratio": { + "allOf": [ + { + "$ref": "#/components/schemas/aspect_ratio" + } + ], + "default": "1:1", + "x-order": 1, + "description": "Aspect ratio for the generated image" + }, + "output_format": { + "allOf": [ + { + "$ref": "#/components/schemas/output_format" + } + ], + "default": "webp", + "x-order": 6, + "description": "Format of the output images" + }, + "output_quality": { + "type": "integer", + "title": "Output Quality", + "default": 80, + "maximum": 100, + "minimum": 0, + "x-order": 7, + "description": "Quality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs" + }, + "num_inference_steps": { + "type": "integer", + "title": "Num Inference Steps", + "default": 28, + "maximum": 50, + "minimum": 1, + "x-order": 3, + "description": "Number of denoising steps. Recommended range is 28-50" + }, + "disable_safety_checker": { + "type": "boolean", + "title": "Disable Safety Checker", + "default": false, + "x-order": 8, + "description": "Disable safety checker for generated images." + } + } + }, + "Output": { + "type": "array", + "items": { + "type": "string", + "format": "uri" + }, + "title": "Output" + }, + "Status": { + "enum": [ + "starting", + "processing", + "succeeded", + "canceled", + "failed" + ], + "type": "string", + "title": "Status", + "description": "An enumeration." + }, + "megapixels": { + "enum": [ + "1", + "0.25" + ], + "type": "string", + "title": "megapixels", + "description": "An enumeration." + }, + "WebhookEvent": { + "enum": [ + "start", + "output", + "logs", + "completed" + ], + "type": "string", + "title": "WebhookEvent", + "description": "An enumeration." + }, + "aspect_ratio": { + "enum": [ + "1:1", + "16:9", + "21:9", + "3:2", + "2:3", + "4:5", + "5:4", + "3:4", + "4:3", + "9:16", + "9:21" + ], + "type": "string", + "title": "aspect_ratio", + "description": "An enumeration." + }, + "output_format": { + "enum": [ + "webp", + "jpg", + "png" + ], + "type": "string", + "title": "output_format", + "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" + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/schemas/ideogram-ai_ideogram-v2-turbo.json b/schemas/ideogram-ai_ideogram-v2-turbo.json index 99e88dc..13f658f 100644 --- a/schemas/ideogram-ai_ideogram-v2-turbo.json +++ b/schemas/ideogram-ai_ideogram-v2-turbo.json @@ -657,4 +657,4 @@ } } } -} +} \ No newline at end of file diff --git a/schemas/ideogram-ai_ideogram-v2.json b/schemas/ideogram-ai_ideogram-v2.json index 3598fda..8199d06 100644 --- a/schemas/ideogram-ai_ideogram-v2.json +++ b/schemas/ideogram-ai_ideogram-v2.json @@ -657,4 +657,4 @@ } } } -} +} \ No newline at end of file diff --git a/supported_models.json b/supported_models.json index 3cbb35f..75aeac5 100644 --- a/supported_models.json +++ b/supported_models.json @@ -9,8 +9,21 @@ "bytedance/sdxl-lightning-4step", "black-forest-labs/flux-dev", "black-forest-labs/flux-pro", + "black-forest-labs/flux-pro-finetuned", + "black-forest-labs/flux-pro-trainer", "black-forest-labs/flux-1.1-pro", + "black-forest-labs/flux-1.1-pro-ultra", + "black-forest-labs/flux-1.1-pro-ultra-finetuned", "black-forest-labs/flux-schnell", + "black-forest-labs/flux-depth-pro", + "black-forest-labs/flux-canny-pro", + "black-forest-labs/flux-fill-pro", + "black-forest-labs/flux-redux-dev", + "black-forest-labs/flux-depth-dev", + "black-forest-labs/flux-canny-dev", + "black-forest-labs/flux-fill-dev", + "black-forest-labs/flux-kontext-pro", + "black-forest-labs/flux-kontext-max", "cjwbw/hyper-sdxl-1step-t2i", "cjwbw/pixart-sigma", "cjwbw/seamless_communication",