Skip to main content

Price drop on WAN and Seedream! WAN 3.0 is now 2 credits a second at 720p, WAN 3.0 Fast is 3 at 720p and 6 at 1080p, and WAN 2.7 Image to Video is 3 a second at 720p. Seedream 5 Pro is now 2.5 credits per image (1.25 at 1K), and Seedream 4.5 and Seedream 5 Lite are back to 1 credit. Details: pixeldojo.ai/changelog

Veo 3.1 20% off through October 8

Back to API Platform

Image Generation

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.

Img2Img
LoRA
Credit Cost
1 credit
Type
Image

API Endpoint

POST
/api/v1/models/flux/run

Test This Model

Run a real request through the API pipeline and inspect the exact input and output your integration will handle. Uses your credits like any API call; failed runs are refunded automatically.

Parameters

Input parameters accepted by this model

ParameterTypeDefault
prompt
required
string
-
model
required
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
-

Use saved characters (@Name)

This model takes no reference images, so @Name of a saved character is refused (400) before anything is charged. A saved location, prop or style with a description is inserted as text. For saved characters, use a model that takes reference images, such as Nano Banana Pro or Seedream 5 for images, or Seedance 2.5 or WAN 3.0 for video.

Supported Aspect Ratios

1:1
16:9
9:16
21:9
9:21
3:2
2:3
4:5
5:4
3:4
4:3

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

FLUX example: high-end product photography, premium athletic sneaker centered on a minimal grey podium, dramatic rim light from abo...
View Details

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

1 credit
7.1s
FLUX example: editorial food photography, plated dish on a textured stone surface, soft north-facing window light, dewy textures, m...
View Details

editorial food photography, plated dish on a textured stone surface, soft north-facing window light, dewy textures, michelin guide aesthetic, shallow depth of field

1 credit
7.1s
FLUX example: cinematic 1940s film noir scene, detective in fedora silhouetted by venetian blind shadows, cigarette smoke curling,...
View Details

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

1 credit
3.9s
FLUX example: editorial fashion photograph, model in flowing linen against red rock desert at golden hour, wind catching the hair,...
View Details

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

1 credit
6.8s
FLUX example: wide concert venue shot from the back of the crowd, performer silhouette against bright stage lights, sea of phones h...
View Details

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

1 credit
6.7s
FLUX example: editorial lifestyle photograph, latte with rosetta art beside an open journal on a worn wood table by a sunlit window...
View Details

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

1 credit
6.7s
FLUX example: full-length editorial fashion photography, model in tokyo streetstyle outfit, narrow back alley at dusk, neon reflect...
View Details

full-length editorial fashion photography, model in tokyo streetstyle outfit, narrow back alley at dusk, neon reflections, Kodak Portra 400 grain

1 credit
6.7s
FLUX example: professional studio headshot, neutral grey paper backdrop, soft beauty dish light, sharp eyes, subtle catch light, bu...
View Details

professional studio headshot, neutral grey paper backdrop, soft beauty dish light, sharp eyes, subtle catch light, business-appropriate styling

1 credit
6.7s
FLUX example: editorial product photography, premium product centered on a marble countertop, soft north-facing window daylight, mi...
View Details

editorial product photography, premium product centered on a marble countertop, soft north-facing window daylight, minimal styling, magazine-grade composition

1 credit
6.8s
FLUX example: minimal swiss-style editorial poster, single product silhouette, off-white background, oversized san-serif typography...
View Details

minimal swiss-style editorial poster, single product silhouette, off-white background, oversized san-serif typography composition

1 credit
6.7s
FLUX example: modern architecture exterior at blue hour, long-exposure car light trails, mirrored glass facade, photorealistic, mag...
View Details

modern architecture exterior at blue hour, long-exposure car light trails, mirrored glass facade, photorealistic, magazine cover composition

1 credit
6.7s
FLUX example: cinematic portrait, shallow depth of field, golden hour rim light, soft skin texture, color grade like A24
View Details

cinematic portrait, shallow depth of field, golden hour rim light, soft skin texture, color grade like A24

1 credit
6.7s
FLUX example: a thrilling action sequence of a woman trying to find her favorite candy. The candy wrapper is purple with a pixelate...
View Details

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."

1 credit
6.6s
FLUX example: a thrilling action sequence of a woman trying to find her favorite candy. The candy wrapper is purple with a pixelate...
View Details

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."

1 credit
6.8s
FLUX example: a thrilling action sequence of a woman trying to find her favorite candy. The candy wrapper is purple with a pixelate...
View Details

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."

1 credit
6.6s
FLUX example: a thrilling action sequence of a woman trying to find her favorite candy. The candy wrapper is purple with a pixelate...
View Details

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."

1 credit
3.7s

Code Examples

Generate with FLUX — copy and paste to get started

bash
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 futuristic city at sunset",
    "model": "black-forest-labs/flux-dev",
    "num_outputs": 1
  }'

Response Format

Submit Response (202 Accepted)

json
{
  "jobId": "job_abc123...",
  "status": "pending",
  "statusUrl": "https://pixeldojo.ai/api/v1/jobs/job_abc123...",
  "creditCost": 1,
  "creditsRemaining": 95,
  "expiresAt": "2026-10-10T02:48:50Z"
}

Completed Response

json
{
  "jobId": "job_abc123...",
  "status": "completed",
  "output": {
    "images": [
      "https://temp.pixeldojo.ai/pixeldojotemp/1705930123-456789.png"
    ]
  },
  "creditCost": 1,
  "expiresAt": "2026-10-10T02:48:50Z"
}