Long-form Stealth Agent generation via POST /api/stealthify/agent
TheDocumentation Index
Fetch the complete documentation index at: https://docs.stealthgpt.ai/llms.txt
Use this file to discover all available pages before exploring further.
/api/stealthify/agent endpoint runs a Stealth Agent pipeline: research, generation, humanization, and optional fact-checking and image insertion. It uses the same Stealth API word balance and pay-as-you-go rules as /api/stealthify.
Requests can take several minutes. Use a client timeout of at least 10 minutes (the server allows up to 600 seconds).
preset that selects one of three shapes (discriminated union). Unknown fields are rejected (strict schema).
"academic".true, runs a fact-check pass on the draft and applies fixes before humanization.true, may embed generated images in the final markdown where supported."seo"."social"."linkedin" or "medium".academic, seo, or social.enableImageGeneration is true).result used for billing."prepaid" when the request was covered from balance, or "payg" when metered pay-as-you-go usage was applied for part or all of the charge.| Status | Meaning |
|---|---|
| 400 | Invalid JSON or validation error. Body may include message and info (issue details). |
| 401 | Missing api-token header or token not found. |
| 402 | Insufficient credits, pay-as-you-go not available, payment method missing, or billing cap delay. message describes the case. |
| 499 | Request was aborted (client disconnect or cancellation). |
| 500 | Server error. message may contain a short description. |
ceil(outputWords × 10) toward your Stealth API balance (see Pricing).200 run creates a new run and document and charges credits again.