Back to API Platform
Image Generation
Flux 2 Dev + LoRA API
Flux 2 Dev with your own FLUX.2 [dev] LoRAs and up to 4 reference images. Integrate this model via REST with endpoint docs, parameters, and code examples.
Img2Img
LoRA
Editing
Credit Cost
1 credit
Type
Image
Get API Key
Create auth keys for apps and agents
See Usage
Track requests, credits, and logs
Buy Credits
Top up prepaid API capacity
API Endpoint
POST
/api/v1/models/flux-2-dev-lora/runTest 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.
LLM.txt
AI-Ready
For AI assistants
Copy this model's documentation into Claude, GPT, or any AI for instant integration help.
/llm/flux-2-dev-lora.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 | - |
input_images | array | - |
aspect_ratio | enum | 1:1 |
resolution | enum | 1 MP |
safety_tolerance | integer | 5 |
prompt_upsampling | boolean | false |
seed | integer | - |
output_format | enum | png |
loras | array | - |
Use saved characters (@Name)
Write
@Name in the prompt to use a character, product, outfit, location, prop or style saved in the account's Character Studio, for example "@Mara on a beach at sunset". Its photos are added to images automatically, after any images you send yourself, so your own image numbering is unchanged. List saved names with GET /api/v1/characters and save new ones with POST /api/v1/characters. An @word that names nothing saved stays plain text.Supported Aspect Ratios
1:1
16:9
9:16
3:2
2:3
4:5
5:4
3:4
4:3
Code Examples
Copy and paste to get started
bash
curl -X POST "https://pixeldojo.ai/api/v1/models/flux-2-dev-lora/run" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "a cinematic portrait in rim light",
"resolution": "1 MP"
}'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-30T11:02:29Z"
}Completed Response
json
{
"jobId": "job_abc123...",
"status": "completed",
"output": {
"images": [
"https://temp.pixeldojo.ai/pixeldojotemp/1705930123-456789.png"
]
},
"creditCost": 1,
"expiresAt": "2026-10-30T11:02:29Z"
}