Model IDDocumentation Index
Fetch the complete documentation index at: https://docs.gmicloud.ai/llms.txt
Use this file to discover all available pages before exploring further.
Flux Kontext Pro API Usage Guide
Overview
Flux Kontext Pro is a production-grade text-to-image model optimized for quality, speed, and controllability. It supports common aspect ratios, guidance scaling, seed control, step tuning, and flexible response formats. Designed for creative generation and enterprise workflows, it produces consistent, detailed images from natural language prompts.Authentication
All API requests require authentication using an API key. Include your API key in the Authorization header:Submit Image Generation Request
Base URL
Endpoint
Request Format
Request Parameters
| Parameter | Type | Required | Description | Default | Constraints |
|---|---|---|---|---|---|
prompt | string | Yes | Text description of the desired image (max 2000 characters). | - | Required |
aspect_ratio | string | No | Desired aspect ratio of the generated image (e.g., 16:9). Supported Range: Aspect ratios can range from 3:7 (portrait) to 7:3 (landscape). All outputs are approximately 1MP total. Use null to let the system decide. | ”1:1” | Options: “1:1”, “16:9”, “9:16”, “4:3”, “3:7”, “7:3” |
seed | integer | No | Random seed for reproducible results (0 for random). | 0 | 0 to 2147483647 |
prompt_upsampling | boolean | No | If true, performs upsampling/enhancement on the prompt for improved detail and adherence. | false | Optional |
safety_tolerance | integer | No | Moderation level for inputs and outputs. 0 is most strict, 6 is more permissive. | 2 | 0 to 6 |
output_format | string | No | Desired format of the output image. | ”jpeg” | Options: “jpeg”, “png” |
Response
Check Request Status
Endpoint
Example
Response
Request Status Values
| Status | Description |
|---|---|
queued | Request is waiting to be processed |
processing | Video generation is in progress |
success | Video generation completed successfully |
failed | Video generation failed |
cancelled | Request was cancelled |
List Your Requests
Endpoint
Example
Get Model Information
Endpoint
Example
List Available Models
Endpoint
Example
Response
Tips for Better Results
- Prompt Clarity: Use detailed, specific prompts for precise results.