Access DeepSeek AI via API

Live Script illustrating how to access DeepSeek AI programmatically via API.
110 Downloads
Updated 9 Feb 2026

View License

DeepSeek provides large language models similar to OpenAI's GPT models. Access to DeepSeek is available to account holders interactively at deepseek.com, via apps, and through the API. This Live illustrates how to interact with a DeepSeek model via the API. Access requires the user open an account, purchase credits, and receive an API key. For further information about the API, see Ref[1]. For additional AI-related Live Scripts by the author, see Ref[2-14].

Cite As

Duncan Carlsmith (2026). Access DeepSeek AI via API (https://www.mathworks.com/matlabcentral/fileexchange/180384-access-deepseek-ai-via-api), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2024b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: Access Perplexity AI Via API

Version Published Release Notes
1.01

Added interactive_examples tag

1.0.1

minor

1.0.0