Skip to main content
Making your first API call is easy—all you need is a Deploy API key and a model ID.

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
Deploy supports the OpenAI-compatible API format, so you can use the OpenAI SDK with your Deploy API key and endpoint without needing a separate SDK.

Make your first API call

Below is an example of a sample request. Replace the api_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). If you’re accessing from outside the US, you may have lower latency with: The example below uses the model deepseek-ai/deepseek-v4.1-flash-1017.
Your response will be similar to the following example:
And that’s it—you’ve made your first API call.

Submit images and videos

You can send visual inputs to models that support image or video understanding. You can provide media using a URL or a Base64-encoded data URI. The media is included in the message content alongside your text prompt. Supported media types and formats vary per model—check the Input Modality column in Available Models.

Image

Video

Base64

Useful when the media is stored locally or when you don’t want to provide an externally hosted URL.