模型定價企業
500+ AI 模型 API,全部整合在一個 API 中。就在 CometAPI
模型 API
開發者
快速入門說明文件API 儀表板
公司
關於我們企業
資源
AI模型部落格更新日誌支援
服務條款隱私政策
© 2026 CometAPI · All rights reserved
Home/Models/Flux/flux-dev
F

flux-dev

每次請求:$0.03
商業用途
概覽
功能
定價
API

Technical Specifications of flux-dev

SpecificationDetails
Model IDflux-dev
Model familyFLUX.1 [dev]
Provider / originBlack Forest Labs
ModalityText-to-image generation
Architecture12B-parameter rectified flow transformer
Primary use caseGenerating high-quality images from natural-language prompts
Performance positioningDesigned as a high-quality open-weight variant positioned below FLUX.1 [pro] and above faster lightweight variants in the FLUX family
Prompt handlingStrong prompt adherence and competitive instruction following for complex image descriptions
Efficiency approachTrained with guidance distillation for more efficient inference
Availability patternCommonly available through hosted inference APIs and model platforms, with open weights published for the base model ecosystem
Licensing noteThe original FLUX.1 [dev] release is associated with a non-commercial license from Black Forest Labs, so downstream usage terms should be checked carefully in the environment where you deploy it

What is flux-dev?

flux-dev is CometAPI’s model identifier for FLUX.1 [dev], a text-to-image model from Black Forest Labs built to generate detailed, prompt-faithful images from written descriptions. Black Forest Labs describes FLUX.1 [dev] as a 12 billion parameter rectified flow transformer, and positions it as a high-quality model that is second to FLUX.1 [pro] within the original FLUX.1 lineup.

In practice, flux-dev is used when you want stronger image quality and better prompt adherence than lightweight image generators, while still benefiting from the broader FLUX ecosystem. The model is widely recognized for producing polished outputs, handling stylistic directions well, and supporting research and creative workflows through open model availability on major platforms.

Because FLUX.1 [dev] sits in a family that later expanded with tool-oriented and editing-oriented variants, it is best understood as a core text-to-image foundation model: you give it a text prompt, and it returns one or more generated images matching the requested scene, style, composition, or concept.

Main features of flux-dev

  • High-quality image generation: FLUX.1 [dev] is positioned by Black Forest Labs as a cutting-edge text-to-image model with output quality just below FLUX.1 [pro], making it suitable for professional-looking concept art, illustrations, marketing visuals, and creative prototyping.
  • Strong prompt adherence: The model is specifically noted for competitive prompt following, which helps when prompts include multiple objects, layout cues, stylistic instructions, or detailed scene descriptions.
  • 12B rectified flow transformer architecture: Its 12-billion-parameter rectified flow transformer design is a core part of the model’s capability profile and is one reason it is associated with strong fidelity and image detail.
  • Guidance-distilled efficiency: Black Forest Labs states that FLUX.1 [dev] was trained using guidance distillation, which improves efficiency compared with less optimized generation approaches.
  • Open ecosystem compatibility: The model has been released in forms that support broader experimentation, deployment, and workflow customization, including ecosystem support through Hugging Face, ONNX exports, and related FLUX tooling.
  • Flexible creative workflow support: flux-dev is well suited for ideation, visual drafting, style exploration, and pipeline integration where developers want a strong general-purpose text-to-image model rather than a narrowly specialized generator. This is an inference based on the official positioning and available deployment formats.

How to access and integrate flux-dev

Step 1: Sign Up for API Key

To access flux-dev, first register on CometAPI and generate your API key from the dashboard. After signing in, create a key for your application and store it securely in an environment variable or secret manager. You will use this key to authenticate every request to the flux-dev API.

Step 2: Send Requests to flux-dev API

Once you have your API key, send requests to the CometAPI endpoint with flux-dev as the model name.

curl --request POST \
  --url https://api.cometapi.com/v1/images/generations \
  --header "Authorization: Bearer $COMETAPI_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
    "model": "flux-dev",
    "prompt": "A cinematic sci-fi city at sunset, ultra-detailed, volumetric lighting"
  }'

Python example:

import os
import requests

url = "https://api.cometapi.com/v1/images/generations"
headers = {
    "Authorization": f"Bearer {os.environ['COMETAPI_API_KEY']}",
    "Content-Type": "application/json",
}
payload = {
    "model": "flux-dev",
    "prompt": "A cinematic sci-fi city at sunset, ultra-detailed, volumetric lighting",
}

response = requests.post(url, headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())

Step 3: Retrieve and Verify Results

After submission, CometAPI returns the generated result payload for flux-dev. Parse the response to retrieve image URLs, file data, or related metadata depending on your integration pattern. You should then verify that the output matches the prompt, check for application-level safety or policy compliance, and log request IDs or response metadata for debugging, auditing, and workflow reliability.

flux-dev 的功能

探索 flux-dev 的核心功能,專為提升效能和可用性而設計。了解這些功能如何為您的專案帶來效益並改善使用者體驗。

flux-dev 的定價

探索 flux-dev 的競爭性定價,專為滿足各種預算和使用需求而設計。我們靈活的方案確保您只需為實際使用量付費,讓您能夠隨著需求增長輕鬆擴展。了解 flux-dev 如何在保持成本可控的同時提升您的專案效果。
彗星價格 (USD / M Tokens)官方價格 (USD / M Tokens)折扣
每次請求:$0.03
每次請求:$0.0375
-20%

flux-dev 的範例程式碼和 API

存取完整的範例程式碼和 API 資源,以簡化您的 flux-dev 整合流程。我們詳盡的文件提供逐步指引,協助您在專案中充分發揮 flux-dev 的潛力。

更多模型

G

Nano Banana 2

輸入:$0.4/M
輸出:$2.4/M
核心能力概覽:解析度:最高可達 4K(4096×4096),與 Pro 相當。參考圖片一致性:最多支援 14 張參考圖片(10 個物件 + 4 個角色),維持風格與角色一致性。極端寬高比:新增 1:4、4:1、1:8、8:1 比例,適合長圖、海報與橫幅。文字渲染:進階文字生成,適用於資訊圖表與行銷海報版面。搜尋強化:整合 Google Search + Image Search。Grounding:內建思考過程;在生成前會先對複雜提示進行推理。
C

Claude Opus 4.7

輸入:$4/M
輸出:$20/M
用於智能體與程式設計的最智能模型
C

Claude Opus 4.6

輸入:$4/M
輸出:$20/M
Claude Opus 4.6 是 Anthropic 的「Opus」級大型語言模型,於 2026 年 2 月發布。它被定位為知識工作與研究工作流程的主力,著重提升長上下文推理、多步規劃、工具使用(包括代理型軟體工作流程),以及電腦操作任務,例如自動化製作投影片與試算表。
A

Claude Sonnet 4.6

輸入:$2.4/M
輸出:$12/M
Claude Sonnet 4.6 是我們迄今為止最強大的 Sonnet 模型。它對模型在程式設計、電腦操作、長上下文推理、代理規劃、知識工作與設計等方面的能力進行了全面升級。Sonnet 4.6 亦提供 1M 詞元的上下文視窗,目前處於 Beta 階段。
O

GPT-5.4 nano

輸入:$0.16/M
輸出:$1/M
GPT-5.4 nano 專為速度與成本最為關鍵的任務而設計,例如分類、資料擷取、排序與子智能體。
O

GPT-5.4 mini

輸入:$0.6/M
輸出:$3.6/M
GPT-5.4 mini 將 GPT-5.4 的優勢帶入一個更快速、更高效、專為大量工作負載設計的模型。