{"slug":"Flux1schnell","routeSlug":"flux-1-schnell","name":"FLUX.1 schnell","developer":"Black Forest Labs","modality":"image","inferenceTypes":["txt2img"],"surface":"both","infrastructure":"native-fleet","planRequired":"basic","status":"standard_model","tags":["Native GPU Fleet","OpenAI-compatible"],"description":"256–2048px resolution (128px steps). 1–10 inference steps. Default: 768×768, 4 steps. No guidance needed. Optimized for speed.","useCases":["Run FLUX.1 schnell via unified v2 jobs with free pre-run /price quotes","Drop-in compatible with the OpenAI SDK via the OpenAI-compatible gateway","Low-latency pay-as-you-go inference on direct GPU capacity"],"samplePrompt":"Ethereal bioluminescent forest at twilight, ancient massive trees with glowing cyan and purple fungi growing on bark, fireflies creating streams of golden light, misty atmosphere with rays of moonlight filtering through canopy, crystal-clear stream reflecting the magical lights, ultra-detailed fantasy landscape, cinematic composition, volumetric fog, dreamlike atmosphere","pricing":{"unit":"Resolution × steps","headlineRate":"$0.00177 / 512×512 (4 steps)","hasLiveQuoteEndpoint":true,"quoteEndpoint":"/api/v2/quote","isEstimated":false,"notes":"$0.00248 at 768×768, $0.00348 at 1024×1024."},"specs":{},"links":{"html":"https://runstage.dev/models/flux-1-schnell","markdown":"https://runstage.dev/models/flux-1-schnell.md","json":"https://runstage.dev/models/flux-1-schnell.json","playground":"https://runstage.dev/playground?model=Flux1schnell"},"snippets":{"curl":"# 1. Free pre-run retail quote\ncurl -X POST 'https://runstage.dev/api/v2/quote' \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"model\":\"Flux1schnell\",\"width\":1024,\"height\":1024,\"steps\":4}'\n\n# 2. Submit metered job\ncurl -X POST 'https://runstage.dev/api/v2/run' \\\n  -H \"Authorization: Bearer $RUNSTAGE_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{   \"model\": \"Flux1schnell\",   \"prompt\": \"Ethereal bioluminescent forest at twilight, ancient massive trees with glowing cyan and purple fungi growing on bark, fireflies creating streams of golden light, misty atmosphere with rays of moonlight filtering through canopy, crystal-clear stream reflecting the magical lights, ultra-detailed fantasy landscape, cinematic composition, volumetric fog, dreamlike atmosphere\",   \"width\": 1024,   \"height\": 1024,   \"steps\": 4,   \"seed\": 42 }'\n\n# 3. Poll owner-scoped job result until status is \"done\" or \"failed\"\ncurl -H \"Authorization: Bearer $RUNSTAGE_API_KEY\" \\\n  'https://runstage.dev/api/v2/jobs/<request_id>'","typescript":"const headers = {\n  Authorization: `Bearer ${process.env.RUNSTAGE_API_KEY}`,\n  \"Content-Type\": \"application/json\",\n};\n\n// 1. Free pre-run retail quote\nconst quote = await fetch(\"https://runstage.dev/api/v2/quote\", {\n  method: \"POST\",\n  headers: { \"Content-Type\": \"application/json\" },\n  body: JSON.stringify({\n  \"model\": \"Flux1schnell\",\n  \"width\": 1024,\n  \"height\": 1024,\n  \"steps\": 4\n}),\n}).then((r) => r.json());\nconsole.log(\"Quoted USD:\", quote.data?.price);\n\n// 2. Submit metered job\nconst job = await fetch(\"https://runstage.dev/api/v2/run\", {\n  method: \"POST\",\n  headers,\n  body: JSON.stringify({\n  \"model\": \"Flux1schnell\",\n  \"prompt\": \"Ethereal bioluminescent forest at twilight, ancient massive trees with glowing cyan and purple fungi growing on bark, fireflies creating streams of golden light, misty atmosphere with rays of moonlight filtering through canopy, crystal-clear stream reflecting the magical lights, ultra-detailed fantasy landscape, cinematic composition, volumetric fog, dreamlike atmosphere\",\n  \"width\": 1024,\n  \"height\": 1024,\n  \"steps\": 4,\n  \"seed\": 42\n}),\n}).then((r) => r.json());\n\n// 3. Poll owner-scoped job status until terminal\nlet result;\nfor (let i = 0; i < 60; i++) {\n  result = await fetch(`https://runstage.dev/api/v2/jobs/${job.data.request_id}`, {\n    headers: { Authorization: headers.Authorization },\n  }).then((r) => r.json());\n  if ([\"done\", \"failed\", \"refunded\"].includes(result.data?.status)) break;\n  await new Promise((r) => setTimeout(r, 2000));\n}\nconsole.log(\"Status:\", result?.data?.status, result?.data?.result_url);","python":"import os, time, requests\n\nheaders = {\"Authorization\": f\"Bearer {os.environ['RUNSTAGE_API_KEY']}\"}\n\n# 1. Free pre-run retail quote\nquote = requests.post(\n    \"https://runstage.dev/api/v2/quote\",\n    json={\n    \"model\": \"Flux1schnell\",\n    \"width\": 1024,\n    \"height\": 1024,\n    \"steps\": 4\n},\n    timeout=15,\n).json()\nprint(\"Quoted USD:\", quote[\"data\"][\"price\"])\n\n# 2. Submit metered job\njob = requests.post(\n    \"https://runstage.dev/api/v2/run\",\n    headers=headers,\n    json={\n    \"model\": \"Flux1schnell\",\n    \"prompt\": \"Ethereal bioluminescent forest at twilight, ancient massive trees with glowing cyan and purple fungi growing on bark, fireflies creating streams of golden light, misty atmosphere with rays of moonlight filtering through canopy, crystal-clear stream reflecting the magical lights, ultra-detailed fantasy landscape, cinematic composition, volumetric fog, dreamlike atmosphere\",\n    \"width\": 1024,\n    \"height\": 1024,\n    \"steps\": 4,\n    \"seed\": 42\n},\n    timeout=30,\n).json()\njob_id = job[\"data\"][\"request_id\"]\n\n# 3. Poll owner-scoped job status until terminal\nresult = None\nfor _ in range(60):\n    result = requests.get(f\"https://runstage.dev/api/v2/jobs/{job_id}\", headers=headers, timeout=15).json()\n    if result[\"data\"][\"status\"] in (\"done\", \"failed\", \"refunded\"):\n        break\n    time.sleep(2)\nprint(\"Status:\", result[\"data\"][\"status\"], result[\"data\"].get(\"result_url\"))"}}