Practical JSON output recipes for OpenAI-compatible chat completions with OriginStartAI.
Use this repo when your app needs structured responses for product extraction, lead qualification, support triage, or internal workflow automation.
- Create an account: https://originstartai.com?utm_source=github&utm_medium=repo&utm_campaign=github_secondary_repos&utm_content=json-output-llm-recipes
- Get an API key from the console.
- Copy
.env.exampleto.env. - Set
ORIGINSTARTAI_API_KEY,ORIGINSTARTAI_BASE_URL, andORIGINSTARTAI_MODEL. - Run the JSON output recipe.
New user offer: recharge $5 and get $5 extra API credits.
pip install openai python-dotenv
python recipes/python/json_output.pynpm install
npm run json{
"lead_score": 82,
"use_case": "customer support automation",
"next_step": "send pricing and integration guide"
}- Streaming examples: https://github.com/OriginStartAI/ai-api-streaming-examples
- Node starter: https://github.com/OriginStartAI/openai-compatible-node-starter
- Python starter: https://github.com/OriginStartAI/openai-compatible-python-starter