New Juice-1 REST API + 22 Visual Models

Build with the Juice-1 Design API

Generate complete self-contained HTML interfaces with Juice-1 and high-resolution visual assets across 22 mainstream models through one clean REST API on Juice-1 AI Design Generator. Transparent cost + 30% pricing, idempotent retries and automatic failure refunds.

One Key, 23 Models

Run Juice-1 (`juice-1` / `juice-latest`), Kling v4 Webpage Design, GPT Image 2.6, FLUX.3, Nano Banana Pro and Seedream 5.5 from one Bearer token.

Cost + 30% Pricing

Every API call is billed at exact upstream cost + 30% ($1.04 per Juice-1 HTML design) from a prepaid USD balance with zero monthly API seat fees.

Standalone HTML Endpoint

Poll `/v1/generations/{id}` for live progress, then fetch ready-to-serve HTML straight from `/v1/generations/{id}/html`.

Safe Idempotent Retries

Pass `Idempotency-Key` on `POST /v1/generations` so network timeouts never create duplicate jobs or double charges.

Transparent API Pricing (Cost + 30%)

Every model on `/v1` and `/mcp` is priced at our exact upstream provider rate plus a flat 30% platform markup. Failed or canceled jobs return 100% of their charge automatically.

Juice-1 (complete HTML + bespoke slot images)

$1.04 per design

Batch requests (`count`: 1 to 4) scale linearly at $1.04 per design. Calling `GET /v1/models` or `POST /v1/quote` is always free.

All Supported Design & Visual Models

HTML & Full-Webpage Design Models
ModelDefault tierAPI price (USD)
Juice-1HTML + Assets$1.04 per design
Kling v4 Webpage Design1K Webpage$0.5572 per design
Visual, Typography & Mockup Models
ModelDefault tierAPI price (USD)
GPT Image 2.61K$0.0111 per image
GPT Image 2.51K$0.0111 per image
GPT Image 21K$0.0111 per image
DALL-E 3Standard$0.0416 per image
Nano Banana Pro1K$0.026 per image
Nano Banana 2.11K$0.0156 per image
Nano Banana 21K$0.0156 per image
FLUX.31K$0.0499 per image
FLUX.3 Klein1K$0.0094 per image
FLUX.2 Max1 MP$0.0728 per image
FLUX Kontext MaxStandard$0.0832 per image
Seedream 5.51K$0.0208 per image
Seedream 5.0 Pro1K$0.0468 per image
Seedream 5.0 Flash1.5K$0.0187 per image
Qwen Image 3.0 Pro1K$0.0371 per image
Qwen Image 3.01K$0.0267 per image
Kling v4 Image2K$0.0743 per image
MAI Image 2.71K$0.04 per image
MAI Image 2.7 Flash1K$0.0126 per image
MiniMax H3 Image1K$0.0337 per image
HY Image 3.51K$0.025 per image
Muse ImageStandard$0.0062 per image

Multi-resolution models list every tier in GET /v1/models and POST /v1/quote.

Prepaid USD API Balance

API keys draw from a dedicated prepaid USD wallet separate from web subscription credits. Top up any amount from $50 to $10,000 via Stripe Checkout; taxes never inflate or reduce your credited balance.

Quick top-up presets

$50$100$250$500$1,000
Open API dashboard

Quick Start in 3 Steps

Create a `jc1_...` key in your dashboard, fund your API balance and submit your first Juice-1 brief.

  1. 1

    Create a jc1_ key

    Sign in, open Dashboard → API and generate up to 5 named keys. Keys are hashed with SHA-256 and shown once.

  2. 2

    POST /v1/generations

    Send `model: "juice-1"`, your `prompt`, optional `surface`, `style`, `count`, `image_urls` and `reference_ids`.

  3. 3

    Poll & save HTML

    Poll `GET /v1/generations/{id}` until `completed`, then download clean HTML from `/v1/generations/{id}/html`.

cURL
curl -X POST https://juiceai.ai/v1/generations \
  -H "Authorization: Bearer jc1_your_api_key" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: launch-hero-001" \
  -d '{
    "model": "juice-1",
    "surface": "landing",
    "style": "editorial",
    "count": 1,
    "prompt": "A landing page for Pastelaria Aurora, a family bakery in Lisbon. Warm editorial layout, morning menu with prices and order-ahead form."
  }'

Completed generation object

Juice-1 returns both structured metadata and a direct `/html` download URL (plus inline `html` when `?include=html` is passed).

JSON
{
  "id": "api_9f3c2e8a71b04d129e5a6c318b04f21a",
  "object": "generation",
  "model": "juice-1",
  "type": "design",
  "status": "completed",
  "progress": 100,
  "title": "Pastelaria Aurora — Lisbon",
  "html_url": "https://juiceai.ai/v1/generations/api_9f3c2e8a71b04d129e5a6c318b04f21a/html",
  "outputs": [
    {
      "type": "html",
      "url": "https://juiceai.ai/v1/generations/api_9f3c2e8a71b04d129e5a6c318b04f21a/html",
      "title": "Pastelaria Aurora — Lisbon"
    }
  ],
  "price_usd": 1.04,
  "refunded": false,
  "created_at": "2026-12-06T08:00:00.000Z"
}

Using Claude Code, Cursor or Codex?

Every `/v1` operation is also available as a stateless Streamable HTTP MCP server at the same price and using the same `jc1_...` API key.

View Juice-1 MCP setup

Remote MCP server URL

https://juiceai.ai/mcp

REST Endpoints Reference

Base URL: `https://juiceai.ai/v1`. Send `Authorization: Bearer jc1_...` on authenticated routes.

MethodEndpointDescription
GET/v1/modelsList Juice-1 and all 22 visual models with supported styles, surfaces, resolutions and USD prices.
POST/v1/quoteCalculate the exact USD price for any model, resolution and design count without starting a job.
GET/v1/balanceReturn the current prepaid USD API balance for your account.
POST/v1/generationsStart a Juice-1 HTML design (1–4 count) or APIMart visual generation. Supports Idempotency-Key.
GET/v1/generationsList your recent API generations (newest first) with status, price and output links.
GET/v1/generations/:idFetch live status, progress, outputs and (with ?include=html) inline HTML source.
GET/v1/generations/:id/htmlDownload the finished Juice-1 self-contained HTML document directly as text/html.

POST /v1/generations Parameters

JSON request body fields accepted by `POST /v1/generations`:

FieldType & behavior
modelRequired string. "juice-1" (or "juice-latest") for HTML design, or any model ID from GET /v1/models.
promptRequired string (1–32,000 chars for juice-1; 1–15,000 chars for visual models). Plain-language brief.
surfaceOptional string (juice-1): "landing" | "webapp" | "mobile" | "slides". Defaults to "landing".
styleOptional string (juice-1): "" (any), "vary" (needs count >= 2), or any of the 14 trained style names.
countOptional integer (juice-1): 1 to 4 parallel designs from one prompt. Defaults to 1.
resolutionOptional string (visual models): e.g. "1K", "2K", "4K", "8K". Defaults to the model’s base tier.
aspect_ratioOptional string (visual models): e.g. "1:1", "16:9", "9:16", "4:3", "3:4".
image_urlsOptional array of public https:// image links (or data:image/* URLs on juice-1, up to 4).
reference_idsOptional array of up to 5 completed Juice-1 generation IDs from your account to chain multi-screen UI.
seedOptional integer (0 to 2,147,483,647) for repeatable layout sampling.

Billing, Concurrency & Reliability

Charged on Start, Refunded on Failure

Your prepaid USD balance is debited atomically when a job is accepted and refunded automatically once if the upstream run fails or times out.

Up to 12 Open Jobs & 60 RPM

Run up to 12 concurrent generations per account and up to 60 create calls per minute per API key.

Clean Self-Hosted Asset Proxy

All custom photographs inside Juice-1 HTML artifacts are served cleanly via https://juiceai.ai/api/media/juice/... with zero third-party key exposure.

Error Codes

All errors return JSON `{"error": {"code": "...", "message": "..."}}` with stable snake_case codes:

HTTPCodeMeaning
400invalid_requestMissing prompt, unsupported model/style/resolution, or malformed parameter.
400content_not_allowedPrompt blocked by safety moderation before any charge was taken.
401invalid_api_keyMissing, malformed or revoked Bearer jc1_... key.
402insufficient_balancePrepaid API balance does not cover this request. Add funds in Dashboard → API.
404not_foundGeneration ID does not exist on this account.
409generation_not_completed/html requested before the Juice-1 generation reached completed status.
429rate_limitedPer-minute request rate or 12-job concurrency cap reached.
502provider_errorUpstream model failed to start; your balance was automatically refunded.

Juice-1 API FAQ

How is the Juice-1 API billed compared to website subscriptions?

Website subscriptions use monthly credits priced at 1.3x–2.2x of cost, while the REST API (/v1) and MCP server (/mcp) draw from a separate prepaid USD balance billed at exact upstream cost + 30% ($1.04 per Juice-1 design).

Does one API key work for both Juice-1 and the 22 APIMart visual models?

Yes. Every jc1_... key created in your dashboard can call Juice-1 as well as GPT Image 2.6, Kling v4 Webpage Design, FLUX.3, Nano Banana Pro, Seedream 5.5 and every other model in GET /v1/models.

How do I retrieve the raw HTML file of a completed Juice-1 generation?

Call GET /v1/generations/{id}/html with your Bearer key to receive text/html directly, or call GET /v1/generations/{id}?include=html to read the html string inside the JSON payload.

What happens if a generation fails or times out?

Our background reconciler marks failed or stuck jobs automatically and refunds the exact debited micro-dollar amount back to your API balance once.

Start building with the Juice-1 API

Create a key, add funds from $50 and send your first request in minutes.

Get an API key