All integrations
Google Colab with Meridian
Run Meridian inside a Colab notebook. Install the SDK, pull your API key from Colab secrets, and start calling the model in two cells.
Quickstart
Cell 1 — Install & import
!pip install openai
import openai
from google.colab import userdataCell 2 — Create client & call
client = openai.OpenAI(
base_url="https://api.meridian.sh/v1",
api_key=userdata.get("MERIDIAN_API_KEY"),
)
response = client.chat.completions.create(
model="meridian-1",
messages=[{"role": "user", "content": "Hello from Colab"}],
)
print(response.choices[0].message.content)Setting your secret
- Click the key icon in the Colab left sidebar.
- Add a secret named
MERIDIAN_API_KEY. - Paste your Meridian API key and toggle notebook access on.
Never hardcode your API key in the notebook. Always use
userdata.get().