← 返回
未分类 Key 中文

Flux Image

Generate and edit images with Flux (Black Forest Labs) via AceDataCloud API. Use when creating images from text prompts, editing existing images with text in...
使用 Flux(Black Forest Labs)通过 AceDataCloud API 生成和编辑图像。适用于从文本提示创建图像以及用文本编辑现有图像。
germey germey 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 341
下载
💾 0
安装
1
版本
#latest

概述

Flux Image Generation

Generate and edit images through AceDataCloud's Flux API.

Authentication

export ACEDATACLOUD_API_TOKEN="your-token-here"

Quick Start

curl -X POST https://api.acedata.cloud/flux/images \
  -H "Authorization: Bearer $ACEDATACLOUD_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "a cat wearing a space helmet, photorealistic", "model": "flux-dev", "wait": true}'

Models

ModelQualitySpeedSizesBest For
----------------------------------------
flux-devGoodFast256–1440pxQuick generation (default)
flux-proHighMedium256–1440pxProduction work
flux-pro-1.1HigherMedium256–1440pxBetter prompt following
flux-pro-1.1-ultraHighestSlowAspect ratiosMaximum quality
flux-kontext-proHighMediumAspect ratiosImage editing
flux-kontext-maxHighestSlowAspect ratiosComplex editing

Generate Images

POST /flux/images
{
  "prompt": "a minimalist logo of a mountain",
  "action": "generate",
  "model": "flux-pro-1.1",
  "size": "1024x1024",
  "count": 1
}

Size Options

For dev/pro/pro-1.1 (pixel dimensions):

  • "1024x1024", "1344x768", "768x1344", "1024x576", "576x1024"

For ultra/kontext (aspect ratios):

  • "1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3", "21:9", "9:21"

Edit Images

Use kontext models for text-guided image editing:

POST /flux/images
{
  "prompt": "change the background to a beach sunset",
  "action": "edit",
  "image_url": "https://example.com/photo.jpg",
  "model": "flux-kontext-pro"
}

Task Polling

POST /flux/tasks
{"task_id": "your-task-id"}

MCP Server

pip install mcp-flux

Or hosted: https://flux.mcp.acedata.cloud/mcp

Key tools: flux_generate_image, flux_edit_image

Gotchas

  • Use pixel dimensions (e.g., "1024x1024") with dev/pro models, aspect ratios (e.g., "16:9") with ultra/kontext models
  • Editing requires kontext models (flux-kontext-pro or flux-kontext-max) — other models only support generation
  • count parameter generates multiple images in one request (increases cost proportionally)
  • Ultra model produces highest quality but is slowest — use dev for iteration, ultra for final output
  • All generation is async — use "wait": true or poll /flux/tasks

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 06:51 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Ai Chat

germey
通过 AceDataCloud 的统一 OpenAI 兼容 API访问 50+ LLM 模型,适用于需要 GPT、Claude、Gemini、DeepSeek、Grok 等聊天补全的场景。
★ 0 📥 436

Acedatacloud Api

germey
AceDataCloud API 使用指南。在身份验证、发起 API 调用、管理凭证、了解计费或集成 AceDataCloud 服务时使用。
★ 0 📥 552

Google Search

germey
使用 AceDataCloud API 调用 Google 搜索,支持搜索网页、图片、新闻、地图、当地地点和视频,具备本地化和时间过滤功能。
★ 0 📥 517