- GET START
- OpenAI Compatiable Endpoint
- Audio
- Anthropic Compatiable Endpoint
- Music Generation Endpoint
- Image Generation Endpoint
- Midjourney(images)
- Ideogram(images)
- Flux(images)
- Replicate(image)
- Recraft(images)
- Video Generation Ednpoint
- Software Integration Guide
- cometapi Site API Call Testing
- OpenManus
- Chatbox
- CherryStudio
- Cursor
- ChatHub
- cline
- dify
- gptme
- Immersive Translation
- Lobe-Chat
- Zotero
- LangChain
- AnythingLLM
- Eudic Translation
- OpenAI Translator
- ChatAll Translation
- Pot Translation
- GPT Academic Optimization (gpt_academic)
- NEXT CHAT (ChatGPT Next Web)
- Obsidian's Text Generator Plugin
- Open WebUI
- avante.nvim
- librechat
- Lazy Customer Service
- utools-ChatGPT Friend
- IntelliJ Translation Plugin
- n8n
flux generate image
Testing
POST
https://api.cometapi.com/{models}
Maintainer:Not configured
Fully synchronized with official documentation
https://api.bfl.ml/scalar#tag/tasks/POST/v1/finetune
Request
Path Params
models
enum<string>
required
Allowed values:
flux-pro-1.1flux-proflux-devflux-pro-1.1-ultraflux-pro-1.0-cannyflux-pro-1.0-fillflux-pro-1.0-depth
Example:
flux-pro
Header Params
Authorization
string
required
Example:
{{api-key}}
Content-Type
string
optional
Example:
application/json
Body Params application/json
prompt
string
required
image_prompt
string
optional
width
integer
optional
height
integer
optional
steps
integer
optional
prompt_upsampling
boolean
optional
seed
integer
optional
guidance
number
optional
safety_tolerance
integer
optional
interval
integer
optional
output_format
string
optional
webhook_url
string
optional
webhook_secret
string
optional
Example
{
"prompt": "ein fantastisches bild",
"image_prompt": "",
"width": 1024,
"height": 768,
"prompt_upsampling": false,
"seed": 42,
"safety_tolerance": 2,
"output_format": "jpeg",
"webhook_url": "",
"webhook_secret": ""
}
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.cometapi.com/flux-pro' \
--header 'Authorization: {{api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "ein fantastisches bild",
"image_prompt": "",
"width": 1024,
"height": 768,
"prompt_upsampling": false,
"seed": 42,
"safety_tolerance": 2,
"output_format": "jpeg",
"webhook_url": "",
"webhook_secret": ""
}'
Responses
🟢200OK
application/json
Body
id
string
optional
polling_url
string
optional
Example
{
"id": "…",
"polling_url": "…"
}