Skip to content

AI Setup & API Keys

Get started with Deckyard’s AI-powered features.

New presentation dialog showing the From content option with AI badge for generating slides from text or files

Deckyard includes AI capabilities to help you create presentations faster and with better content. Features include:

  • Deck Generation - Create presentations from prompts
  • Translation - Translate content to other languages
  • Analysis - Get feedback and suggestions
  • Description Generation - Auto-generate metadata
  • Alt Text - Generate image descriptions for accessibility

Deckyard supports multiple AI providers:

ProviderModelsBest For
OpenAIGPT-4, GPT-4oGeneral use, image analysis
AnthropicClaude 3Long-form content, analysis
MistralMistral LargeEuropean data residency

Configure your AI provider by setting the appropriate environment variable.

Terminal window
OPENAI_API_KEY=sk-your-api-key-here

Get an API key from platform.openai.com.

Terminal window
CLAUDE_API_KEY=sk-ant-your-api-key-here

Get an API key from console.anthropic.com.

Terminal window
MISTRAL_API_KEY=your-api-key-here

Get an API key from console.mistral.ai.

You can configure multiple providers simultaneously. Deckyard will:

  • Automatically detect available providers
  • Use the best available provider for each task
  • Fall back to alternatives if one fails

Different features require different providers:

FeatureOpenAIClaudeMistral
Deck GenerationYesYesYes
TranslationYesYesYes
AnalysisYesYesYes
Description GenYesYesYes
Alt Text (Images)YesNoNo

Note: Alt text generation requires OpenAI as it needs vision capabilities.

The application automatically detects which AI providers are available.

When you access AI features:

  • If no provider is configured, you’ll see a setup prompt
  • Available providers are shown in the AI settings
  • Features requiring unavailable providers are disabled

Check available providers:

Terminal window
GET /api/ai/status

Response:

{
"providers": {
"openai": true,
"claude": false,
"mistral": true
},
"features": {
"deckGeneration": true,
"translation": true,
"altText": true
}
}

AI features incur costs based on your provider’s pricing:

  • OpenAI - Per-token pricing
  • Claude - Per-token pricing
  • Mistral - Per-token pricing

Typical usage per feature:

  • Deck generation - Varies based on length (1K-10K tokens)
  • Translation - Based on content length
  • Analysis - ~2K tokens per presentation
  • Description - ~500 tokens
  • Limit access to AI features by user role
  • Monitor usage in your provider dashboard
  • Set spending limits in your provider account

To disable AI features entirely, don’t configure any API keys.

To disable specific features:

Terminal window
# Disable all AI
DISABLE_AI=true
# Disable specific features (if supported)
DISABLE_AI_GENERATION=true
DISABLE_AI_TRANSLATION=true
  • Store API keys in environment variables, not code
  • Never expose keys in client-side code
  • Use provider-level restrictions when available

When using AI features:

  • Presentation content is sent to the AI provider
  • Check your provider’s data retention policies
  • Consider data residency requirements (Mistral for EU)
  1. Check that an API key is configured
  2. Verify the key is valid (test in provider dashboard)
  3. Check server logs for configuration errors

Common issues:

  • Rate limits - You’ve exceeded provider limits
  • Invalid key - Key is incorrect or revoked
  • Quota exceeded - You’ve used your monthly allowance

Check your provider dashboard for specific error details.

AI operations can take several seconds. If consistently slow:

  • Check your provider’s status page
  • Consider using a faster model
  • Reduce input size for generation