RunDiffusion Juggernaut Base Flux — Text to image API
RunDiffusion, text-to-image. Credits per megapixel (counted as width*height*steps+ultralytics.steps@53): 1.7992.
Endpoint: POST https://queue.auray.run/auray-serverless/rundiffusion/120-100
Endpoint ID: auray-serverless/rundiffusion/120-100
Usage notes
One of Auray's catalogue models: the same key, the same credits, the same job lifecycle as every other address.
Its request shape is published below. Whether it runs right now is GET /v1/catalogue's word, with no key needed: its addresses say connected for an address that runs, and a submit to any other is refused before anything is charged — described answers 501 model_not_connected, paused 503 model_disabled.
Category text-to-image · Scope image:write (or external:write on an older key) · Price Credits per megapixel (counted as width*height*steps+ultralytics.steps@53): 1.7992. From 0.7865 to 15.8276 megapixels a request. Quoted when you submit, at the most the request can cost; the charge settles to what the job cost and never above the quote. The submit's answer carries the quote as credits_quoted, and credits_charged says what has been taken.
t2i— Text → Imageguided— Guide by map: 1 control map; 1 source file (optional)img2img— Image → Image: 1 source fileinpaint— Repaint area: 1 source file; 1 maskexpand— Expand canvas: 1 source file- Aspect ratios: 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3, 21:9, 9:21, 5:4, 4:5
- Resolutions: 1 MP, 1.5 MP, 2 MP
- Prompt: up to 3,000 characters
- Sound: makes no sound of its own
- Priced by:
megapixel(the whole rule is under Price)
Find the addresses that do any of these with GET /v1/models?operation=<id>; the openapi.json carries them as data under x-auray-capability.
Quick start
curl -X POST https://queue.auray.run/auray-serverless/rundiffusion/120-100 \
-H "Authorization: Bearer $AURAY_API_KEY" \
-H "content-type: application/json" \
-d '{
"positivePrompt": "a brass orrery on a walnut desk, morning light from a window to the left",
"width": 1536,
"height": 1024
}'import { createClient } from "@auray/client";
const auray = createClient(); // reads AURAY_API_KEY
const result = await auray.subscribe("auray-serverless/rundiffusion/120-100", {
input: {
"positivePrompt": "a brass orrery on a walnut desk, morning light from a window to the left",
"width": 1536,
"height": 1024
},
onQueueUpdate: (update) => console.log(update.status),
});
console.dir(result, { depth: null });from auray_client import Client
auray = Client() # reads AURAY_API_KEY
result = auray.subscribe(
"auray-serverless/rundiffusion/120-100",
input={
"positivePrompt": "a brass orrery on a walnut desk, morning light from a window to the left",
"width": 1536,
"height": 1024
},
on_queue_update=lambda update: print(update["status"]),
)
print(result){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "run_model",
"arguments": {
"address": "auray-serverless/rundiffusion/120-100",
"input": {
"positivePrompt": "a brass orrery on a walnut desk, morning light from a window to the left",
"width": 1536,
"height": 1024
}
}
}
}const res = await fetch("https://queue.auray.run/auray-serverless/rundiffusion/120-100", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AURAY_API_KEY}`,
"content-type": "application/json",
},
body: JSON.stringify({
"positivePrompt": "a brass orrery on a walnut desk, morning light from a window to the left",
"width": 1536,
"height": 1024
}),
});
console.log(await res.json());import os, requests
r = requests.post(
"https://queue.auray.run/auray-serverless/rundiffusion/120-100",
headers={"Authorization": f"Bearer {os.environ['AURAY_API_KEY']}"},
json={
"positivePrompt": "a brass orrery on a walnut desk, morning light from a window to the left",
"width": 1536,
"height": 1024
},
)
r.raise_for_status()
print(r.json())The same body on https://auray.run runs synchronously and answers the result — unless it usually takes longer than a run may hold its connection, which is refused 400 model_not_synchronous before anything is charged. Options — ?webhook=, ?wait=, priority and timeout headers — are on Submit a request.
Input schema
Show child attributes
"DDIM", "DDIMScheduler", "DDPMScheduler", "DEISMultistepScheduler", "Default", "DPM++", "DPM++ 2M", "DPM++ 2M Beta" and 67 more
"DPM++ 2M Exponential", "DPM++ 2M Karras", "DPM++ 2M SDE", "DPM++ 2M SDE Beta", "DPM++ 2M SDE Exponential", "DPM++ 2M SDE Karras", "DPM++ 2M SDE Uniform", "DPM++ 2M Uniform", "DPM++ 3M", "DPM++ 3M Beta", "DPM++ 3M Exponential", "DPM++ 3M Karras", "DPM++ 3M SDE Uniform", "DPM++ 3M Uniform", "DPM++ Beta", "DPM++ Exponential", "DPM++ Karras", "DPM++ SDE", "DPM++ SDE Beta", "DPM++ SDE Exponential", "DPM++ SDE Karras", "DPM++ Uniform", "DPM++ Uniform Beta", "DPM++ Uniform Exponential", "DPM++ Uniform Karras", "DPMSolverMultistepInverse", "DPMSolverMultistepScheduler", "DPMSolverSinglestepScheduler", "EDMDPMSolverMultistepScheduler", "EDMEulerScheduler", "Euler", "Euler a", "Euler Beta", "Euler Exponential", "Euler Karras", "EulerAncestralDiscreteScheduler", "EulerDiscreteScheduler", "FlowMatchEulerDiscreteScheduler", "Heun", "HeunDiscreteScheduler", "Heun Karras", "IPNDMScheduler", "IPNDM Uniform", "IPNDM Uniform Beta", "IPNDM Uniform Exponential", "IPNDM Uniform Karras", "KDPM2AncestralDiscreteScheduler", "KDPM2DiscreteScheduler", "LCM", "LCMScheduler", "LMS", "LMSDiscreteScheduler", "LMS Karras", "PNDMScheduler", "TCDScheduler", "UniPC", "UniPC 2M", "UniPC 2M Karras", "UniPC 2M Uniform", "UniPC 3M", "UniPC 3M Karras", "UniPC 3M Uniform", "UniPC Karras", "UniPC Uniform", "UniPC Uniform Beta", "UniPC Uniform Exponential", "UniPC Uniform Karras"compel notation with advanced weighting operations or sdEmbeds for simple emphasis adjustments. Compel syntax: Adds 0.2 seconds to image inference time. When compel syntax is selected, you can use the following notation in prompts: Weighting Syntax: + - (word)0.9 Increase or decrease the attention given to specific words or phrases. Examples: - Single words: small+ dog, pixar style - Multiple words: small dog, (pixar style)- - Multiple symbols for more effect: small+++ dog, pixar style - Nested weighting: (small+ dog)++, pixar style - Explicit weight percentage: small dog, (pixar)1.2 style Blend Syntax: .blend() Merge multiple conditioning prompts. Example: ("small dog", "robot").blend(1, 0.8) Conjunction Syntax: .and() Break a prompt into multiple clauses and pass them separately. Example: ("small dog", "pixar style").and() SdEmbeds syntax: When sdEmbeds syntax is selected, you can use the following notation in prompts: Weighting Syntax: (text) (text:number) [text] Use parentheses () to increase attention, square brackets [] to decrease it. Add a number after the text to specify a custom multiplier. Examples: - Single words: (small) dog, pixar style - Multiple words: small dog, [pixar style] - Higher emphasis: (small:2.5) dog, pixar style - Combined emphasis: (small dog:1.5), pixar style One of "sdEmbeds".Show child attributes
cacheStartStep and less than or equal to steps. Documented range: 1 or more.cacheEndStep. Must be greater than cacheStartStepPercentage. Documented range: 1 to 100.cacheEndStep. Documented range: 0 or more.cacheStartStep. Must be less than cacheEndStepPercentage. Documented range: 0 to 99.Show child attributes
Show child attributes
Show child attributes
"auray-serverless:25@1", "auray-serverless:26@1", "auray-serverless:27@1", "auray-serverless:28@1", "auray-serverless:29@1", "auray-serverless:30@1", "auray-serverless:31@1", "auray-serverless:98@1"."balanced", "controlnet", "prompt".startStep and less than or equal to steps. Documented range: 1 or more.startStepPercentage. Documented range: 1 to 100.endStep. Documented range: 0 or more.endStepPercentage. Documented range: 0 to 99.Show child attributes
"auray-serverless:56@1", "auray-serverless:56@2", "auray-serverless:56@3", "auray-serverless:56@4".Show child attributes
json "lora": [{ "model": "serverless:120@2" }], "vae": "serverless:120@4" Examples: json "outputFormat": "png", "advancedFeatures": { "layerDiffuse": true } Show child attributes
"top-left", "top-center", "top-right", "center-left", "center-center", "center-right", "bottom-left", "bottom-center", "bottom-right", "tiled".true for default settings, or configured as an object for fine-grained control over the upscaling model, steps, and strength. When using the object form, the model parameter is required. Available upscaling models: | Model | Name | Upscale Factor | | --- | --- | --- | | serverless:504@1 | RealESRGAN_x4plus | 4x | | serverless:realesrgan@anime-6b | RealESRGAN_x4plus_anime_6B | 4x | | serverless:esrgan@animesharp | 4x-AnimeSharp | 4x | | serverless:esrgan@ultrasharp | 4x-UltraSharp | 4x | Simple (boolean): json "hiresFix": true Configured (object): json "hiresFix": { "model": "serverless:esrgan@ultrasharp", "steps": 15, "strength": 0.6 } Show child attributes
steps. Documented range: 0 or more.Show child attributes
"URL"."JPG", "PNG", "WEBP".Show child attributes
Idempotency-Key: as a header is accepted as an alias — that is the spelling a retrying proxy replays, and the one to use when running a model on auray.run, where a request that outlives its connection is answered 504 and recovered by replay. Omit it and the platform mints one. 1 to 64 characters.Rules
Across fields, as the model's documentation states them. Each is judged before anything is charged — warned with a Deprecation header until enforcement starts — and listed as JSON Schema under x-auray-rules in the openapi.json.
- Send
heightwheneverwidthis sent. Sendwidthwheneverheightis sent. - When
strengthis sent orinputs.maskImageis sent,inputs.seedImageis required. - Do not send
acceleratorOptions.cacheStartStepandacceleratorOptions.cacheStartStepPercentagetogether. Do not sendacceleratorOptions.cacheEndStepandacceleratorOptions.cacheEndStepPercentagetogether. Do not send a request whereacceleratorOptions.teaCacheis true andacceleratorOptions.dbCacheis true. - When
outpaintis sent: send at least one ofoutpaint.top,outpaint.bottom,outpaint.leftoroutpaint.right. loramust hold at least 1 item. In every item oflora:lora[].modelis required.controlNetmust hold at least 1 item. In every item ofcontrolNet:controlNet[].modelandcontrolNet[].guideImageare required. In every item ofcontrolNet: do not sendcontrolNet[].endStepandcontrolNet[].endStepPercentagetogether. In every item ofcontrolNet: do not sendcontrolNet[].startStepandcontrolNet[].startStepPercentagetogether.ipAdaptersmust hold at least 1 item. In every item ofipAdapters:ipAdapters[].modelandipAdapters[].guideImagesare required.- When
advancedFeatures.watermarkis sent: send exactly one ofadvancedFeatures.watermark.textoradvancedFeatures.watermark.image. - When
pulidis sent:pulid.imagesis required. Whenpulidis sent: do not sendpulid.CFGstartStepandpulid.CFGstartStepPercentagetogether.
Machine contracts
- openapi.json — this page as an OpenAPI 3.1 document, public.
- llms.txt — the same, written for an agent.
Was this page helpful?