LLM JSON
Structured JSON produced by an LLM reading the rendered page. Requires a configured LLM. You can specify a JSON Schema with --llm-format-expects that will be sent to the underlying LLM if you would like the content to match an expected structure. If you do not specify a schema, the LLM will attempt to provide a JSON document that best matches your prompt.
Example
zshot -t llm_json \
-f - \
--llm-format-model "anthropic://YOUR_API_KEY@" \
--llm-format-prompt "Summarize the licenses" \
https://zshot-cli.com/purchase/{
"url": "https://zshot-cli.com/purchase/",
"output_type": "llm_json",
"llm_format_model": "anthropic://YOUR_API_KEY@",
"llm_format_prompt": "Summarize the licenses"
}curl -X POST http://127.0.0.1:3000/ \
-H "Content-Type: application/json" \
-d '{"url":"https://zshot-cli.com/purchase/","output_type":"llm_json","llm_format_model":"anthropic://YOUR_API_KEY@","llm_format_prompt":"Summarize the licenses"}'