Generate Html Stream

post/api/html-generate/v1/generate

Request

  • Base URL: https://api.landing-page.io (the document declares no server; this is the origin it was published from)
  • URL: https://api.landing-page.io/api/html-generate/v1/generate
  • Auth: HTTP bearer

Request body

promptstring required

User request for the page

job_idstring nullable

Optional job ID for resumable streaming

project_idstring nullable

Stable project ID for a group of related conversations

project_typeinteger

0=single-page project, 1=multi-page/static-site project

conversation_idstring nullable

Optional conversation ID for OSS-backed history

action'auto' | 'generate_page' | 'modify_page' | 'save_existing_html' | 'generate_from_url' | 'generate_from_image' | 'assistant_reply'

Agent action. auto lets the agent choose a tool.

languagestring

Target language code

page_topicstring

Topic used in OSS object keys

regenerate_ai_imagesboolean

Fill AI image placeholders with Replicate

auto_convert_plain_imagesboolean

Convert regular image tags into AI placeholders

max_auto_imagesinteger

Max regular images to convert

html_keystring nullable

Optional final HTML object key

existing_html_or_urlstring nullable

Existing HTML or URL for modify / URL reference flows

reference_image_urlsstring[]

Reference image URL array for multi-image input

reference_image_base64string nullable

Reference image base64/data URI

reference_image_content_typestring

Reference image content type

minifyboolean

Whether to minify the final HTML

skip_setup_analysisboolean

Skip language/title setup model calls when caller already provides trusted context

optimized_promptstring nullable

Prebuilt professional brief; skips prompt optimization for generate_page

deduct_creditsboolean

Internal switch; callers can disable automatic credit deduction and settle externally

Response

Successful Response

unknown required

Changes

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