AI integrations
Your apps can use AI capabilities powered by OpenRouter — a unified API that gives you access to hundreds of AI models from OpenAI, Anthropic, Google, Meta, Mistral, and many more providers, all through a single API key. Browse the full list of available models at openrouter.ai/models.
Setup
Just describe the AI feature you want. When Appifex detects your app needs AI, it will automatically prompt you to enter your OpenRouter API key. No manual configuration needed.
What you can build
| Feature | Example prompt |
|---|---|
| AI chat | "Add a chatbot that answers questions about the product" |
| Image analysis | "Analyze uploaded photos and describe their contents" |
| Image generation | "Generate thumbnail images from text descriptions" |
| Text-to-speech | "Convert article text to audio" |
| Speech-to-text | "Add voice input that transcribes to text" |
| PDF analysis | "Upload a PDF and ask questions about it" |
| Video understanding | "Analyze uploaded videos and summarize their content" |
| Tool-calling agents | "Build an assistant that can look up weather and do calculations" |
| Structured extraction | "Extract name, email, and company from business cards" |
How it works
Appifex generates backend API endpoints under /api/ai/* that call OpenRouter using the openai Python SDK. Your frontend never calls the AI provider directly — everything goes through your backend.
Frontend → Your backend (/api/ai/*) → OpenRouter → AI model
Appifex automatically picks the best model for each task:
| Task | Model |
|---|---|
| Text chat, reasoning, code | Claude Sonnet 4 |
| Vision, fast tasks | Gemini 2.5 Flash |
| Audio transcription | Gemini 2.5 Flash |
| Text-to-speech | GPT Audio |
| Image generation | Gemini 2.5 Flash Image |
| PDF / document analysis | Claude Sonnet 4 |
Streaming
AI chat responses stream in real-time by default, so users see text appear token by token instead of waiting for the full response.
"Add a streaming chatbot with a stop button"
Multi-turn conversations
Your app can maintain conversation history so the AI remembers context across messages.
"Build a chat interface with conversation history"
Combining AI with other features
AI integrations work alongside other Appifex features:
"Upload a document, extract key information with AI, and save it to the database"
"Let users record voice memos, transcribe them, and search through transcripts"