Juice-1 API
Create a generation, check its status, and download the HTML from the Juice-1 REST API. OpenAPI specification
Generate your first page
-
Create an API key
Sign up at tryjuice.ai and create an API key. Put it in your shell’s
JUICE_API_KEYenvironment variable. Platform docs -
Create a generation
Prepare a local
generation.jsonfile with your design brief using the request schema forPOST /generations. Send the JSON to the API and save the generation ID from the response asGENERATION_IDin your shell. OpenAPI request and response schemascurl --fail-with-body --request POST 'https://api.tryjuice.ai/v1/generations' \ --header "Authorization: Bearer $JUICE_API_KEY" \ --header 'Content-Type: application/json' \ --data-binary @generation.json -
Check the generation status
Repeat
GET /generations/{id}until the response indicates completion. If it reports a failure, stop polling and inspect the response. OpenAPI status endpointcurl --fail-with-body "https://api.tryjuice.ai/v1/generations/$GENERATION_ID" \ --header "Authorization: Bearer $JUICE_API_KEY" -
Download the HTML
Use
GET /generations/{id}/htmlafter the generation completes. OpenAPI HTML endpointcurl --fail --output design.html \ "https://api.tryjuice.ai/v1/generations/$GENERATION_ID/html" \ --header "Authorization: Bearer $JUICE_API_KEY"
Account and generation limits
You need a positive balance to start a generation. Up to 12 jobs can run concurrently. Jobs and their images remain available until deleted. Sulat’s API observations
MCP plugin for coding agents
The plugin connects to https://api.tryjuice.ai/mcp and uses browser-based OAuth sign-in. Its skill file tells the agent to call Juice-1 for design input before starting implementation. Platform docs
Sulat authenticated to MCP directly with an API key and reported 13 tools for generation tasks such as creating, waiting, downloading, sharing, and deleting, plus an account lookup tool. Sulat’s MCP observations
Monthly cost calculator
Estimates use $0.64 (lowest observed), $0.90 (account tool estimate), and $2.21 (highest observed) per design. Sulat’s smoke test and billing log
Enter a non-negative number of designs within the supported range.
- Low per month
- Typical per month
- High per month