Skip to main content
Currently in private preview. Sign up at console.modular.com/signup to request access.
This guide walks you through signing up, creating an API key, and sending your first request.

Sign up

Sign up for private preview access at console.modular.com/signup.

Create an API key

Go to the API Tokens page in the console and create a new token. Copy it now. You won’t be able to see it again after closing the dialog. Export your key as an environment variable:

Send a request

Use the OpenAI SDK or curl to make your first inference call:
Install the OpenAI SDK:
Send a chat completion request:
Already using the OpenAI SDK? Just change base_url to https://api.modular.com/v1 and set api_key to your API key. No other code changes required.

Explore the playground

Try models interactively in the console playground without writing any code. The playground lets you compare models, adjust parameters, and experiment with prompts before integrating into your application.

Next steps