Add recraft and flux 1.1

This commit is contained in:
Paul
2024-11-05 15:05:34 +00:00
parent 85ca255931
commit 2590ade874
3 changed files with 1092 additions and 0 deletions
+559
View File
@@ -0,0 +1,559 @@
{
"url": "https://replicate.com/black-forest-labs/flux-1.1-pro",
"owner": "black-forest-labs",
"name": "flux-1.1-pro",
"description": "Faster, better FLUX Pro. Text-to-image model with excellent image quality, prompt adherence, and output diversity.",
"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_featured_image/bd872eff-363a-4e10-8cc1-84057afa9f57/flux-1.1-cover.webp",
"default_example": {
"id": "11yss2r0gnrge0cjf05rk4np6r",
"model": "replicate/flux-1.1-pro-internal-model",
"version": "4f7f6b19f702914394c150efb78c9839966207238bce54023709382495e1b190",
"status": "succeeded",
"input": {
"prompt": "black forest gateau cake spelling out the words \"FLUX 1.1 Pro\", tasty, food photography",
"aspect_ratio": "1:1",
"output_format": "webp",
"output_quality": 80,
"safety_tolerance": 2,
"prompt_upsampling": true
},
"output": "https://replicate.delivery/czjl/HQZ89fz0ogUSJi2RLpuTyYERDsOKRsbNNJwLMOHdGIEAMvyJA/output.webp",
"logs": "Using seed: 47742\nRunning prediction... \nGenerating image...\nGenerated image in 6.8sec\nDownloaded image in 1.78sec",
"error": null,
"metrics": {
"image_count": 1,
"predict_time": 8.695100636,
"total_time": 8.70337
},
"created_at": "2024-10-10T20:07:19.941000Z",
"started_at": "2024-10-10T20:07:19.949269Z",
"completed_at": "2024-10-10T20:07:28.644370Z",
"urls": {
"get": "https://api.replicate.com/v1/predictions/11yss2r0gnrge0cjf05rk4np6r",
"cancel": "https://api.replicate.com/v1/predictions/11yss2r0gnrge0cjf05rk4np6r/cancel"
}
},
"latest_version": {
"id": "a91bed9b0301d9d10b34b89b1f4d0255f2e2499c59576bfcd13405575dacdb25",
"created_at": "2024-10-03T13:45:13.547780+00:00",
"cog_version": "0.10.0-alpha21",
"openapi_schema": {
"info": {
"title": "Cog",
"version": "0.1.0"
},
"paths": {
"/": {
"get": {
"summary": "Root",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"title": "Response Root Get"
}
}
},
"description": "Successful Response"
}
},
"operationId": "root__get"
}
},
"/ready": {
"get": {
"summary": "Ready",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"title": "Response Ready Ready Get"
}
}
},
"description": "Successful Response"
}
},
"operationId": "ready_ready_get"
}
},
"/shutdown": {
"post": {
"summary": "Start Shutdown",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"title": "Response Start Shutdown Shutdown Post"
}
}
},
"description": "Successful Response"
}
},
"operationId": "start_shutdown_shutdown_post"
}
},
"/predictions": {
"post": {
"summary": "Predict",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PredictionResponse"
}
}
},
"description": "Successful Response"
},
"422": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
},
"description": "Validation Error"
}
},
"parameters": [
{
"in": "header",
"name": "prefer",
"schema": {
"type": "string",
"title": "Prefer"
},
"required": false
}
],
"description": "Run a single prediction on the model",
"operationId": "predict_predictions_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PredictionRequest"
}
}
}
}
}
},
"/health-check": {
"get": {
"summary": "Healthcheck",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"title": "Response Healthcheck Health Check Get"
}
}
},
"description": "Successful Response"
}
},
"operationId": "healthcheck_health_check_get"
}
},
"/predictions/{prediction_id}": {
"put": {
"summary": "Predict Idempotent",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PredictionResponse"
}
}
},
"description": "Successful Response"
},
"422": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
},
"description": "Validation Error"
}
},
"parameters": [
{
"in": "path",
"name": "prediction_id",
"schema": {
"type": "string",
"title": "Prediction ID"
},
"required": true
},
{
"in": "header",
"name": "prefer",
"schema": {
"type": "string",
"title": "Prefer"
},
"required": false
}
],
"description": "Run a single prediction on the model (idempotent creation).",
"operationId": "predict_idempotent_predictions__prediction_id__put",
"requestBody": {
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/PredictionRequest"
}
],
"title": "Prediction Request"
}
}
},
"required": true
}
}
},
"/predictions/{prediction_id}/cancel": {
"post": {
"summary": "Cancel",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"title": "Response Cancel Predictions Prediction Id Cancel Post"
}
}
},
"description": "Successful Response"
},
"422": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
},
"description": "Validation Error"
}
},
"parameters": [
{
"in": "path",
"name": "prediction_id",
"schema": {
"type": "string",
"title": "Prediction ID"
},
"required": true
}
],
"description": "Cancel a running prediction",
"operationId": "cancel_predictions__prediction_id__cancel_post"
}
}
},
"openapi": "3.0.2",
"components": {
"schemas": {
"Input": {
"type": "object",
"title": "Input",
"required": [
"prompt"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"x-order": 5,
"description": "Random seed. Set for reproducible generation"
},
"width": {
"type": "integer",
"title": "Width",
"maximum": 1440,
"minimum": 256,
"x-order": 2,
"description": "Width of the generated image in text-to-image mode. Only used when aspect_ratio=custom. Must be a multiple of 16 (if it's not, it will be rounded to nearest multiple of 16). Note: Ignored in img2img and inpainting modes."
},
"height": {
"type": "integer",
"title": "Height",
"maximum": 1440,
"minimum": 256,
"x-order": 3,
"description": "Height of the generated image in text-to-image mode. Only used when aspect_ratio=custom. Must be a multiple of 16 (if it's not, it will be rounded to nearest multiple of 16). Note: Ignored in img2img and inpainting modes."
},
"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": 1,
"description": "Aspect ratio for the generated image"
},
"output_format": {
"allOf": [
{
"$ref": "#/components/schemas/output_format"
}
],
"default": "webp",
"x-order": 7,
"description": "Format of the output images."
},
"output_quality": {
"type": "integer",
"title": "Output Quality",
"default": 80,
"maximum": 100,
"minimum": 0,
"x-order": 8,
"description": "Quality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs"
},
"safety_tolerance": {
"type": "integer",
"title": "Safety Tolerance",
"default": 2,
"maximum": 5,
"minimum": 1,
"x-order": 4,
"description": "Safety tolerance, 1 is most strict and 5 is most permissive"
},
"prompt_upsampling": {
"type": "boolean",
"title": "Prompt Upsampling",
"default": false,
"x-order": 6,
"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",
"2:3",
"3:2",
"4:5",
"5:4",
"9:16",
"3:4",
"4:3"
],
"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"
}
}
}
}
}
}
}
}
+531
View File
@@ -0,0 +1,531 @@
{
"url": "https://replicate.com/recraft-ai/recraft-v3",
"owner": "recraft-ai",
"name": "recraft-v3",
"description": "Recraft V3 (code-named red_panda) is a text-to-image model with the ability to generate long texts, and images in a wide list of styles. As of today, it is SOTA in image generation, proven by the Text-to-Image Benchmark by Artificial Analysis",
"visibility": "public",
"github_url": null,
"paper_url": "https://recraft.ai",
"license_url": "https://www.recraft.ai/terms",
"run_count": 0,
"cover_image_url": "https://tjzk.replicate.delivery/models_models_featured_image/afce5fa4-5f8a-45db-95c0-bf62ec6958e7/output-59.webp",
"default_example": {
"id": "0j1q9mjh81rga0cjvvdv5b3jdr",
"model": "replicate/recraft-v3-internal",
"version": "d2e1f655ab989457e73fdeaddc34e3bd8fee79c318aba6ed312571442a7da78c",
"status": "succeeded",
"input": {
"size": "1365x1024",
"style": "any",
"prompt": "a wildlife photography photo of a red panda using a laptop in a snowy forest"
},
"output": "https://replicate.delivery/czjl/eTxDZunLeFulD0734CMCIuhP6llmZbgtbxfjzyfi4hxAAOwOB/output.webp",
"logs": "Running prediction... \nStarting image generation...\nGenerated image in 8.53sec",
"error": null,
"metrics": {
"image_count": 1,
"predict_time": 8.824670026,
"total_time": 8.83191
},
"created_at": "2024-10-30T19:16:08.128000Z",
"started_at": "2024-10-30T19:16:08.135240Z",
"completed_at": "2024-10-30T19:16:16.959910Z",
"urls": {
"stream": "https://stream.replicate.com/v1/files/fddq-7326dxea6ozw4hqyed6qj6xjgzl3jfvkfswh4a3otrx3h5f2wrgq",
"get": "https://api.replicate.com/v1/predictions/0j1q9mjh81rga0cjvvdv5b3jdr",
"cancel": "https://api.replicate.com/v1/predictions/0j1q9mjh81rga0cjvvdv5b3jdr/cancel"
}
},
"latest_version": {
"id": "e06217725b21e2c059a09b3f44b4aef56574173aee9976c9726bdc0f474d7f46",
"created_at": "2024-11-04T13:41:30.416489+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": {
"size": {
"enum": [
"1024x1024",
"1365x1024",
"1024x1365",
"1536x1024",
"1024x1536",
"1820x1024",
"1024x1820",
"1024x2048",
"2048x1024",
"1434x1024",
"1024x1434",
"1024x1280",
"1280x1024",
"1024x1707",
"1707x1024"
],
"type": "string",
"title": "size",
"description": "An enumeration."
},
"Input": {
"type": "object",
"title": "Input",
"required": [
"prompt"
],
"properties": {
"size": {
"allOf": [
{
"$ref": "#/components/schemas/size"
}
],
"default": "1024x1024",
"x-order": 1,
"description": "Width and height of the generated image"
},
"style": {
"allOf": [
{
"$ref": "#/components/schemas/style"
}
],
"default": "any",
"x-order": 2,
"description": "Style of the generated image."
},
"prompt": {
"type": "string",
"title": "Prompt",
"x-order": 0,
"description": "Text prompt for image generation"
}
}
},
"style": {
"enum": [
"any",
"realistic_image",
"digital_illustration",
"digital_illustration/pixel_art",
"digital_illustration/hand_drawn",
"digital_illustration/grain",
"digital_illustration/infantile_sketch",
"digital_illustration/2d_art_poster",
"digital_illustration/handmade_3d",
"digital_illustration/hand_drawn_outline",
"digital_illustration/engraving_color",
"digital_illustration/2d_art_poster_2",
"realistic_image/b_and_w",
"realistic_image/hard_flash",
"realistic_image/hdr",
"realistic_image/natural_light",
"realistic_image/studio_portrait",
"realistic_image/enterprise",
"realistic_image/motion_blur"
],
"type": "string",
"title": "style",
"description": "An enumeration."
},
"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."
},
"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"
}
}
}
}
}
}
}
}
+2
View File
@@ -9,6 +9,7 @@
"bytedance/sdxl-lightning-4step",
"black-forest-labs/flux-dev",
"black-forest-labs/flux-pro",
"black-forest-labs/flux-1.1-pro",
"black-forest-labs/flux-schnell",
"cjwbw/hyper-sdxl-1step-t2i",
"cjwbw/pixart-sigma",
@@ -42,6 +43,7 @@
"nateraw/musicgen-songstarter-v0.2",
"omniedgeio/face-swap",
"philz1337x/clarity-upscaler",
"recraft-ai/recraft-v3",
"replicate/deepfloyd-if",
"salesforce/blip",
"smoretalk/rembg-enhance",