计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
atlas-cloud-media【效率与协作】Discover Atlas Cloud image and video models, inspect their live schemas, and submit one confirmed media generation request with bounded GET polling. Use when integrating Atlas Cloud media APIs or generating images and videos without hard-coding stale model parameters.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use the bundled scripts/atlas_media.py CLI to discover current Atlas Cloud models, inspect a model's live request schema, and run asynchronous image or video generation.
Set the API key in the environment. Never pass it as a CLI argument or commit it to a repository.
export ATLASCLOUD_API_KEY="your-api-key"
ATLASCLOUD_BASE_URL may point to a compatible deployment. It defaults to https://api.atlascloud.ai.
python3 scripts/atlas_media.py models --type Image --query flux
python3 scripts/atlas_media.py models --type Video --query seedance
Treat model availability and prices as live data. Run discovery immediately before choosing a model.
python3 scripts/atlas_media.py describe black-forest-labs/flux-schnell
The command resolves the model's current schema URL and reports the required fields, property definitions, submission endpoint, result endpoint, and catalog price data. Build the payload from this output instead of copying an old example.
{
"prompt": "A clean product photograph on a neutral background",
"size": "1024*1024",
"num_images": 1
}
Do not include model; the CLI inserts the selected model ID after validation.
python3 scripts/atlas_media.py generate \
black-forest-labs/flux-schnell \
--params-file request.json \
--confirm-paid
The --confirm-paid flag is mandatory. The CLI sends exactly one generation POST and does not retry it. It polls only the schema-defined GET result endpoint, with a fixed interval and maximum poll count.
Use stdin when a temporary file is unnecessary:
printf '%s' '{"prompt":"A geometric app icon"}' | \
python3 scripts/atlas_media.py generate \
black-forest-labs/flux-schnell \
--params-file - \
--confirm-paid
Commands write structured JSON to stdout. Successful generation output includes the prediction ID, final status, generated URLs, model ID, and the endpoints resolved from the live schema.