API
Connect CLōD to OpenAI API clients
Already using the OpenAI API? Change two lines. Works with Python, Node.js, and more.
Overview
CLōD is OpenAI API compatible. If you already use the official OpenAI client libraries, change the base URL and API key and nothing else.
Prerequisites
- CLōD account, free at app.clod.io
- OpenAI API clients installed
- CLōD API key (Dashboard → API Keys → Generate)
Setup
1Python
pip install openai from openai import OpenAI client = OpenAI( api_key="your_clod_api_key", base_url="https://api.clod.io/v1" ) response = client.chat.completions.create( model="clod/deepseek-v4p1-flash", messages=[{"role": "user", "content": "Hello!"}] )2Node.js
npm install openai import OpenAI from "openai"; const client = new OpenAI({ apiKey: "your_clod_api_key", baseURL: "https://api.clod.io/v1", }); const response = await client.chat.completions.create({ model: "clod/deepseek-v4p1-flash", messages: [{ role: "user", content: "Hello!" }], });
Available models
Every model on CLōD, across text, vision, image, video, speech, transcription and embeddings, works on the same key. For agentic tools, pick models that support tool calling.
Browse models