Generate images from text and edit reference images through Ace Data Cloud.
API documentation · Models and pricing · 中文文档
- Open Applications and sign in or register.
- Find General Application and click the copy button marked 1. If needed, select Initialize General Application first. Confirm access to this service and enough balance for your request.
- Save the copied key in your terminal. The examples add the
Bearerprefix in the HTTP header.
export ACEDATACLOUD_API_KEY='YOUR_API_KEY'curl --fail-with-body --silent --show-error https://api.acedata.cloud/flux/images \
--header "Authorization: Bearer $ACEDATACLOUD_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"action": "generate",
"model": "flux-2-klein",
"prompt": "A blue ceramic coffee mug on a white table, soft morning light, product photograph",
"size": "1024x1024"
}'Illustrative response with placeholder identifiers and output values.
{
"success": true,
"data": [
{
"image_url": "https://media.example.com/image.png",
"prompt": "A blue ceramic coffee mug on a white table, soft morning light, product photograph"
}
]
}Open or download data[0].image_url returned by your request.
Explore the supported endpoints and integration guides for Flux Image Generation.
| API | Path | Integration Guidance |
|---|---|---|
| Flux Images Generation API | /flux/images |
Flux Images Generation API Integration Guide |
| Flux Tasks API | /flux/tasks |
Flux Tasks API Integration Guide |
POST /flux/videos now supports action="generate" with mode set to t2v, i2v, v2v, or draft_enhance. Use async=true, retain the returned task ID, and poll /flux/tasks. Video editing and upscaling are not published.
Normal generation accepts model="flux-3", prompt, duration, resolution, draft, and generate_audio; preserve explicit false. I2V additionally needs keyframes, V2V needs start_video, and draft enhancement needs an owned draft_task_id. See the current video guide for mode-specific limits and examples.
Flux AI image generation service.
API home page: Ace Data Cloud - Flux Image Generation
Keywords: flux-api, ai-image, image-generation, black-forest-labs, rest-api, ai-api, aiimage, AI API, REST API, Developer API, Ace Data Cloud
- For authentication errors, open Manage Keys to check the key’s allowed APIs, expiration and usage limit.
- For insufficient balance, open the application and review its balance and the current service price.
- For request validation errors, compare the model and required fields with the linked API reference.
- For a long-running or failed task, retain
task_idandtrace_idwhen contacting support.
Accounts with neither a successful paid top-up nor an administrator's manual credit addition may run one billable request at a time across the entire account, shared by all API keys and services. Rewards, redemption cards and transferred credits do not count as paid top-ups. A successful paid top-up or manual credit addition removes this trial restriction; balance and key usage-limit checks still apply.
A new billable request returns 429 too_many_requests while another is running. Wait for the active request's final result before submitting the next one. Free task polling remains available.
For async APIs, acceptance or a task ID is not completion: keep querying the same task until its final result. A disconnect or proxy timeout does not mean execution stopped. If a task has no terminal result for a long time, contact support with trace_id.
This restriction changes neither trial API availability nor pricing; fees are settled after execution based on actual usage.

