Builder

AI content: three versions of one text (write, rewrite, shorter, longer, simpler, fix spelling, make it sell) in a tone. Metered in Build Credits (DeepSeek, a few hundredths of a credit for a short text); the answer includes usage.

post/builder/sessions/{sessionId}/content/write

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/builder/sessions/{sessionId}/content/write
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Path parameters

sessionIdstring uuid required

Request body

langstring required
keyPathstring
textstring
action'write' | 'rewrite' | 'shorter' | 'longer' | 'simpler' | 'fix' | 'sell' required
tone'friendly' | 'professional' | 'luxurious' | 'playful' | 'straightforward' | 'warm-local' | 'brand'
instructionsstring

Response

The variants

langstring required
keyPathstring nullable required
originalstring required
variantsstring[] required

Changes

No recorded changes to this operation across all 1 revision of this API.