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
Render Endpoints
POST /api/v1/timepoints/generate/sync
Synchronous render — blocks until the full scene is generated.
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.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):- Explicit
text_model/image_model— exact model by name model_policy: "permissive"— auto-selects open-weight models, skips Google groundingpreset— uses preset’s default models- Server defaults
model_policy, explicit models, preset, and llm_params in the same request.
Google-Free Generation
Setmodel_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
Usetext_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.
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 whengenerate_image: true.
Commercial presets (hd, balanced, hyper, gemini3):
- Google Imagen (primary) → Stability AI (fallback) → OpenRouter (fallback)
model_policy: "permissive"):
- Stability AI — SD3.5 Large Turbo (open-weight, no Google dependency)