External services
Stripe subscriptions
- Create monthly recurring USD prices in your Stripe sandbox. This release uses one monthly price per local paid plan.
- Set STRIPE_SECRET privately.
- Register https://YOUR-DOMAIN/webhooks/stripe for customer.subscription.created, customer.subscription.updated, customer.subscription.deleted and checkout.session.completed.
- Save that endpoint's signing secret as STRIPE_WEBHOOK_SECRET. It is separate from the API secret.
- Create a dedicated Customer Portal configuration. Enable invoices/payment updates/cancellation and the plan switching you promise. Save STRIPE_PORTAL_CONFIGURATION_ID.
- In Administration → Plans & pricing, enter each Stripe price ID and matching amount in cents. Starter remains free.
- Test using Stripe's official sandbox payment details. Entitlement changes only after the signed webhook is processed; a success URL is insufficient.
- Test portal/cancellation/retries before switching to a matching set of live keys, prices, webhook and portal configuration.
Checkout intent and idempotency are persisted before the external call. An unfinished checkout may be cancelled from Billing. Current provider state is fetched for synchronization; delayed events cannot blindly overwrite a newer subscription. Daily reconciliation covers missed changes.
Monthly slide credits reset by UTC calendar month, independently of invoice date. One credit is one generated slide. AI images have a separate monthly allowance: one completed image counts as one image; queued and processing images reserve allowance, and failed/expired images do not count. Defaults are Starter 5, Studio 100 and Business 300 images per month, editable in Administration → Plans & pricing. These allowances are application limits, not fixed provider prices. Downgrades restrict new creation without deleting existing decks.
Subscriptions · Checkout · Webhooks · Testing
Social sign-in
Create your own OAuth applications and configure the exact HTTPS callback.
| Provider | Private variables | Callback |
|---|---|---|
| GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET | /oauth/google/callback | |
| GitHub | GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET | /oauth/github/callback |
| FACEBOOK_CLIENT_ID, FACEBOOK_CLIENT_SECRET | /oauth/facebook/callback |
Callbacks use your full canonical domain. Complete each provider's consent-screen/domain/app-review requirements. Only configured providers appear in the UI.
A new external identity never automatically links to an existing email. Its owner signs in using the existing method, then connects the identity in Settings. Access tokens are discarded. New social accounts still verify email with Deckixa.
Presentation generation
Gemini, OpenAI and OpenRouter adapters share the slide contract. Administration → Settings & AI lets the operator configure provider keys, defaults and the OpenRouter language-model allowlist. The creation flow offers configured providers and enabled compatible models. A model that does not accept image input cannot receive image references.
OpenRouter includes a curated snapshot of 30 recent language models, verified against its official catalog on 2026-09-30. This is an operator-editable selection, not a benchmark ranking. The administrator can refresh the catalog; unavailable or incompatible models are omitted. Access, regional availability, prices and rate limits belong to the provider and can change.
Selected document text is bounded and treated as untrusted reference material. Image IDs are tenant-checked before queueing and before saving slides. Refusals, malformed output and timeouts do not create partial decks. A queued job pins its provider/model; changing the default does not reroute that job.
Image generation
Image Studio generates one image per request through Google Gemini, the OpenAI Images API, or OpenRouter's dedicated Image API. The bundled OpenRouter snapshot includes 46 compatible text-to-raster models as of 2026-09-30; SVG-only and mandatory-reference models are excluded. Catalog refresh can change this count.
The operator supplies API keys and chooses image defaults independently of the presentation defaults. Add keys privately in Administration → Settings & AI, or use the environment variables below. Blank key fields preserve saved keys; removing a saved key falls back to any environment value.
| Purpose | Variables |
|---|---|
| Presentation defaults | AI_PROVIDER, GEMINI_MODEL, OPENAI_MODEL, OPENROUTER_MODEL |
| Provider credentials | GEMINI_API_KEY, OPENAI_API_KEY, OPENROUTER_API_KEY |
| Image defaults | IMAGE_PROVIDER, GEMINI_IMAGE_MODEL, OPENAI_IMAGE_MODEL, OPENROUTER_IMAGE_MODEL |
Only configured providers appear in Image Studio. Aspect ratios, quality controls and transparent-background choices follow the selected model's capabilities. Supported quality choices are Draft/low, Balanced/medium and High; low is the default when available. Higher quality may take longer and cost the operator more. The service requests 1K where the provider advertises that resolution.
PNG is a raster format and does not inherently mean a transparent background. The transparency control appears only for an alpha-capable model with PNG output. Gemini's listed models do not advertise transparency here. Users can save PNG or JPEG; unsupported provider delivery formats are converted locally. JPEG uses a white background when flattening alpha.
The generated image becomes a private workspace attachment. Users can preview it, download it or add it to a slide. Closing Image Studio does not cancel the job. Recent server-side history lets the same signed-in user resume after reopening or reloading. Failed images release application allowance, but a provider may still charge for a request it processed; reconcile provider billing separately.
Each pending image reserves 8 MB of workspace storage before it can reach the provider. Uploads respect these reservations. Completion replaces the reservation with the actual file size; failure releases it. The application rechecks available storage before the provider call, including after a plan change.
OpenRouter balance and HTTP 402
OpenRouter's Image API currently checks that the operator's available credit balance is greater than USD 1 before starting each paid image request. This is a flat pre-authorization requirement, separate from the actual image charge: even a low-cost image can be rejected with HTTP 402 when the balance is USD 1 or less. Check the provider balance and spending limits before retrying; changing the customer's Deckixa plan does not fund the provider account. Image Studio reports this as a provider billing issue and restores the application's image allowance. See OpenRouter's official Image API troubleshooting guide for the current requirement.
Use dedicated API projects and provider-side spending limits. Keys never enter URLs, browser configuration or queue payloads. The application requests stateless storage settings where the API supports them; retention and training rules still depend on the selected provider, its routing policies and the operator's agreement. Thinking shimmer represents processing state, not exposed model reasoning.
Contract tests cover all three image adapters. Live image checks are recorded separately in verification.md; configuration alone is not evidence of a successful live request. At the 1.1 documentation update, direct Gemini/OpenAI live image checks had not yet been performed.
Gemini models · Gemini images · OpenAI images · OpenRouter images · OpenAI Responses
Unsplash stock photography
Create an Unsplash developer application for your own installation, then enter its Access Key in Administration → Settings & AI → Unsplash photos. The saved value is encrypted; a blank field preserves it. Removing the saved key falls back to UNSPLASH_ACCESS_KEY in the private server environment. The key never goes to the browser or an AI model. Do not share one seller-owned key across unrelated customer installations.
The editor and presentation assistant use the official JSON API to search and select photos. Without an operator-supplied key, the picker explains that Unsplash is not configured; it does not scrape photos or fabricate results. Search results are cached for five minutes and photo metadata for one hour. The demo API allowance is currently 50 JSON requests per hour; production access requires Unsplash approval and currently allows 1,000 per hour. Confirm the current limits in the official API documentation.
Browser previews, slides and HTML exports keep the Unsplash CDN hotlinks and their ixid tracking parameter. Photographer and Unsplash credit links include the required referral parameters. Keep these credits visible when styling presentation themes. Document exports may include a transient, validated JPEG fetched from the exact Unsplash image host; this export path bounds size/time, rejects redirects and private network addresses, and does not create a locally hosted stock-image library.
Each explicit photo selection records a durable download-tracking event. Export requests also record one event per photo and export identifier; retrying the same request does not double-count it. The queue calls the returned download_location endpoint with its original tracking query and authenticates server-side. The scheduler's deckixa:recover-stock-photo-tracking command recovers undispatched queued events. Failed or ambiguous in-flight events retain a static failure code for inspection; they are not blindly retried because the external counter may already have advanced.
Stock photos use workspace-owned references, separate from uploaded/generated attachments and monthly AI image credits. A workspace cannot select another workspace's local stock reference or use its authenticated export route. The source photograph itself remains public on Unsplash.
Follow the hotlinking, attribution and download tracking guidelines when extending this integration. Unsplash access, application approval and content availability are external prerequisites; an API key alone is not proof of production approval.
Bundled SVG resources
The local vector library contains 14,379 monochrome icons and 1,690 colored vectors: 1,591 Fluent Emoji Flat pictograms and 99 legacy illustrations by Vijay Verma. The latter include workspaces, people, interiors and other illustrated scenes and objects. These are distinct collections; the colored-pictogram count is not a claim that every item is a complete scene.
| Collection | Included assets | License |
|---|---|---|
| Tabler | 5,790 | MIT |
| Lucide | 1,851 | ISC, with retained MIT notices for Feather-derived icons |
| Carbon | 2,577 | Apache-2.0 |
| Phosphor regular | 1,512 | MIT |
| IconPark Outline | 2,649 | Apache-2.0 |
| Fluent Emoji Flat | 1,591 | MIT |
| Vijay Verma legacy illustrations | 99 | MIT |
The editor and AI assistant search this local catalog using English names, curated Arabic/English semantic tags and common subject synonyms. Search prefers matches for every meaningful term; if none exist, it returns relevant partial matches ranked by coverage and asset-name relevance. Unknown queries with no relevant match remain empty. The response identifies the match mode and original query so the assistant can simplify a search when needed. Results are paginated; the application does not import thousands of SVG modules into the JavaScript bundle. Monochrome assets support a validated hex color. Colored illustrations retain their authored palette, gradients and clipping. No API key or paid image-generation request is needed to use this library.
Each source is pinned by package version or Git commit and archive checksum in resources/data/visual-assets/sources.json. The optional development command php scripts/import-visual-assets.php --download fetches only these recorded sources, verifies their checksums and reads data files; it does not install packages or execute their scripts. Run imports in a build workspace, then distribute the resulting application package. Keep public/vectors and resources/data/visual-assets together when deploying.
The importer excludes aliases, hidden obsolete entries, cosmetic Phosphor weight variants, alternate emoji skin-tone exports, explicitly named brand/logo entries and duplicate sanitized SVGs. Unsupported artwork is rejected rather than silently flattening or losing its colors. The checked bundle is approximately 91 MB uncompressed, including complete license notices inside the SVG descriptions; the vector-only distribution ZIP is approximately 39 MB. The final application package also contains PHP dependencies, documentation and other assets.
Full license texts and collection attribution are in public/vectors/licenses and public/vectors/NOTICE.txt. The per-file checksum list is resources/data/visual-assets/checksums.sha256. Preserve these notices when redistributing source SVGs. Project licenses do not grant rights to trademarks or imply endorsement by the authors.
The Vijay Verma collection is restricted to the legacy MIT repository revision, whose illustration-specific license page permits distribution and commercial use. Current premium and builder content from illlustrations.co is excluded. Other collection sources are Tabler, Lucide, Carbon, Phosphor, IconPark, and Microsoft Fluent Emoji.