Try the playground
Here’s how to play with some models without writing any code.1
Log in
Sign up with your work email at console.modular.com.
2
Create an API key
Click API keys in the sidebar and create a new Personal key.Make sure to enable Model access, and copy the key to a safe
place—you’ll need it again below to call the API.
3
Chat with a model
Click Playground in the sidebar and select your API key at the top.Now start chatting with a model!
Run inference with the API
Here’s a quick guide to running inference with the chat completions API.1
Set your API key
Insert the API key you created above or
create a new key.
2
Install the OpenAI client
You can skip this if you’re going to use cURL.
3
Copy this code
4
Run it
model parameter:
Browse the available shared endpoints
and click a model, then copy the Model ID shown on the right.
Next steps
Check out these guides to learn more about using the Modular Cloud APIs:- Text inference: text-to-text, image-to-text, and video-to-text
- Image inference: generate and transform images with FLUX
- Video inference: generate video from text with Wan