Generate text
generate_textGenerates ad copy, hooks, scripts, rewrites, and brainstorms across Claude, Gemini, GPT, Llama, and DeepSeek; use raw mode for plain non-marketing answers.
Instructions
Text generation against the writing-model catalog (Claude, Gemini, GPT, Llama, DeepSeek…) — ad copy, hooks, scripts, rewrites, brainstorms. Prompt-only, no ad assembly (for a finished on-brand creative use plan_ad -> render_ad). BY DEFAULT the model answers as a marketing copywriter (a short house system prompt is applied, which is what you want for ad copy); pass raw:true for a plain, unstyled answer from the model itself with NO system prompt at all. model: omit for the default Claude orchestrator. Claude Fable 5.2 runs on paid plans only; on the Free plan it is refused at no charge. Paid (billed at the writing model's token cost, by length).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "generate_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | RAW MODEL ACCESS: send the prompt with NO Hermoso system prompt — the model answers as itself rather than as an ad copywriter. Use it whenever the ask is not marketing copy (analysis, code, extraction, a plain question). Default false: the copywriter framing is applied. | |
| model | No | a writing-model id from hermoso_capabilities — omit for the default | |
| prompt | Yes | the writing task / question | |
| get_cost | No | true: return the price only; nothing runs or bills | |
| idempotency_key | No | chosen once, resent unchanged on retries: the same key never buys twice | |
| expected_credits | No | the get_cost price; refused unbilled if the live price differs |