Skip to main content

Flash API

Consumer URL: https://api.timepointai.com (routed via API Gateway) Direct URL: https://flash.timepointai.com (for service-to-service calls) Consumer access goes through the Gateway, which handles authentication and proxies requests to Flash with an X-User-ID header. Flash has AUTH_ENABLED=false — it does not perform any authentication itself. It trusts the X-User-ID injected by the Gateway. For service-to-service calls that bypass the Gateway, use X-Service-Key with the direct URL.

Health Check

No auth required. Returns service status and provider availability.

Render Endpoints

POST /api/v1/timepoints/generate/sync

Synchronous render — blocks until the full scene is generated.
Request Body: Response: Full scene with characters, dialog, atmosphere, relationships, image URL, confidence scores, and source citations. Output is TDF-compatible.

POST /api/v1/timepoints/generate/stream

Server-Sent Events (SSE) stream — returns pipeline progress in real-time as each agent completes.
Events are streamed as each agent in the pipeline completes: Judge → Timeline → Grounding → Scene → Characters → Moment → Camera → Dialog → Critique → ImagePrompt → Optimizer → ImageGen

Downstream Model Control

Downstream apps (Web App, iPhone App, Clockchain, Billing, Enterprise integrations) have full control over model selection and generation hyperparameters on every request. All 14 pipeline agents respect these parameters.

Model Selection Priority

Model selection follows this precedence (highest first):
  1. Explicit text_model / image_model — exact model by name
  2. model_policy: "permissive" — auto-selects open-weight models, skips Google grounding
  3. preset — uses preset’s default models
  4. Server defaults
These controls are composable: you can combine model_policy, explicit models, preset, and llm_params in the same request.

Google-Free Generation

Set model_policy: "permissive" to route all 14 pipeline agents through open-weight models (DeepSeek R1, Llama, Qwen, Mistral) via OpenRouter with Stability AI (SD3.5 Large Turbo) for images — zero Google API calls, including grounding.

Explicit Model Override

Use text_model and image_model to specify any OpenRouter-compatible model ID (e.g. qwen/qwen3-235b-a22b, deepseek/deepseek-r1-0528), Stability AI model (e.g. stabilityai/sd3.5-large-turbo), or Google native model (e.g. gemini-2.5-flash). Explicit overrides take priority over model_policy.
Available Stability AI image models:

LLM Parameters (llm_params)

Fine-grained control over generation hyperparameters, applied uniformly across every agent in the pipeline. Request-level llm_params override each agent’s built-in defaults (e.g. setting temperature: 0.3 overrides the scene agent’s default of 0.7, the dialog agent’s default of 0.85, etc.).

Image Generation

Image URLs are included in the response when generate_image: true. Commercial presets (hd, balanced, hyper, gemini3):
  1. Google Imagen (primary) → Stability AI (fallback) → OpenRouter (fallback)
Permissive mode (model_policy: "permissive"):
  1. Stability AI — SD3.5 Large Turbo (open-weight, no Google dependency)

LLM Providers