# Commercial Model Strategy

## Pricing Guardrail

99Pages commercial token pricing:

- Input: `$5 / 1M tokens`
- Output: `$20 / 1M tokens`

Default AI Workforce routes should keep gross margin above 95 percent whenever
99Pages pays the model bill. This means:

- Input cost target: below `$0.25 / 1M tokens`
- Output cost target: below `$1.00 / 1M tokens`

## DeepInfra Default Routes

Use exact DeepInfra model ids in `configs/workforce_model_routes.json`.

| Route key | Provider | Model | Use |
| --- | --- | --- | --- |
| `default_subagent` | `deepinfra` | `Qwen/Qwen3-235B-A22B-Instruct-2507` | General MCP sub-agents, mini app, HTML5, project, workflow, knowledge, search |
| `health_score_fast` | `deepinfra` | `deepseek-ai/DeepSeek-V4-Flash` | Health Check, doctor, fast diagnostics, quick risk summary |
| `heartbeat_fast` | `deepinfra` | `deepseek-ai/DeepSeek-V4-Flash` | Heartbeat and low-cost anomaly checks |
| `vision_ui` | `deepinfra` | `Qwen/Qwen3-VL-30B-A3B-Instruct` | Vision, screenshot inspection, UI-to-JSON, multimodal reading |
| `long_context` | `deepinfra` | `meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8` | Long document, browser, library, and knowledge workflows |

`qwen3-coder-480b-turbo` is intentionally not used because it is no longer in
the active DeepInfra candidate list for this release.

## Mini App And HTML5

Mini App Builder and HTML5/PWA development default to:

```text
Qwen/Qwen3-235B-A22B-Instruct-2507
```

This keeps margin high while covering schema design, database preparation,
report generation, HTML5 drafts, PWA structure, and usage documentation.

For complex frontend jobs, the system should first create a schema/spec with
`default_subagent`, then ask the main agent whether the customer should use
their own API key or a premium developer route. Do not silently switch to an
expensive model paid by 99Pages.

## Multimedia Policy

High-quality multimedia generation is billed by job, image, audio minute, or
video rather than chat tokens. The default commercial stance is:

- If the user does not choose a provider/model, use AI Workforce managed
  Together.ai routes through `portal.99pages.uk` new-api.
- If the user chooses a specific upstream provider or supplies an API key, use
  the user-owned route and keep provider quality/cost responsibility with the
  user.
- Charge 20x to 50x markup for managed multimedia jobs because output quality is
  stochastic, retries may be needed, and support/review time is part of the
  commercial service.

Managed Together.ai routes:

| Route key | Provider | Default model | Use |
| --- | --- | --- | --- |
| `managed_together_image` | `together_ai` via `portal.99pages.uk` new-api | `Qwen Image` | Text-to-image and image-to-image default |
| `managed_together_video` | `together_ai` via `portal.99pages.uk` new-api | `ByteDance Seedance 1.0 Lite` | Text-to-video and image-to-video default |

Together.ai public pricing shows image models billed per image or megapixel and
video models billed per video. The user can choose higher quality models from
the portal when needed. If no model is chosen, the main agent should use the
AI Workforce default multimedia route.

User-owned media API route:

- STT: user API when premium accuracy is requested.
- TTS: user API when premium voice quality is requested.
- Text-to-image: user Fal.ai/API key for premium output.
- Image-to-image: user Fal.ai/API key.
- Text-to-video: user Fal.ai/API key.
- Image-to-video: user Fal.ai/API key.

99Pages may charge a 20x to 50x service premium for managed multimedia jobs,
but the user-facing contract must state that external multimedia models are
stochastic and controlled by the selected upstream provider. When the user
supplies the API key, the quality/cost/liability of that provider is separated
from AI Workforce default model quality.

Route key:

```text
user_media_api
```

Compatibility route:

```text
user_fal_media
```

remains available for existing Fal.ai MCP flows.

## Intelligence Brain Storm

The planned MCP is:

```text
brainstorm
```

Commercial behavior:

- User stores up to five OpenRouter API keys or model slots.
- The MCP asks five different user-selected models to discuss, critique, and
  compare a topic.
- 99Pages main agent coordinates the session, guards prompts, and summarizes the
  final result.
- The upstream thinking/model cost is paid by the user's OpenRouter keys.
- 99Pages still consumes a small amount of main-agent tokens for orchestration,
  safety framing, and final explanation.

Route key:

```text
user_openrouter_brainstorm
```

This keeps AI Workforce margin protected while giving advanced users a high-end
research panel.
