Create Your API Key
Log in to Deploy and navigate to Service API Keys in the sidebar. Click Create API Key to create a new Secret Key scoped to your organization. This key can be used with any “Try Now >” model. This Secret Key will only be visible upon generation. Copy and store it in a secure location. If you lose your Secret Key, you can generate a new one.Install the OpenAI SDK
If you’re using Python, install the OpenAI Python SDK to make API requests to Deploy:Python
Make your first API call
Below is an example of a sample request. Replace theapi_key callout with your Secret Key.
You’ll need to provide the model ID of your choice in model as well as a base_url, which is region-dependent (if you are a customer in SF or VA).
- Closest: https://api.deploy.com/api/v1
- SF: https://api-sf1.deploy.com/api/v1
- VA: https://api-va1.deploy.com/api/v1
- Closest: https://api-cdn.deploy.com/api/v1
- SF: https://api-sf1-cdn.deploy.com/api/v1
- VA: https://api-va1-cdn.deploy.com/api/v1
deepseek-ai/deepseek-v4.1-flash-1017.

