Back to API Platform
Image Relighting API
Relight images with Magic Lighting, Nano Banana Pro/2, or Qwen Image Edit — multi-provider routing with per-model credit rates. Integrate this model via REST with endpoint docs, parameters, and code examples.
Image Generation
Img2Img
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/image-relighting/runLLM.txt
AI-Ready
For AI assistants
Copy this model's documentation into Claude, GPT, or any AI for instant integration help.
/llm/image-relighting.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 |
|---|---|---|
subject_imagerequired | url | - |
prompt | string | - |
light_source | string | - |
model_type | enum | magic-lighting |
number_of_images | integer | 1 |
aspectRatio | enum | 1:1 |
negative_prompt | string | - |
appended_prompt | string | best quality |
output_format | enum | png |
width | string | 1024 |
height | string | 1024 |
steps | integer | 25 |
cfg | number | 2 |
highres_scale | number | 1.5 |
highres_denoise | number | 0.5 |
lowres_denoise | number | 0.9 |
output_quality | integer | 100 |
seed | integer | - |
Code Examples
Copy and paste to get started
bash
curl -X POST "https://pixeldojo.ai/api/v1/models/image-relighting/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)
json
{
"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
json
{
"jobId": "job_abc123...",
"status": "completed",
"output": {
"images": [
"https://temp.pixeldojo.ai/pixeldojotemp/1705930123-456789.png"
]
},
"creditCost": 1,
"expiresAt": "2025-01-23T12:00:00Z"
}