- Introduction
- System Design
- Get Started
- My Account
- API Documentation
- Generate ImagePOST
- Get ProgressGET
- UpscalePOST
- VariationPOST
- ZoomPOST
- PanPOST
- RerollPOST
- Make SquarePOST
- Cancel JobPOST
- InpaintingPOST
- Image to Text (describe)POST
- Image to ImagePOST
- Face SwapPOST
- BlendPOST
- HistoryGET
- Generate Image BoostPOST
- Button BoostPOST
- Prompt CheckPOST
- Account InfoGET
- Generate Image - Flux ModelPOST
- Remove BackgroundPOST
- FLUX API Documentation
- DIY Plan Endpoints
- Guide
- HowTos
- Web App
Generate Image - Flux Model
POST
https://api.imaginepro.ai/api/v1/flux/imagine
images
fields in the completed response will have all the generated images.uri
field in the completed response is the first image's URL.Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
prompt
string
required
ref
string | null
optional
webhookOverride
string | null
optional
Default:
YOUR_BACKEND_API_ENDPOINT
timeout
integer | null
optional
>= 10<= 900
Default:
900
n
integer | null
optional
>= 1<= 4
Default:
1
height
integer | null
optional
Default:
1024
width
integer | null
optional
Default:
1024
aspect_ratio
string | null
optional
Default:
1:1
output_format
string | null
optional
Default:
png
output_quality
string | null
optional
Default:
100
model
string | null
optional
flux-1.1-pro
Default:
flux-1.1-pro
Example
{
"prompt": "string",
"ref": "string",
"webhookOverride": "YOUR_BACKEND_API_ENDPOINT",
"timeout": 900,
"n": 1,
"height": 1024,
"width": 1024,
"aspect_ratio": "1:1",
"output_format": "png",
"output_quality": "100",
"model": "flux-1.1-pro"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.imaginepro.ai/api/v1/flux/imagine' \
--header 'Content-Type: application/json' \
--data-raw ''
Responses
🟢200Success
application/json
Body
success
boolean
required
messageId
string
required
createdAt
string
required
error
string
optional
Example
{
"success": true,
"messageId": "d15c1541-229a-442b-9873-d3494dede12a",
"createdAt": "2023-08-01T14:03:01.817Z"
}
Modified at 2024-11-24 14:20:34