OpenRouter lets you choose models from DeepSeek and other providers with one OpenRouter API key.

Connect OpenRouter

  1. Sign in to OpenRouter and create a key in API Keys.
  2. In CalorieCodex, open Settings → AI quick log and tap Set Up or Manage.
  3. Under Provider, select OpenRouter and paste your key into OpenRouter API key.
  4. Choose a Model preset. To use a model outside the presets, open Advanced settings and enter its exact Model ID.
  5. Tap Save Key or Save Changes, then try a short meal description in the Agent.

Choose DeepSeek through OpenRouter

Copy the ID of a model from the DeepSeek models on OpenRouter. For example, enter deepseek/deepseek-v4.1-flash-1017 in Advanced settings → Model ID. Use the full ID, including the deepseek/ prefix.

For the Agent, pick a model and endpoint that support tool calls. For meal photos or nutrition labels, check for image input support. Availability and charges depend on the model and route you choose.

If you have a key from DeepSeek instead, use the direct DeepSeek setup.

Keep your API key safe and limit spending

If you use an API key, set up these safeguards in your provider’s dashboard.

  • Use a separate key for CalorieCodex. Give it a name you’ll recognize, and keep it out of other apps, screenshots, and support messages. If it’s exposed, revoke it and create a replacement.
  • Set a low spending limit. Use a limit on the key if your provider offers one. If limits are managed at the project level, check whether the setting blocks requests or sends an alert.
  • Start with a small prepaid balance. If your provider supports prepaid credits, start with $1–$5 where allowed, or the provider’s minimum. Leave automatic reload off and add credits manually when you need them.