Image models › Flux Kontext
Generate or Edit Image
Generate or Edit Image
image Flux Kontext price on request
Request
POST https://app.video-blade.com/api/v1/generations
X-API-Key: vb_…
Content-Type: application/json
{
"callback_url": "https://your-app.example/callbacks/video-blade",
"input": {
"prompt": "\u2026"
},
"model": "flux-kontext-generate-or-edit-image"
}
Input parameters
| Name | Type | Required | Description |
|---|---|---|---|
prompt |
string | required | Text prompt describing the desired image or edit. Required for both generation and editing modes. - Should be detailed and specific - For image editing, describe the desired changes - For image generation, describe the complete scene - IMPORTANT: Only English language is supported |
enable_translation |
boolean | optional | Whether to enable automatic translation feature. - Since prompt only supports English, when this parameter is true, the system will automatically translate non-English prompts to English - If your prompt is already in English, you can set this to false - Default value: true |
upload_cn |
boolean | optional | (Optional) Specifies the server region for image upload. Set to true to use servers in China, false to use non-China servers. Choose based on your geographical location for optimal upload speeds. |
input_image |
string | optional | URL of the input image for editing mode. Required when editing an existing image. - Must be a valid image URL - Image must be accessible to the API server |
aspect_ratio |
string | optional | Output image aspect ratio. You Applicable in both text-to-image generation and image editing modes. For **text-to-image generation** , the output image will follow the specified aspect ratio. For **image editing** , if aspectRatio is provided, the edited image will follow that ratio. If not provided, the image will retain its original aspect ratio. Supported Aspect Ratios: | Ratio | Format Type | Common Use Cases | |-------|-------------|-----------------| | 21:9 | Ultra-wide | Cinematic displays, panoramic views | | 16:9 | Widescreen | HD video, desktop wallpapers | | 4:3 | Standard | Traditi Values: 21:9, 16:9, 4:3, 1:1, 3:4, 9:16Default:
16:9 |
output_format |
string | optional | Output image format. Values: jpeg, pngDefault:
jpeg |
prompt_upsampling |
boolean | optional | - If true, performs upsampling on the prompt - May increase processing time Default:
False |
safety_tolerance |
integer | optional | **For Image Generation Mode:** Moderation level for inputs and outputs. Value ranges from 0 (most strict) to 6 (more permissive). **For Image Editing Mode:** Moderation level for inputs and outputs. Value ranges from 0 (most strict) to 2 (balanced). Default: 2 Values: 0, 1, 2, 3, 4, 5, 6Default:
2 |
watermark |
string | optional | Watermark identifier to add to the generated image. - Optional - If provided, a watermark will be added to the output image |
Pricing
Price on request; the charge is settled from actual consumption with the image coefficient ×2.0. See Pricing & tokens.