mirror of
https://github.com/ChatGPTNextWeb/NextChat-Awesome-Plugins.git
synced 2026-07-08 01:32:03 +08:00
add flux plugin
This commit is contained in:
@@ -12,7 +12,9 @@
|
|||||||
## Operations
|
## Operations
|
||||||
|
|
||||||
1. FluxPro
|
1. FluxPro
|
||||||
> FLUX.1 [pro], next generation text-to-image model.
|
2. FluxDev
|
||||||
|
3. FluxSchnell
|
||||||
|
4. FluxDevImageToImage
|
||||||
|
|
||||||
|
|
||||||
## Authentication
|
## Authentication
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 72 KiB |
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"openapi": "3.1.0",
|
"openapi": "3.1.0",
|
||||||
"info": {
|
"info": {
|
||||||
"title": "Flux Pro",
|
"title": "Flux",
|
||||||
"description": "The pro version of FLUX.1, served in partnership with BFL",
|
"description": "The pro version of FLUX.1, served in partnership with BFL",
|
||||||
"version": "v1.0.0"
|
"version": "v1.0.0"
|
||||||
},
|
},
|
||||||
@@ -20,34 +20,55 @@
|
|||||||
"content": {
|
"content": {
|
||||||
"application/json": {
|
"application/json": {
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "object",
|
"$ref": "#/components/schemas/TextToImageInputs"
|
||||||
"required": ["prompt", "image_size", "num_inference_steps", "guidance_scale"],
|
}
|
||||||
"properties": {
|
}
|
||||||
"prompt": {
|
}
|
||||||
"type": "string",
|
}
|
||||||
"description": "The prompt to generate an image from."
|
}
|
||||||
},
|
},
|
||||||
"image_size": {
|
"/fal-ai/flux/dev": {
|
||||||
"type": "string",
|
"post": {
|
||||||
"description": "The size of the generated image. Default value: `landscape_4_3`. Possible enum values: `square_hd`, `square`, `portrait_4_3`, `portrait_16_9`, `landscape_4_3`, `landscape_16_9`."
|
"operationId": "FluxDev",
|
||||||
},
|
"description": "FLUX.1 [dev], next generation text-to-image model.",
|
||||||
"num_inference_steps": {
|
"deprecated": false,
|
||||||
"type": "integer",
|
"requestBody": {
|
||||||
"description": "The number of inference steps to perform. Default value: 28"
|
"content": {
|
||||||
},
|
"application/json": {
|
||||||
"seed": {
|
"schema": {
|
||||||
"type": "integer",
|
"$ref": "#/components/schemas/TextToImageInputs"
|
||||||
"description": "The same seed and the same prompt given to the same version of the model will output the same image every time."
|
}
|
||||||
},
|
}
|
||||||
"guidance_scale": {
|
}
|
||||||
"type": "number",
|
}
|
||||||
"description": "The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you. Default value: 3.5"
|
}
|
||||||
},
|
},
|
||||||
"num_images": {
|
"/fal-ai/flux/schnell": {
|
||||||
"type": "integer",
|
"post": {
|
||||||
"description": "The number of images to generate. Default value: 1"
|
"operationId": "FluxSchnell",
|
||||||
}
|
"description": "FLUX.1 [schnell], turbo mode for next generation text-to-image model FLUX.",
|
||||||
}
|
"deprecated": false,
|
||||||
|
"requestBody": {
|
||||||
|
"content": {
|
||||||
|
"application/json": {
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/components/schemas/TextToImageInputs"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"/fal-ai/flux/dev/image-to-image": {
|
||||||
|
"post": {
|
||||||
|
"operationId": "FluxDevImageToImage",
|
||||||
|
"description": "Image to image version of FLUX.1 [dev], next generation image-to-image model.",
|
||||||
|
"deprecated": false,
|
||||||
|
"requestBody": {
|
||||||
|
"content": {
|
||||||
|
"application/json": {
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/components/schemas/ImageToImageInputs"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -56,6 +77,85 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"components": {
|
"components": {
|
||||||
"schemas": {}
|
"schemas": {
|
||||||
|
"TextToImageInputs": {
|
||||||
|
"title": "TextToImageInputs",
|
||||||
|
"type": "object",
|
||||||
|
"required": ["prompt", "image_size", "num_inference_steps", "guidance_scale"],
|
||||||
|
"properties": {
|
||||||
|
"prompt": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The prompt to generate an image from."
|
||||||
|
},
|
||||||
|
"image_size": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The size of the generated image. Default value: `landscape_4_3`. Possible enum values: `square_hd`, `square`, `portrait_4_3`, `portrait_16_9`, `landscape_4_3`, `landscape_16_9`."
|
||||||
|
},
|
||||||
|
"num_inference_steps": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "The number of inference steps to perform. Default value: 28"
|
||||||
|
},
|
||||||
|
"seed": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "The same seed and the same prompt given to the same version of the model will output the same image every time."
|
||||||
|
},
|
||||||
|
"guidance_scale": {
|
||||||
|
"type": "number",
|
||||||
|
"description": "The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you. Default value: 3.5"
|
||||||
|
},
|
||||||
|
"num_images": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "The number of images to generate. Default value: 1"
|
||||||
|
},
|
||||||
|
"enable_safety_checker": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "If set to true, the safety checker will be enabled. Default value: true"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ImageToImageInputs": {
|
||||||
|
"title": "ImageToImageInputs",
|
||||||
|
"type": "object",
|
||||||
|
"required": ["prompt", "image_size", "num_inference_steps", "guidance_scale"],
|
||||||
|
"properties": {
|
||||||
|
"image_url": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The URL of the image to generate an image from."
|
||||||
|
},
|
||||||
|
"prompt": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The prompt to generate an image from."
|
||||||
|
},
|
||||||
|
"strength": {
|
||||||
|
"type": "number",
|
||||||
|
"description": "The strength of the initial image. Higher strength values are better for this model. Default value: 0.95"
|
||||||
|
},
|
||||||
|
"image_size": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The size of the generated image. Default value: `landscape_4_3`. Possible enum values: `square_hd`, `square`, `portrait_4_3`, `portrait_16_9`, `landscape_4_3`, `landscape_16_9`."
|
||||||
|
},
|
||||||
|
"num_inference_steps": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "The number of inference steps to perform. Default value: 28"
|
||||||
|
},
|
||||||
|
"seed": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "The same seed and the same prompt given to the same version of the model will output the same image every time."
|
||||||
|
},
|
||||||
|
"guidance_scale": {
|
||||||
|
"type": "number",
|
||||||
|
"description": "The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you. Default value: 3.5"
|
||||||
|
},
|
||||||
|
"num_images": {
|
||||||
|
"type": "integer",
|
||||||
|
"description": "The number of images to generate. Default value: 1"
|
||||||
|
},
|
||||||
|
"enable_safety_checker": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "If set to true, the safety checker will be enabled. Default value: true"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user