FLUX API
FLUX family on Replicate — Schnell, Dev, Pro, Kontext, Ultra, and LoRA remix variants in one entrypoint. Integrate this model via REST with endpoint docs, parameters, and code examples.
Get API Key
Create auth keys for apps and agents
See Usage
Track requests, credits, and logs
Buy Credits
Top up prepaid API capacity
Try a preset
Pre-tuned starting points. Click one to open the tool with these params loaded.
Architectural twilight
Modern architecture exterior, blue hour, long-exposure light trails.
Try this preset
Cinematic portrait
Moody close-up portrait, shallow depth of field, golden hour rim light.
Try this preset
Concert stage
Wide concert venue from the back, performer silhouette, audience phones up.
Try this preset
Desert fashion
Editorial fashion shot in a desert setting at golden hour, wind in the hair.
Try this preset
Editorial coffee shop
Latte art and a journal on a wood table by a sunlit window.
Try this preset
Food still life
Editorial food photography on a stone surface, soft side light.
Try this preset
Minimal poster
Editorial swiss-style poster with a single product silhouette.
Try this preset
Noir detective
1940s noir scene, hard shadows, cigarette smoke, cinematic.
Try this preset
Product on marble
Editorial product shot on a marble countertop, soft daylight from a window.
Try this preset
Sneaker product shot
High-end athletic sneaker on a clean podium with rim light.
Try this preset
Studio headshot
Clean corporate headshot, neutral grey backdrop, soft beauty light.
Try this preset
Tokyo streetstyle
Full-length editorial fashion shot, Tokyo back alley at dusk.
Try this preset
API Endpoint
/api/v1/models/flux/runLLM.txt
For AI assistants
Copy this model's documentation into Claude, GPT, or any AI for instant integration help.
/llm/flux.txtOpenAPI Spec
Swagger compatible
Import into Postman, Swagger UI, or generate client SDKs in any language.
/api/openapiParameters
Input parameters accepted by this model
| Parameter | Type | Default |
|---|---|---|
promptrequired | string | - |
modelrequired | string | - |
aspect_ratio | enum | 1:1 |
num_outputs | integer | 1 |
seed | integer | - |
output_format | string | png |
output_quality | integer | 80 |
guidance_scale | number | - |
num_inference_steps | integer | - |
prompt_upsampling | boolean | false |
safety_tolerance | integer | 5 |
width | integer | - |
height | integer | - |
megapixels | string | - |
hf_lora | string | - |
hf_loras | array | - |
lora_weights | string | - |
lora_scale | number | 1 |
lora_scales | array | - |
customLoras | array | - |
Supported Aspect Ratios
See also
Related endpoints on this model — you may need a different apiId for a different operation (e.g. image edit vs generation).
Example Outputs
Real outputs generated by this model
high-end product photography, premium athletic sneaker centered on a minimal grey podium, dramatic rim light from above, clean white seamless background, advertising-grade composition
editorial food photography, plated dish on a textured stone surface, soft north-facing window light, dewy textures, michelin guide aesthetic, shallow depth of field
cinematic 1940s film noir scene, detective in fedora silhouetted by venetian blind shadows, cigarette smoke curling, hard chiaroscuro lighting, black and white with deep blacks
editorial fashion photograph, model in flowing linen against red rock desert at golden hour, wind catching the hair, kodak portra 400 grain, magazine cover quality
wide concert venue shot from the back of the crowd, performer silhouette against bright stage lights, sea of phones held up, lens flare, atmospheric haze, photojournalism style
editorial lifestyle photograph, latte with rosetta art beside an open journal on a worn wood table by a sunlit window, soft bokeh, warm tones, slow morning aesthetic
full-length editorial fashion photography, model in tokyo streetstyle outfit, narrow back alley at dusk, neon reflections, Kodak Portra 400 grain
professional studio headshot, neutral grey paper backdrop, soft beauty dish light, sharp eyes, subtle catch light, business-appropriate styling
editorial product photography, premium product centered on a marble countertop, soft north-facing window daylight, minimal styling, magazine-grade composition
minimal swiss-style editorial poster, single product silhouette, off-white background, oversized san-serif typography composition
modern architecture exterior at blue hour, long-exposure car light trails, mirrored glass facade, photorealistic, magazine cover composition
cinematic portrait, shallow depth of field, golden hour rim light, soft skin texture, color grade like A24
a thrilling action sequence of a woman trying to find her favorite candy. The candy wrapper is purple with a pixelated dragon and reads "Pixel Dojo". The woman says "Gotta have that pixel dojo candy. with over 60 ai tools, it's basically zero calories."
a thrilling action sequence of a woman trying to find her favorite candy. The candy wrapper is purple with a pixelated dragon and reads "Pixel Dojo". The woman says "Gotta have that pixel dojo candy. with over 60 ai tools, it's basically zero calories."
a thrilling action sequence of a woman trying to find her favorite candy. The candy wrapper is purple with a pixelated dragon and reads "Pixel Dojo". The woman says "Gotta have that pixel dojo candy. with over 60 ai tools, it's basically zero calories."
a thrilling action sequence of a woman trying to find her favorite candy. The candy wrapper is purple with a pixelated dragon and reads "Pixel Dojo". The woman says "Gotta have that pixel dojo candy. with over 60 ai tools, it's basically zero calories."
Code Examples
Copy and paste to get started
curl -X POST "https://pixeldojo.ai/api/v1/models/flux/run" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A beautiful mountain landscape at golden hour",
"aspect_ratio": "1:1"
}'Response Format
Submit Response (202 Accepted)
{
"jobId": "job_abc123...",
"status": "pending",
"statusUrl": "https://pixeldojo.ai/api/v1/jobs/job_abc123...",
"creditCost": 1,
"creditsRemaining": 95,
"expiresAt": "2025-01-23T12:00:00Z"
}Completed Response
{
"jobId": "job_abc123...",
"status": "completed",
"output": {
"images": [
"https://temp.pixeldojo.ai/pixeldojotemp/1705930123-456789.png"
]
},
"creditCost": 1,
"expiresAt": "2025-01-23T12:00:00Z"
}