# Models and routes

> How you choose a model for each task, where models come from, and what happens when one is down.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://ai.docs.sypnia.com/models/

For agents: Models section: tasks (built-in: chat, write, code, summarize, extract, classify, vision, embed; plus your own) and routes (task → model + fallbacks + instructions + params + safety + limits), kept in sypnia.toml ([ai.tasks.<name>]) and the project; providers OpenRouter and Amazon Bedrock (Cloud: zero-retention only), any OpenAI-compatible endpoint when self-hosted; bring your own key; fallbacks and availability.

You rarely name a model in your code. You name a **task**, and the project's **route** for that task decides which model does it. Changing the model is then a change to the route, reviewed like any other, with no deploy of your app.

- [Tasks and routes](/models/tasks-and-routes/): The built-in tasks, your own tasks, and every field of a route in sypnia.toml.
- [Providers](/models/providers/): Where the models come from: OpenRouter, Amazon Bedrock, and, when you host the gateway, any compatible endpoint.
- [Your own key](/models/your-own-key/): Use your own OpenRouter key or AWS account in Sypnia Cloud, and what changes when you do.
- [Fallbacks and availability](/models/fallbacks-and-availability/): What happens when a model fails, is slow, or is taken away, and how your route keeps answering.
