Metadata-Version: 2.2
Name: ai-work-media-cli
Version: 0.2.0
Summary: CLI for AI Work image, video, speech, and music jobs
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: httpx>=0.28.1

# AI Work Media CLI

Submit image, video, speech, and music generation jobs to an AI Work server, then retrieve their status and media URLs. The CLI uses a personal media API key created in **Account Settings → CLI / MCP**. It does not require a checkout of the server repository.

```bash
pip install ai-work-media-cli
export AI_WORK_API_URL='https://your-ai-work-domain.example'
export AI_WORK_API_KEY='<your media API key>'
printf '%s\n' '{"model_id":"configured-image-model","prompt":"A cat by a window"}' | ai-work-media generate image --input -
ai-work-media job '<job_id>'
```

Generation types: `image`, `video`, `speech`, and `music`. Use `--input request.json` for a complete API request body. Successful commands write JSON to stdout. Failed commands write the reason to stderr and exit with status 1. Keep the API key out of prompts, request files, and source control.

For an Agent, install the bundled Skill into that Agent's Skill root directory and follow its first-use setup guide:

```bash
ai-work-media skill install --target /path/to/agent/skills
ai-work-media doctor
```

`doctor` checks the API URL and key without generating media or charging credits. `ai-work-media skill show` prints the Skill instructions without needing credentials.
