Freja H3 Image Requests
Result
Create and edit images with an optimized MiniMax H3 Image model, multiple reference photos and support for up to four LoRAs.
Pricing
Charged in credits.
| Configuration | Credits |
|---|---|
Standard | 0.05per megapixel per imageScales with number of images |
0.20 credits per image up to 4 megapixels. Each additional megapixel, rounded up, adds 0.05 credits per image.
- 1024 × 1024 and 2048 × 1920 each cost 0.20 credits for one image.
- 2048 × 2048 is just over 4 MP, so it costs 0.25 credits per image. Three images cost 0.75 credits.
- The price uses the adjusted output size and number of images. Reference images, LoRAs and output format have no separate surcharge.
- Credits are reserved before generation. Failed jobs refund the reserved charge.
About Freja H3 Image
Freja H3 Image creates images from text and edits with optional ordered reference photos. It uses an optimized MiniMax H3 Image model and supports up to four compatible LoRAs.
- The fixed six-step sampler does not accept negative prompts, custom steps, guidance scale, masks, audio or video.
- The prompt accepts up to 32,000 characters; the text encoder truncates beyond 4,096 tokens.
- The worker accepts up to 16 references and 10 sequential outputs. Examples demonstrate two references and two outputs; higher counts and other combinations may vary.
- LoRA download failures fail the job. Unsupported or incompatible adapters are skipped; inspect warnings in worker output. Public job responses currently contain result URL arrays.
- Output files are temporary for 24 hours. Save results to assets to retain private copies.
API Reference
View llms.txtCreate an asynchronous generation job, then fetch its status and result or receive a webhook.
Base URL: https://api.deepixels.co
Prompt limit: 32,000 characters. Longer prompts are rejected with HTTP 400 before a job is created or credits are reserved.
Create a job
/v1/generateHeaders
x-api-keyYour Deepixels API key. Keep it on your server and include it on every generation or job-status request.
Example: "YOUR_DEEPIXELS_API_KEY"
Content-TypeSend the request body as JSON.
"application/json"Request body
modelThe exact model ID to run.
"freja/h3-image"inputModel inputs as a JSON object. Supported fields and limits are documented below.
webhookOptional public HTTPS URL. Deepixels sends a POST when the job completes or fails, with the same job body returned by GET /v1/get. Return a 2xx status to acknowledge delivery. Delivery may be retried, so handle repeated job IDs safely.
Maximum length: 2,048 characters
Example: "https://your-app.example/webhooks/deepixels"
Examples
Submit once, then use the returned jobId to get the result.
Model inputs · input
promptDescribe the image or edit. Refer to images in order as <Picture 1>, <Picture 2>, etc. The text encoder uses at most 4096 tokens.
Minimum length: 1 character · Maximum length: 32,000 characters
imagesOptional ordered reference images. Worker accepts single-frame PNG/JPEG/WebP, at most 64 MiB/32 MP per image, 128–8192 pixels per side and aspect ratio 1:4–4:1. Playground uploads have the stricter shared 10 MiB/12 MP limit.
Maximum items: 16
parametersOptional controls. Omitted values use the API defaults shown below.
API default: {}
Example: {"width":1024,"height":1024,"num_outputs":1,"output_format":"png"}
Expected response · 200
{
"jobId": "example-job-id",
"status": "created",
"credit": 1
}Sample values. The reserved credit amount is calculated by the server from your inputs and current pricing. Use the returned jobId to get the result.
Response fields
jobIdThe job ID. Use it to read this job's status and result.
statusThe initial job status. Submission returns before generation finishes.
"created"creditCredits reserved by the server using the current model pricing. This is a response field; do not send it in the request.
Validation and availability checks run before credits are reserved. The server determines pricing and execution settings. Only model, input and optional webhook are accepted at the request root.
Get a job
/v1/getPoll using the job ID returned by Create a job. Only the account that created the job can read it. Stop polling when status is completed or failed.
Headers
x-api-keyYour Deepixels API key. Keep it on your server and include it on every generation or job-status request.
Example: "YOUR_DEEPIXELS_API_KEY"
Query parameters
jobIdThe job ID returned by POST /v1/generate.
Example: "YOUR_JOB_ID"
Expected response · 200
{
"jobId": "example-job-id",
"model": "freja/h3-image",
"status": "completed",
"input": {
"prompt": "A premium editorial photograph of a sculptural glass perfume bottle on pale limestone beside an open window. Sunlight refracts through the amber liquid into intricate caustics on the stone. A single white orchid curves behind the bottle; delicate condensation, realistic glass thickness and precise reflections. Warm morning light, soft shadows, subtle film grain, restrained luxury advertising composition. No lettering or logos.",
"parameters": {
"width": 1024,
"height": 1024,
"num_outputs": 1,
"output_format": "png"
}
},
"webhook": null,
"output": {
"imageUrl": [
"https://r2.deepixels.co/results/example-result.png"
]
},
"date": 1767225600000,
"startedAt": 1767225601000,
"finishedAt": 1767225901000,
"durationMs": 300000,
"resultExpiresAt": 1767312301000,
"recordExpiresAt": null
}Illustrative response. IDs, URLs and timing values will differ. While processing or after failure, output can be null. A failed job still returns HTTP 200 when its status is retrieved successfully.
Response fields
jobIdThe job ID.
modelThe model used by this job.
statusStop polling at completed or failed.
"created""pending""processing""completed""failed"inputThe saved model inputs.
webhookThe callback URL, when supplied.
outputThe current Deepixels job API returns result URL arrays, such as videoUrl, imageUrl or audioUrl when available. It can be null before a result exists. The worker schema below describes worker media metadata, not this job envelope.
dateJob creation time as a Unix timestamp in milliseconds, when available.
startedAtJob start time as a Unix timestamp in milliseconds, when available.
finishedAtJob finish time as a Unix timestamp in milliseconds, when available.
durationMsRecorded job duration in milliseconds, when available.
resultExpiresAtResult expiry time as a Unix timestamp in milliseconds, when available.
recordExpiresAtJob record expiry time as a Unix timestamp in milliseconds, when available.
List requests
/v1/model-requestsList your Playground and API jobs for this model, newest first. Send your x-api-key; each page contains up to 20 requests. Pass next_cursor as cursor to load the next page.
Query parameters
modelExact model ID.
Example: "freja/h3-image"
cursorThe next_cursor returned by the previous page. Omit it for the newest requests.
curl "https://api.deepixels.co/v1/model-requests?model=freja%2Fh3-image" -H "x-api-key: YOUR_DEEPIXELS_API_KEY"The response contains requests and next_cursor (null on the final page). Each entry has response, the full Get a job response; source (playground, api or unknown); contractVersion; and billing with state, reservedCredits, chargedCredits and refundedCredits. Unknown amounts are null. Temporary previews may expire while request details remain available.
Schemas
These describe model inputs and worker output. GET /v1/get uses the job response documented above.
Limits & behavior
- The fixed six-step sampler does not accept negative prompts, custom steps, guidance scale, masks, audio or video.
- The prompt accepts up to 32,000 characters; the text encoder truncates beyond 4,096 tokens.
- The worker accepts up to 16 references and 10 sequential outputs. Examples demonstrate two references and two outputs; higher counts and other combinations may vary.
- LoRA download failures fail the job. Unsupported or incompatible adapters are skipped; inspect warnings in worker output. Public job responses currently contain result URL arrays.
- Output files are temporary for 24 hours. Save results to assets to retain private copies.
Error responses
Errors return JSON with status: "error" and a message. Common responses include 400 for invalid input, 401 for an API key problem, 402 for insufficient credit, 404 for a missing job, 409 when model settings changed, and 5xx for availability or server failures.
Examples
Explore examples and try their inputs.
SOL CITRUS — glass, light and a sculpted splash
Premium photorealistic beverage advertising photograph, horizontal composition. One elegant clear glass bottle filled with pale golden sparkling citrus soda floats upright at the center, tilted only slightly. Its white paper label faces the camera squarely, with the exact clean dark-green words "SOL CITRUS" in large readable type and no other lettering. A single continuous sculptural crescent of clear water sweeps behind the bottle and around its lower half, physically plausible surface tension, thin transparent edges and a few sharply resolved airborne droplets. Two fresh orange slices and one small green citrus leaf are suspended at distinct depths, separated from the label. Fine realistic condensation beads cling to the curved glass, tiny bubbles rise inside the liquid, and the thick bottle base refracts the warm light. Precisely shaped glass with an intact neck, metal cap and convincing reflections. Deep forest-green seamless studio background, amber rim light through the drink, a broad softbox reflected along the glass, crisp white highlights on the water, soft directional shadows. High-speed commercial photography, sophisticated restrained composition, tactile materials, natural optical depth of field. All of the bottle and the main water arc are in focus; label completely visible. No people, hands, duplicate bottles, extra labels, collage or illustration.
The glass dragon — portrait to fantasy
Use the adult woman in <Picture 1> as the unmistakable main character. Preserve her facial identity, oval face, dark brown eyes, subtle freckles, natural skin texture and shoulder-length dark brown hair. Keep her small round silver pendant. Transform her ordinary clothing into an elegant midnight-blue mage coat with finely embroidered silver constellations, a high structured collar and believable woven fabric. No helmet, face covering or changes to her apparent age. A spectacular cinematic live-action fantasy scene, horizontal composition. Frame the woman waist-up in the left foreground, her face large enough to recognize clearly, turned three-quarters toward the camera with a calm determined expression. She stands on a weathered stone balcony above a vast cloud sea. One hand rests naturally on the stone railing; the other is out of frame. Her coat and loose hair catch a light breeze. Behind her, an immense translucent glass dragon coils around the spires of a floating Gothic cathedral. Its coherent serpentine body, two wings and long curved neck form an elegant silhouette without crossing the woman's face. Its head is visible beside the distant tallest spire. Transparent scales refract amber sunlight, a delicate luminous cyan skeleton is visible through its glass chest and neck, and subtle rainbow caustics fall across the cathedral stone. The dragon is majestic and peaceful, with detailed reptilian anatomy, not mechanical. The cathedral rises from a floating rocky island, suspended high above layered white clouds. Slender waterfalls stream from its edges into the mist. Several tiny distant airships establish enormous scale, with atmospheric perspective and warm sunlight on their sails. Rain-wet carved stone, fine gargoyles, arched windows with a restrained internal glow. Low golden sunset behind deep blue storm clouds, cool cyan light from the dragon contrasting with warm rim light on the woman's hair and cheek. Physically convincing light, skin, fabric, glass refraction and stone texture. Premium fantasy film still, realistic photography with sophisticated visual effects, clear visual hierarchy, a recognizable human face in the foreground and monumental world-building behind her. No text, logos, collage, duplicate people or extra limbs.
Emerald ranger — two references, two variations
Combine the two reference images into one coherent photorealistic fantasy film still. <Picture 1> defines the person only: use this same adult woman, preserve her recognizable facial identity, vivid blue eyes, long wavy golden-blonde hair, fair skin, natural freckles, face shape and apparent adult age. <Picture 2> defines the clothing only: dress her in this emerald ranger costume. Do not copy the mannequin, studio background or ivory top. Faithfully translate the outfit's fitted emerald leather sweetheart-neckline bodice, antique-gold leaf shoulder guards, fine gold vine embroidery, brown belt with a central oval emerald clasp, asymmetric short leaf-panel skirt over opaque fitted green shorts, matching forearm bracers, knee-high green leather boots and long cloak with muted gold lining. Keep its glamorous fitted silhouette, rich materials and coherent garment construction. No nudity. The outfit is worn naturally by the woman, with bracers correctly attached to her forearms and boots on her feet. A luminous ancient forest kingdom at blue hour after rain, a different setting from a castle or cathedral. Frame one adult woman from head to boots in a vertical fashion-editorial composition, her face unobscured and clearly recognizable. She stands confidently on a mossy stone path, weight naturally on one leg, shoulders relaxed, chin slightly lifted, looking toward the camera. One hand rests lightly on her belt, the other hangs naturally by her side; anatomically correct arms and hands, no duplicated limbs. Her cloak opens gently to show the clothing details, blonde hair catches a faint breeze. Towering twisted trees form an arch above her. Tiny cyan bioluminescent mushrooms grow along the path, scattered fireflies illuminate fern fronds, and a shallow clear stream reflects their light. An enormous distant white stag with subtle branching luminous antlers is partially visible through the forest mist, providing a mysterious fairy-tale focal point without overlapping the woman. No other people. Layers of moss, wet bark and delicate foliage create real depth. Cool moonlight through the canopy, soft emerald and cyan reflected light, a restrained warm rim on her blonde hair and gold embroidery. Her face has balanced natural exposure, detailed skin texture and sharp blue eyes. Sophisticated fantasy cinema with realistic photography, physical leather, metal and fabric, expressive environmental light and carefully composed depth. Full outfit fits inside the image with room above her head and below her boots. No text, labels, logos, mannequin, studio backdrop, split panels or collage.